Run a URL from command prompt without opening browser – windows

Here are the steps :

1) Download wget from http://gnuwin32.sourceforge.net/packages/wget.htm

2) Paste the following and change the url

 "C:\Program Files (x86)\GnuWin32\bin\wget.exe" http://www.google.com

“C:\Program Files (x86)\GnuWin32\bin\wget.exe” is the path of wget executable file, you don’t need to type the full path if you defined path variable already.
You can simply do

 wget http://www.google.com

In case you are doing task scheduling , then create a file and paste the code from step 2, save file as xyz.bat and select this file as trigger in task scheduler.

Advertisements

Read XML in PHP from .Net Web Service

$url = 'your-webservice-url-here';
$xp =  new DomDocument();
$xp->load($url);
$tables = $xp->getElementsByTagName('Table');
foreach($tables as $table){
	$nodeA = $table->getElementsByTagName('ORDER_NUMBER');
	echo $nodeA->item(0)->nodeValue;
}