Steve Jackson wrote:
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.
Yes I am.
Alternatively, you could consider storing them in a DB.
Yes that's what I was thinking
> 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.
Yes I am.
>
> Alternatively, you could consider storing them in a DB.
Yes that's what I was thinking they only need
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
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 b
e-
> 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:
>
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);
e 59
Any ideas people?
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]
> Sent: 11. heinäkuuta 2003 11:47
> To: [EMAIL PRO
On Friday 11 July 2003 15:20, Steve Jackson wrote:
> > Writing and moving require the same permissions. Also, there is a big
> > difference between root and webroot. Which one are you talking about?
>
> Web root.
> Sorry not the root directory of the server but the webroot. 1 directory
> back in fa
>
> Writing and moving require the same permissions. Also, there is a big
> difference between root and webroot. Which one are you talking about?
Web root.
Sorry not the root directory of the server but the webroot. 1 directory
back in fact is all I need so the structure would be:
Web> Cms> gene
Steve Jackson wrote:
I don't particularly need to *write* to the root directory. I do need to move the file to the root directory though as it's part of a CMS system. I can write the file to a directory which is adequately protected, but there has to be a way to move the file after it is written (t
10 matches
Mail list logo