Re: Function declaration and use

From: Date: Tue, 26 Sep 2000 03:25:18 +0000
Subject: Re: Function declaration and use
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17496@lists.php.net to get a copy of this message
On Tue, 26 Sep 2000, Matthew Harrell wrote: > : > : As a guess I think it's because you're using the url file handler > : to open the file and not the direct path. Try switching the include > : reference to be the fully qualified path to the file instead of the > : httpd url to the file. > : > : Reason being I'm guessing is that for some reason you don't have proper access > : to pull that url at the httpd level where as if you told php3 to go fetch it > : directly off the disk you'ld be able to grab it. > > Well, I can pull it directly and the include itself isn't giving me any errors. > As a matter of fact, if I don't call the function but just have the include > in there then I don't get any errors (or any useful behaviour). I tried the > full path name or even a relative path and it seems to work fine as long as I > don't use a URL. The weird thing is I can specify the URL directly from the > browser and it works fine. > > : While you're at it, check the permissions of the file are readable > : by user your php script runs as. > > Yep, both it and all the directories are world readable You aren't doing this on a Windows platform where you can't use remote files in include and require statements? Another thing - if the URL fopen wrapper was explicitly disabled at compile time, you won't be able to do it. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#17496) next »