Jump to content

FTP existance


Schlo_50

Recommended Posts

Hi Guys,

 

The basis of what im trying to do is to check if a folder in my FTP exists before uploading to it. If the folder doesn't exist I want te page to forward to my error page (fail.php).

 

$refa = $_POST['ref']; // the name of the folder I want to upload to
$directory = "clients/".$refa."/";  //the folder path on FTP

Can someone supply an example of the function I need to get the folder checked for existance please?

 

Thanks very much!

Link to comment
https://forums.phpfreaks.com/topic/94697-ftp-existance/
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.