I know how to ftp login but how do I create a new file or directory dynamically (without uploading a current file)?
fopen + W
Won't I get an access denied error? I do when I have uploaded a file to the server and try to use fopen without first setting the permissions to 777.
If you have write acces to the directory, I do not think so. But why don't you try? Best way to find out.
J.
If I set write access to the folder so that anyone can write the files in the public_html folder is that safe?
Although, I guess I could log in with ftp_login, change the dir access rights, write my file, then change the access rights back, right?
There is a problem with doing this that way... nobody is always the owner and thus I cannot write to the file because I can't change the file permissions: ftp_site($c, "CHMOD 777 ".$path);
How can I create a file ftp style?