Re: Please assist - been on this for hours - Permissions onserver
| From: | Jason Wong | Date: | Fri, 11 Jul 2003 11:09:09 +0000 |
| Subject: | Re: Please assist - been on this for hours - Permissions onserver | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154854@lists.php.net to get a copy of this message | ||
On Friday 11 July 2003 18:54, Steve Jackson wrote:
> Same error.
> Warning: fopen("
> LÏ�¸Üÿ¿ë'ë{è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
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
*/