ftp_connect($ftp_server);

ftp_connect($ftp_server);

am 01.07.2006 23:06:38 von Ron Piggott

Every now and then the following command fails --- the FTP connection is
refused by the server:

$conn_id = ftp_connect($ftp_server);

Is there a way to delete a file within PHP without having to FTP to the
server?

Ron

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

Re: ftp_connect($ftp_server);

am 02.07.2006 02:02:49 von Dave W

------=_Part_15933_26595006.1151798569166
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Use the unlink function:

$myFile = "testFile.txt";
unlink($myFile);



On 7/1/06, Ron Piggott (PHP) wrote:
>
> Every now and then the following command fails --- the FTP connection is
> refused by the server:
>
> $conn_id = ftp_connect($ftp_server);
>
> Is there a way to delete a file within PHP without having to FTP to the
> server?
>
> Ron
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Dave W

------=_Part_15933_26595006.1151798569166--