Re: cannot include file

From: Date: Tue, 16 Oct 2001 02:56:14 +0000
Subject: Re: cannot include file
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13345@lists.php.net to get a copy of this message
Ok, you can't use include() to include a file that isn't on your server. If you want to grab a URL and display it, do this: <?php $url_contents = file("http://www.yahoo.com"); $url_contents = implode(" ", $url_contents); echo $url_contents; ?> ------ David Balatero www.reactiongaming.com db@reactiongaming.com ------ ----- Original Message ----- From: "J-E-N" <eper@tridel.net> To: <php-db@lists.php.net> Sent: Sunday, October 14, 2001 8:33 AM Subject: [PHP-DB] cannot include file badly need your help guys, i want to include a file from a different server but an error message appears that says "cannot include file ..." what do you think is the problem? include ("http://differentserver/testdir/file.php");

« previous php.db (#13345) next »