You are here: Re: Function file() not working out of the box on several linux distribution « PHP Programming Language « IT news, forums, messages
Re: Function file() not working out of the box on several linux distribution

Posted by Janwillem Borleffs on 06/24/05 23:37

jon.berg@gmail.com wrote:
> For example file('http://someurl.com/') do not return the content of
> that page.
>

Does file() work when requesting "http://www.google.com/"? Then the site you
are probing requires more headers (e.g. user-agent, cookies) than the file()
function provides by default. Try opening the site in FireFox with the
LiveHeaders extension installed and check the received headers.

It is also possible that some boxes simply do not have access to the site,
in which case the configuration of the machine hosting the site should be
modified.


JW

 

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

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