note 16996 rejected from function.include by jimw

From: Date: Fri, 14 Dec 2001 19:55:30 +0000
Subject: note 16996 rejected from function.include by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22679@lists.php.net to get a copy of this message
I am useing Linux,php-4.0+,apache, mysql. i am a student and learning all above tools i don't use "php.ini". so as an option i have set directives like flags,include path, and other values in my "httpd.conf" as apache server. Now my problem is that when i treid to include a file from remote server by following code include ("http://someserver.com/dir/file.php?one=1&two=2"); but it gave me error like "Failed to open file". error was that it tried to find file "file.php" from my local "WEBROOT" set in "httpd.conf" for apache (i.e. .:/www/somesite.com/www: etc). While i wanted that file should be included from that remote server so what is solution if i want to include file by this way i.e by "include" statement. PS. in documentation for include file requiremnts , it has been shown that "URL fpen wrapper should be enable" to include file by this way and as default it stays "on". so if it is true then why did i got that problem? i also don't use "php.ini" file. so pls reply as early as possible for my project

« previous php.notes (#22679) next »