Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
[PAYH] - URL file-access is disabled in the server - Safe mode the culpit?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- [PAYH] - URL file-access is disabled in the server...
[PAYH] - URL file-access is disabled in the server - Safe mode the culpit?
13-02-2009 10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi,
I am trying to do a PHP include:
I am getting;
It works fine in ccgi and has done for years.
Is this again a problem with safe mode that means going through all of my pages (103 files affected) copying included material into the main file?
Tony
I am trying to do a PHP include:
<?php
include('http://www.username.f9.co.uk/filename.php');
?>
I am getting;
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /var/www/vhosts/username.plushost.co.uk/httpdocs/php/filename.php on line 2
Warning: include(http://www.username.f9.co.uk/filename.php) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/vhosts/username.plushost.co.uk/httpdocs/php/filename.php on line 2
Warning: include() [function.include]: Failed opening 'http://www.username.f9.co.uk/filename.php' for inclusion (include_path='.:/opt/php52/share/pear:/usr/share/pear') in /var/www/vhosts/username.plushost.co.uk/httpdocs/php/filename.php on line 2
It works fine in ccgi and has done for years.
Is this again a problem with safe mode that means going through all of my pages (103 files affected) copying included material into the main file?
Tony
Message 1 of 2
(876 Views)
1 REPLY 1
Re: [PAYH] - URL file-access is disabled in the server - Safe mode the culpit?
13-02-2009 12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Not safe mode this time. allow_url_include is off. It's a security feature that came in with 5.2. IMHO, it's a useful security feature on a shared platform. allow_url_fopen is still on, if that's any use 
edit: rather than copy the the included material, you could move the files to PAYH and use a local path.
Gabe

edit: rather than copy the the included material, you could move the files to PAYH and use a local path.
Gabe
Message 2 of 2
(238 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- [PAYH] - URL file-access is disabled in the server...