PHP include function to external URL

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,643
Location
A Coruña, Spain
Hi,

that is not a normal question.. i mean.. for this forum.. but, i know here ill find the right answer from pro sysadmin :)

On one of my own site ive noticed long time ago that in php file with an include to an external path wasnt working, i didnt care about that cause wasnt urgent.. neither is now.. but.. im curios to know what block that...

I thot was openbase_dir or safe mode but, disabled those for that domain the problem still exist.

Anyone have a good shot for me?

Thanks all
 
php include (or require) to external script is a security risk IMHO. To do this, you need to support SSI and yes open_basedir (part of safemode) have to be configured.

What version of PHP are you running? Safemode has changed significantly from php4 to php5.

Have you popped over to php.net? they have an excellent documentation system.
 
thanks for reply, allow_url_fopen is already On.

Code:
>php -v
PHP 5.2.13 with Suhosin-Patch 0.9.7 (cli) (built: Mar 17 2010 19:45:58)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP Project
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

I know is a security risk, i wanna just understand (after ive understood what cause that ill try to enable just to my own account ofc).

Tryed with openbase and safemode off but didnt did the trick.

Honestly i didnt checked php.net yet ^^ i know a better place with more expert ppl :P
 
Back
Top