You are here: Re: opendir issues Wired vs Wireless « PHP Programming Language « IT news, forums, messages
Re: opendir issues Wired vs Wireless

Posted by Toby Inkster on 01/03/07 17:28

dmcglynn wrote:

> In each case, I am setting it to the same static IP, yes.
>
> I don't understand how PHP could possibly see a difference in the
> network media.. Is there some fine-tuning on my access-point that could
> fix this? It is completely confusing..

It could be that the wireless dongle device falls asleep after a period
of non-use. Have you tried something like...

if (!($handle = @opendir($dir)))
{
sleep 2;
if (!($handle = @opendir($dir)))
{
sleep 3;
$handle = opendir($dir);
}
}
/* do stuff */

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

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

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