RE: [PHP] Please assist - been on this for hours - Permissions onserver

From: Date: Fri, 11 Jul 2003 10:54:14 +0000
Subject: RE: [PHP] Please assist - been on this for hours - Permissions onserver
Groups: php.general 
Request: Send a blank email to php-general+get-154851@lists.php.net to get a copy of this message
Same error. Warning: fopen("ftp://...@127.0.0.1/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 stephen.jackson@violasystems.com Mobile +358 50 343 5159 > -----Original Message----- > From: Marek Kilimajer [mailto:kilimajer@webglobe.sk] > Sent: 11. heinäkuuta 2003 13:32 > To: Steve Jackson > Cc: php-general@lists.php.net > 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:password@127.0.0.1/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); > >

« previous php.general (#154851) next »