Re: [PHP] FTP_SITE and FTP_EXEC prob

2002-11-21 Thread @ Edwin
Hello, "António Godinho" <[EMAIL PROTECTED]> wrote: [snip] > 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, any advice? [/snip] Have you tried it without the word "site"? Like: ftp_exec($conn, "chmod... "); Have

[PHP] FTP_SITE and FTP_EXEC prob

2002-11-20 Thread António Godinho
Hya, 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.ph