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