Results 1 to 10 of 10
Thread: PHP 5.25 Include Problem
-
12-18-2007, 07:31 PM #1Junior Guru Wannabe
- Join Date
- May 2007
- Location
- New York
- Posts
- 72
PHP 5.25 Include Problem
Hey,
I have just recently rebuilt my Apache to version 2.2 and PHP to 5.25. Now I am receiving this error:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in FILE DIRECTORY on line NUMBER
Thanks.
-
12-18-2007, 07:43 PM #2WHT Addict
- Join Date
- Oct 2001
- Location
- The Netherlands, Europe
- Posts
- 153
You need this in your php.ini:
allow_url_include = On
-
12-18-2007, 07:48 PM #3Junior Guru Wannabe
- Join Date
- May 2007
- Location
- New York
- Posts
- 72
Tried that to no avail. This used to be fine until I upgraded it. I don't have to rebuild PHP after I added that line of code, do I? I don't believe that's how it works...I checked in my PHP info and it says that I enabled that. Any other ideas?
-
12-18-2007, 08:12 PM #4Web Hosting Guru
- Join Date
- Aug 2005
- Posts
- 309
Which line of the server configuration file is specified in the error? (The FILE DIRECTORY on LINE NUMBER part) And what configuration parameter is on that line?
-
12-18-2007, 08:16 PM #5Junior Guru Wannabe
- Join Date
- May 2007
- Location
- New York
- Posts
- 72
Those fields refer to the page the error occured, not where on the config file. On said line on that file was a simple PHP include.
-
12-19-2007, 12:17 PM #6Web Hosting Master
- Join Date
- Jun 2004
- Location
- Bay Area
- Posts
- 1,320
Dit you build PHP with Curl and --enable-sockets? Its a wild guess but it might have something to do with it...
Powered by Level3, GBLX and AT&T
-
12-19-2007, 05:28 PM #7Junior Guru Wannabe
- Join Date
- May 2007
- Location
- New York
- Posts
- 72
I did it with cURL, yes. But apparently after restarting Apache with allow_url_include, it worked. Thanks anyway guys.
-
12-19-2007, 06:05 PM #8Web Hosting Master
- Join Date
- Nov 2005
- Posts
- 3,944
You might want to consider a different way of doing the script, allow_url_include can be taken advantage by hackers fairly easy.
-
12-19-2007, 08:59 PM #9Newbie
- Join Date
- Dec 2007
- Posts
- 6
-
12-21-2007, 01:00 AM #10Web Hosting Guru
- Join Date
- Jun 2002
- Posts
- 311
i had similar problems when enabling Zend Optimizer, once disabled or downgrade to an older version, the problem is gone.