Jump to content

Basic IF question


rhyspaterson

Recommended Posts

Hey guys,

 

Simple question here, but i'm a bit stuck. I use the following code:

 

ftp_chdir($conn_id, $destination)

 

I want to use an IF statement that says if the ftp_chdir command is not successful, then run some commands, else (therefore if it works), run some different commands.

 

But i seriously am stuck as to how to write the statement. Any help would be greatly appreciated.

 

Cheers,

/Rhys

Link to comment
https://forums.phpfreaks.com/topic/53130-basic-if-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.