Re: FTPing within PHP

Re: FTPing within PHP

am 19.01.2006 05:05:42 von robleyd

On Thu, 19 Jan 2006 14:38, Ron Piggott (PHP) wrote:
> 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

All is revealed at http://php.net/ftp

Cheers
--
David Robley

FLOPPY DISK: Serious curvature of the spine.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

FTPing within PHP

am 19.01.2006 05:08:21 von Ron Piggott

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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php