FTP issue
Posted: Fri Oct 11, 2002 3:10 pm
I have a coding question.
i was reviewing php.net's documentation on the ftp_get() function but it lacked some understanding as to the syntax of the local and remote files
which leads me to the following questions
i have in my code
------code-------
$download = ftp_get($serv, "C:\Windows\Desktop\$file","$DOCUMENT_ROOT/$file",FTP_BINARY);
----end---------
is this the syntax for the local and remote file path? (the files to be downloaded are in a separate folder to the programme)
if the syntax above is incorrect who does PHP know where i want my file saved to on the local disk?
if the local file does not exists will it create it as like fwrite() would?
when you say that ASCII mode is for text files. Do you mean ".txt" or do you mean text based doucments i.e. word, excel, pdf's?
i get a Warning ftp_get: no such file or directory, yet i specified an absolute path to the file why would i get this error? (chmod is set to 777)
i was reviewing php.net's documentation on the ftp_get() function but it lacked some understanding as to the syntax of the local and remote files
which leads me to the following questions
i have in my code
------code-------
$download = ftp_get($serv, "C:\Windows\Desktop\$file","$DOCUMENT_ROOT/$file",FTP_BINARY);
----end---------
is this the syntax for the local and remote file path? (the files to be downloaded are in a separate folder to the programme)
if the syntax above is incorrect who does PHP know where i want my file saved to on the local disk?
if the local file does not exists will it create it as like fwrite() would?
when you say that ASCII mode is for text files. Do you mean ".txt" or do you mean text based doucments i.e. word, excel, pdf's?
i get a Warning ftp_get: no such file or directory, yet i specified an absolute path to the file why would i get this error? (chmod is set to 777)