On Tuesday 15 January 2002 12:35, you wrote:

> Yes it work's on local / but how about when the file comes from a remote
> server?
>
> ### works
> <?php
> $file = "one.php";
> include($file);
> ?>
> ###
>
> ### did not work at all
> <?php
> $file = "http://192.168.129.103/noc/chikkaps.txt";;
> include($file);
> ?>
> ###
>

There are two possible reasons for this as I see it:

a) You're on a Windows platform

>From the manual:
"Note:  You can't use remote files in include() and require() 
statements on Windows."

or 

b) You've compiled PHP with the option --disable-url-fopen-wrapper
or set allow_url_fopen to off in php.ini

If the answer to option a is yes, then sorry, Harry, it wont work.


--
Markus Lervik
Linux-administrator with a kungfoo grip
Vaasa City Library - Regional Library
[EMAIL PROTECTED]
+358-6-325 3589 / +358-40-832 6709

-- 
PHP Database 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]

Reply via email to