--- "Michael P. Carel" <[EMAIL PROTECTED]> wrote: > I've downloaded your scripts and tried to test it on my server. > Please correct me if im doing it right. I've opened services and > port from the server to automatically run protoscope only during > acces in the given port (http:\\myserver.com:4887)
I always just leave it running when I use it, but your method would probably work as well. > My question's are : > 1. How could i access the rest of my php script residing in > /usr/local/mikecarel/ (http://myserver.com:4887/index.php)? Well, I meant this as a simple example of socket programming in PHP more than anything. Since the application is an HTTP proxy, you would set up your browser to use a proxy (specifying the host and port Protoscope is running on), and then just type http://myserver.com/index.php in your browser's location bar (assuming a Web server is running on myserver.com). The method you mention makes the browser think it is contacting an HTTP server, which is a bit different, so that wouldn't work. > 2. If ever does the POST and GET method works properly on this? Yes, but only as an HTTP proxy. > 3. Do I still need to install apache? If you want to connect to myserver.com and have it handle HTTP requests, then you will need a Web server. If this is what you're looking for, you might be interested in another PHP project called Nanoweb, which is a Web server written in PHP. Because this task is much more complicated, the project is more complicated as well, so it may not be the best learning example. You can learn more about it here: http://nanoweb.si.kz/ Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php