On Friday 11 July 2003 18:54, Steve Jackson wrote: > Same error. > Warning: fopen("ftp://[EMAIL PROTECTED]/misc/webpage/cms/test.txt","w") - > Inappropriate ioctl for device in > /home/stephenj/public_html/misc/webpage/cms/generator.php on line 51
You *are* using the correct user/pass? It should be the same as what you use to upload files to your webroot. If you can't get this to work then try the ftp functions. > Think this is going to get too complicated for a user interface as well > so I might have to abandon this idea. I think I'll just try uploading a > template file with it's unique ID rather than writing one directly to > the server. I don't want to have to have users put their ftp username > and password into the CMS for it to work. Alternatively, you could consider storing them in a DB. > Unless you think I am not far from success with this method? All I > wanted was for a file to be written into a safe directory and then moved > automatically to the webroot. I still don't understand (ie you still haven't explained) why you're creating the file somewhere then move it elsewhere. Why can you not use it where it's created, or create it where it's to be used? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* On the Internet, nobody knows you're a dog. -- Cartoon caption */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php