[RESOLVED] Get Value from a script
Hello Everyone,
I have written a standard winforms application in visual basic .net 2008. I wanted to implement one thing.
I want the application to call a PHP script and get a value from that. Basically I want to check for current date online. I have a webserver whereby I can run php/perl scripts.
Is there any way my application can call that script and that script returns date. If this works then the script may return other values if possible, but thats for later.
Help will be appreciated.
Thanks a lot,
Gr
Re: Get Value from a script
You can use a WebClient to access the contents of a URL. WebClient.DownloadString will return a String containing the text returned from a URL, be that a static HTML page, a PHP script or something else.
Re: Get Value from a script
Thanks a lot buddy. Using webclient I was able to get contents of url. Cheers.
Re: [RESOLVED] Get Value from a script
Or you can create a webservice to run on the web server and have your application consume the service.