Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Fatal Error - Is it Joomla 1.5.11 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Fatal Error - Is it Joomla 1.5.11
#967
admin (Admin)
Admin
Posts: 422
graph
User Offline Click here to see the profile of this user
Re:Fatal Error - Is it Joomla 1.5.11 1 Year, 2 Months ago Karma: 9  
The PHP configuration doesn't allow you to request URLs as files. This is probably for security.

see: http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html

and: http://us3.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include

The two PHP settings that affect this are allow_url_fopen and allow_url_include. The two Joomla sites must have different settings affecting them. Use phpinfo() and ini_get() to figure out the difference.

allow_url_fopen enables/disables all remote file access for PHP.
allow_url_include enables/disables remote file execution (file access through include() or require())

The allow_url_include was introduced in 5.10 but allow_url_fopen since PHP4.

Not being able to do require() means either allow_url_include or allow_url_fopen is disabled, or both. Usually it would be just allow_url_include.

First you have to ask, do you really trust the URL: http://site.com/LinkRotate/showlink.php?id=2
Since you will be executing any PHP on that URL.

If you do, then you can use an alternative:

eval(file_get_contents('http://site.com/LinkRotate/showlink.php?id=2'));
Even if you fully trust site.com, this is still very dangerous. Anyone that can modify network traffic between site.com and your site can run arbitrary code on your site.

If allow_url_fopen is also turned off, then you'll have to use CURL, or other HTTP client, if available. Or ask the host if they could change the PHP.ini settings, or you could change it for your specific site. Some sites even allow you to have your custom built PHP binary.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Fatal Error - Is it Joomla 1.5.11
tyhuls 2009/06/22 14:03
    thread link
thread linkthread link Re:Fatal Error - Is it Joomla 1.5.11
admin 2009/06/22 20:06
    thread link
thread linkthread link Re:Fatal Error - Is it Joomla 1.5.11
webportal 2009/12/26 00:20
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.