I would assume, that because linux is built around networking, making a reference to http://whatever would tell linux to look on the internet for the file. window isn't built the same way, so it doesn't know to look beyond it's filing system. As to a solution, I'm not sure.
I'd look into fopen perhaps? You could copy the external script to your local drive, then include it. However, I've just had a though, surely when you request the .php file the http server it is held on will parse it and return the output of it. If that's OK, then the following code should do it. <? $ExternalFile="http://whatever/file.xyz"; $LocalFile="localname.html"; $fp = @fopen($ExternalFile,"r"); if ($fp) { $outhandle=fopen ($LocalFile,"w"); while (!feof($fp)) { $buffer=fread($fp,4096); fputs($outhandle,$buffer); } fclose($fp); fclose($outhandle); include("$LocalFile"); exec("delete.bat"); } ?> and delete.bat contains just del localname.html That works for me (just tested it). Anyone know a neater way? Ross -----Original Message----- From: Marek Wysmulek [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 17:46 To: [EMAIL PROTECTED] Subject: [PHP-WIN] include("remote host") under w2k problem Hi all. I have searched almost everything on the net regarding php and windows focusing on one thing. How to include to php script started on apache on w2k external sript placed on some URL. Source of test script (http://mylocalhost/marek.php) <? include("http://hermes.com.pl/test.php"); ?> and answer viewed in browser "Warning: Failed opening 'http://hermes.com.pl/test.php' for inclusion (include_path='') in c:\www\hermes\windykacja\marek.php on line 2" I know that parser sayes that include_path is not correctly set but, when I'm trying do the same under Linux - works perfectly. So (I'm sure -because Include_path has other adaptation) it is not the reason. Will be wery glad for answer. Even "Leave it !" - but with explanation ;-))) Marek. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]