Including a REMOTE FILE using include (php function)
| From: | louie miranda | Date: | Tue, 15 Jan 2002 10:39:29 +0000 |
| Subject: | Including a REMOTE FILE using include (php function) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80542@lists.php.net to get a copy of this message | ||
Im trying this little example of mine, Im trying to include
a file from a remote webserver but could not possibly get
it to work..
Here is the written code:
### A WORKING CODE // LOCAL FILE
<?php
$file = "one.php";
include($file);
?>
###
### DID NOT WORK // REMOTE FILE
<?php
$file = "http://192.168.129.103/noc/chikkaps.txt";
include($file);
?>
###
Your help is much appreciated!
thanks,
louie...