note 21253 deleted from function.include by sniper

From: Date: Wed, 29 Jan 2003 04:10:03 +0000
Subject: note 21253 deleted from function.include by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42982@lists.php.net to get a copy of this message
INCLUDE FILES: For those who use a Service Provider (most of us) CGIWRAP... PHP secure If your ISP has installed a CGI version of PHP at say... "/usr/local/bin/php3.cgi", you can call it from a stub executable in your cgi-bin. Create a text file in your cgi-bin called "php3.cgi" containing this line "#!/usr/local/bin/php3.cgi". Chmod it 700, and then you can use a URL similar to: http://www.ISP.com/cgi- bin/cgiwrap/username/php3.cgi/~username/filename.html A php file should run with the extension ".html". Chmod settings on files must match your ISP's rules Now you can virtually put your "include" files (or the whole kaboodle) anywhere secure you like. I think this is what PHP intended!!!!!! <PRE> TEMPLATE : ( as one long line) echo "<A HREF=\"http://www.ISPsite.com/cgi-bin/ cgiwrap/username/php3.cgi/~username/ any_dir_u_want/testfile.php3\">Do Test</A>"; </PRE> Brian

« previous php.notes (#42982) next »