You are here: Re: file_exists does not work « PHP Programming Language « IT news, forums, messages
Re: file_exists does not work

Posted by Rik on 08/13/07 13:38

On Mon, 13 Aug 2007 15:34:27 +0200, Krustov <me@privacy.net> wrote:
> $pass=3D1;
> if (!file_exists($tempname)) {$pass=3D0;}
> if ($pass=3D=3D0) //
> if ($pass=3D=3D1) //

Euhm,
if(file_exists()){
//something
} else {
//something else
}

Keep it legible for other coders, limit the amount of random variables =

popping up in your script if you don't need them, and avoid =

double/repeated comparisons...
-- =

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

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