RE: [PHP] ftp
| From: | Chadwick, Russell | Date: | Tue, 22 May 2001 21:38:11 +0000 |
| Subject: | RE: [PHP] ftp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53940@lists.php.net to get a copy of this message | ||
I can think of 2 options, neither pleasant. On unix you can write a script
for ftp to use and put a .netrc in your home dir with a line like this
machine <hostname> login <username> password <password>
and that will make it automatically connect. So you could write script to
do things like get a file listing and fetch files on the fly and do use > to
send the output to a file which you could read from php.
ftp < commands.in > output.out
Option 2 is to get the RFC document on the ftp protocol and use phps socket
functions to make a php ftp client from the ground up. - Russ
---
Toolshed Computer Productions - Professional PHP Hosting
Hosting - Dedicated Servers - Design - Programming
http://www.toolshed51.com
-----Original Message-----
From: Glenda Robalino [mailto:g_robalino@hotmail.com]
Sent: Tuesday, May 22, 2001 2:34 PM
To: php-general@lists.php.net
Subject: [PHP] ftp
Hi..
maybe you could help me, I want to make an FTP but whithout Ftp_open and all
those functions, is there any way???
tx
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net