Jump to content

How to ignore a file to be downloaded via ftp


brooksh

Recommended Posts

I am trying to ignore specific files for download. I have this code, but it still downloads the unwanted file. Also how could I do it for more than one file to ignore?

 


if (file_exists($ignore)) {
} else {

ftp_get($conn_id, $dir" . basename($file), $file, FTP_BINARY);
}
}

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.