FTPing within PHP
| From: | PHP) | Date: | Thu, 19 Jan 2006 04:08:21 +0000 |
| Subject: | FTPing within PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-41069@lists.php.net to get a copy of this message | ||
I am wondering if I may delete a file by FTPing within PHP.
I found the followed on the PHP web site:
fopen("ftp://user:password@example.com/somefile.txt",
"w");
Is there a way for me to delete somefile.txt ?
The FTP program on my computer gives the command
DELE /path/somefile.txt
Is there a way for me to send this command through?
I also need to know the command to disconnect --- and wonder if someone
could tell me it.
Ron