For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2006 > Re: [PHP-DB] FTPing within PHP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] FTPing within PHP
David Robley

2006-01-19, 3:57 am

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com