Running a remote php script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    #1

    Running a remote php script

    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


  • Kerem Gümrükcü

    #2
    Re: Running a remote php script

    Hi Fred,

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

    Dim WReq As System.Net.WebR equest =
    System.Net.WebR equest.Create(" http://www.php.net/downloads.php")
    Dim WRes As System.Net.WebR esponse = WReq.GetRespons e()
    System.Windows. Forms.MessageBo x.Show(WRes.Hea ders.ToString() , "PHP Download
    Page", MessageBoxButto ns.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


    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Microsoft Live Space: http://kerem-g.spaces.live.com/
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."


    Comment

    • Fred

      #3
      Re: Running a remote php script

      Thanks Kerem,

      that's exactly what I needed.


      "Kerem Gümrükcü" <kareem114@hotm ail.comwrote in message
      news:ekRlTXxQIH A.1164@TK2MSFTN GP02.phx.gbl...
      Hi Fred,
      >
      you dont have to run IE to do this. See here:
      >
      Dim WReq As System.Net.WebR equest =
      System.Net.WebR equest.Create(" http://www.php.net/downloads.php")
      Dim WRes As System.Net.WebR esponse = WReq.GetRespons e()
      System.Windows. Forms.MessageBo x.Show(WRes.Hea ders.ToString() , "PHP
      Download Page", MessageBoxButto ns.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
      >
      >
      --
      -----------------------
      Beste Grüsse / Best regards / Votre bien devoue
      Kerem Gümrükcü
      Microsoft Live Space: http://kerem-g.spaces.live.com/
      Latest Open-Source Projects: http://entwicklung.junetz.de
      -----------------------
      "This reply is provided as is, without warranty express or implied."
      >

      Comment

      • Kerem Gümrükcü

        #4
        Re: Running a remote php script

        Hi Fred,
        >that's exactly what I needed.
        Thats exactly why i gave you that example,...;-)

        Regards

        Kerem

        --
        -----------------------
        Beste Grüsse / Best regards / Votre bien devoue
        Kerem Gümrükcü
        Microsoft Live Space: http://kerem-g.spaces.live.com/
        Latest Open-Source Projects: http://entwicklung.junetz.de
        -----------------------
        "This reply is provided as is, without warranty express or implied."


        Comment

        Working...