Reply to Re: Testing if a server is running with almost no permissions

Your name:

Reply:


Posted by Steve on 01/12/06 19:19

On Thu, 12 Jan 2006 12:56:14 +0000, Simon wrote:

> Hi,
>
> My webhost allows me to run php but no shell_execute(...), system(...) and
> so on.
>
> I am trying to get info from a site, the reply from the site is usually less
> than 1 second.
>
> I have tried
>
> fsockopen("http://www.example.com", 80, $errno, $errstr, 1);
> //and
> file( "http://www.example.com")
> //
> fopen( ..., "r" );
>
> But that does not work
>
> according to php.net
> "Depending on the environment, the Unix domain or the optional connect
> timeout may not be available."
>
> I cannot change "Set_time_limit(...)" because I have no access to the
> php.ini file.
>
> So, how can i test for a website and have a 1 second timeout?
>
> Many thanks in advance.
>
> Simon

Look at adding entries to control php configuration in your .htaccess
file, and the ini_set()/init_get() functions.

Steve

[Back to original 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

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