Running a remote php script

F

Fred

I want to run a .php script on a remote site.
Manually I can simply use internet explorer to access the file and that
causes the script to run.
I would like to that in a program but can someone please tell how to do that
and do I need to use internet explorer to do it.

Thanks for any help
Fred
 
K

Kerem Gümrükcü

Hi Fred,

you dont have to run IE to do this. See here:

Dim WReq As System.Net.WebRequest =
System.Net.WebRequest.Create("http://www.php.net/downloads.php")
Dim WRes As System.Net.WebResponse = WReq.GetResponse()
System.Windows.Forms.MessageBox.Show(WRes.Headers.ToString(), "PHP Download
Page", MessageBoxButtons.OK, MessageBoxIcon.Information)
That simple!

You can set some more things before you call the Create Member, things
like Cache, Timeout, etc,...check the MSDN for more Information,...


Regards

Kerem


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top