Re[2]: [PHP] Is there a better way to do this

From: Date: Wed, 16 May 2001 21:23:19 +0000
Subject: Re[2]: [PHP] Is there a better way to do this
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53109@lists.php.net to get a copy of this message
Hello scott, I what it to look and see if the file exists if it does not the look and see if the next file exists if it does change its name and run the rest of the script. If nether exists the quit the program all together Wednesday, May 16, 2001, 2:27:19 PM, you wrote: scott [gts]> what are you trying to do that for? scott [gts]> there's probably a much cleaner way to do what you scott [gts]> want, but i dont really know what you want to do, scott [gts]> so i cannot suggest anything.... >> -----Original Message----- >> From: Richard Kurth [mailto:rkurth@pacifier.com] >> Sent: Wednesday, May 16, 2001 5:10 PM >> To: php-general@lists.php.net >> Subject: [PHP] Is there a better way to do this >> >> >> Is there a better way to do this I want it to look and see if the >> userdata file is there and if true the bypass everything else run rest >> of code. If is not then check to see if userdat1 is and if it is >> change it's name to userdata the run rest of code. If none of the are >> there then gust shut down. >> >> >> if(file_exists("userdata")) { >> end; >> } elseif(file_exists("userdata1")) { >> copy('userdata1','userdata') ; >> system("rm userdata1"); >> end; >> } else { >> exit; >> } >> >> >> < rest of code> >> >> >> >> >> >> >> >> >> Best regards, >> Richard >> mailto:rkurth@pacifier.com >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> -- Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#53109) next »