Re: Function declaration and use

From: Date: Tue, 26 Sep 2000 03:21:38 +0000
Subject: Re: Function declaration and use
Groups: php.general 
Request: Send a blank email to php-general+get-17494@lists.php.net to get a copy of this message
: : 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 -- Matthew Harrell Never underestimate the power of Bit Twiddlers, Inc. very stupid people in large groups. mharrell@bittwiddlers.com

« previous php.general (#17494) next »