You are here: [OT: conditional statements] Re: file_exists does not work « PHP Programming Language « IT news, forums, messages
[OT: conditional statements] Re: file_exists does not work

Posted by Rik on 08/13/07 14:00

On Mon, 13 Aug 2007 15:51:28 +0200, Krustov <me@privacy.net> wrote:

> <comp.lang.php>
> <Rik>
> <Mon, 13 Aug 2007 15:38:56 +0200>
> <op.twz2u6xyqnv3q9@metallium>
>
>> > $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 variable=
s
>> popping up in your script if you don't need them, and avoid
>> double/repeated comparisons...
>>
>
> Up your arse .

Why, thank you. That is exactly what you say to other coders that might =
=

work on the same project with this kind of code.

> I dont recall asking you for your zen like wisdom on how i should or
> shouldnt write code.

Neither did the OP ask for lousy coding practises. Several people allrea=
dy =

told him he should try the local filesystem, the only thing you added wa=
s =

cumbersome code most of us would be ashamed to have in our scripts. What=
=

was _your_ reasoning for posting this enlightened code?

-- =

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

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