You are here: Re: Failed opening required « PHP Programming Language « IT news, forums, messages
Re: Failed opening required

Posted by Rik Wasmus on 01/12/08 06:01

On Sat, 12 Jan 2008 06:41:43 +0100, <big.sexy.jcw@gmail.com> wrote:

> Okay, I just set up my first dedicated server and everything is
> running fine, except one script that calls a file on another server.
>
> Failed opening required 'http://www.example.com/
> somefile.txt' (include_path=3D'.:/usr/lib/php:/usr/local/lib/php') in =
/
> home/example/public_html/includes/common.inc(1201) : eval()'d code on
> line 43
>
> The code that's throwing the error is:
>
> $fp =3D @fsockopen("www.example.com", "80",$errno, $errstr,
> $timeout=3D"5"); if($fp) { require ''http://www.example.com/act/partne=
r/
> inclusion.php"; }
>
> And for what it's worth I changed require with include and it then
> threw:
>
> URL file-access is disabled in the server configuration
>
> Now, I've checked and made sure that allow_url_fopen is on and
> safe_mode is off. But I still get an error so I'm missing something
> somewhere. What other settings should I be looking at?

allow_url_include

(which is something you don't want, way to risky normally to include =

'foreign' code, if your just looking for it's output, use =

file_get_contents() or the like)
-- =

Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация