what are you trying to do that for?

there's probably a much cleaner way to do what you 
want, but i dont really know what you want to do,
so i cannot suggest anything....


> -----Original Message-----
> From: Richard Kurth [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 5:10 PM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to