Hi, Saturday, July 19, 2003, 10:31:04 AM, you wrote: DW> Folks,
DW> I've searched through the archives of the general mailing list and DW> cannot find the answer to my question. My web hosting service requires DW> ALL scripts run from /cgi. I've tried putting <?php ?> and <SCRIPT language=php SCRIPT>> in my HTML files (located in /web/???) to run php DW> commands but they aren't working. The web hosting "tech support" can DW> only tell me that all php scripts must be located in /cgi; NO php code DW> allowed in /web directory. So, how can I load an html file from /web, DW> but within that file run a php script from /cgi? DW> Thanks, and I'm sorry if this IS available in the archives. DW> Dale Time to find another 'serious' hosting company :-) you may need to put this in the cgi file (if you are on a unix server) #!/usr/bin/php <? include('/path_to_web/page.html'); . . ?> change /usr/bin to whatever directory the cgi version of php is in if you can find out where they have hidden it. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php