I can't figure out how to create a file in my ftp using PHP. I want to make it so when someone registers on my website, a file with their username is created in certain folder, I've tried fopen:
fopen("ftp://hidden:hidden@hidden.com/public_html/somefile.txt", "w");
but for some reason it doesn't work, no errors what so ever but it just doesn't create the file.
I don't want it to create file in local directory and upload to ftp, no. What i want is for it to create the file straight in my ftp.
Any help appreciated!


Sign In
Create Account


Back to top









