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
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. 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. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -----Original Message----- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: 11. heinäkuuta 2003 13:32 > To: Steve Jackson > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Please assist - been on this for hours - > Permissions onserver > > > Write the file with ftp right away: > > // Define the filename to write to. > $filename = 'ftp://username:[EMAIL PROTECTED]/your_webdir/test.txt'; > // Open the file for overwriting. > $fp = fopen($filename, "w"); > // Write the string to the file > $write = fputs($fp, $string); > // Close the file > fclose($fp); > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php