Hello I need to use php to access a site on vpn.

I need do it on command line? How could I do that? Any scripts or software I could download to make this task easier? Any advices for sample codes etc.?

Thanks!

    It's not really clear what you're asking.

    A VPN connection will simply create a tunnel from your computer to some remote network. In other words, your point is basically "I need to use php to access a network."

      My own script will be on a LAMP platform. I need to use vpn to access an ASP.net site to fetch some xml files.

      So how could I open a turnel (vpn) to do the above task?

      Maybe I should just ask the 3rd party to create an ssh account for me to fetch the file from their sever. I did this with a remote linux/unix server before. But this time the remote server is an asp.net site. (windows)

      Thanks!

        It sounds like either an ssh tunnel or an FTP account would be a better option here. Using PHP to open a VPN tunnel in order to access a remote (private) server seems like a kludge rather than exposing the files via an external-facing service (HTTP application, FTP, etc. etc.).

          Write a Reply...