February 26th, 2003, 02:05 AM
PHP and FTP
I have 2 questions:
1- Which is better to use, ftp functions or file functions to do some operations such as:
delete a file
make a directory
And can I do everything using the ftp functions such as:
copying and moving files.
downloading files to my PC.
Create a new file.
2- Can I build a complete FTP client using PHP? And what are the advantages and the disadvantages for it?
I heard that there would be an uploading problems!!
February 26th, 2003, 02:26 AM
March 1st, 2003, 08:15 AM
Do anybody knows how can I create a new file on an existing opened FTP account.
I am building an FTP client using PHP but there is no FTP function for creating a new file on the server.
If there is no way, can I create a new file using the file functions on my FTP server?
March 1st, 2003, 08:23 AM
could you not use a system function instead of a php function,
such as 'touch'
Im no expert - thats just a thought
March 1st, 2003, 01:05 PM
you could use touch or just one line to open the file would be enough to create it. either way.