I'm using a script to upload a file, and after I need to chmod
it to 755. I upload the file with no prob AND I can chmod using the ftp
server with a FTP client.
But when I use PHP I get this error:
Warning: ftp_site: Unknown SITE command. in
/home/to/public_html/CriaPagina.php on line 59
Here's the code:
ftp_exec($conn_id,"site chmod 755 /home/to/public_html/index.php");
I tried with ftp_exec and ftp_site, what I'm doing wrong?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php