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

Posted by big.sexy.jcw on 01/12/08 05:41

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='.:/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 = @fsockopen("www.example.com", "80",$errno, $errstr,
$timeout="5"); if($fp) { require ''http://www.example.com/act/partner/
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?

Thanks,
Jeremy

 

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

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