|
Posted by Ian Davies on 11/06/05 21:34
OK
I done it
I didnt need the htdocs bit in the path
Ian
"Ian Davies" <iandan.dav@virgin.net> wrote in message
news:RNsbf.10378$Ua6.8826@newsfe6-win.ntli.net...
> That gives the following message
>
> Warning: fopen(../htdocs/Downloads/ptqiandandav1131304863.txt): failed to
> open stream: No such file or directory in
> e:\domains\i\iddsoftware.co.uk\user\htdocs\QuestionDB\notify.php on line
43
> Could not open the text file for writing
>
> but the directory does exist
>
> Is the file local if its in a directory on my hosts server ?
>
> "Kimmo Laine" <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid> wrote in
> message news:dkljrq$3il$1@phys-news1.kolumbus.fi...
> > "Ian Davies" <iandan.dav@virgin.net> kirjoitti
> > viestissδ:Lgpbf.9822$Ua6.3680@newsfe6-win.ntli.net...
> > >
> > > Hello
> > > I have the following code which changes directory, creates a file and
> then
> > > writes rows to it. It works fine except the file is created in the
> folder
> > > the php script is in instead of the download directory specified in
the
> > > scrip. Can anyone see where I have gone wrong
> > > Also I want to show the question Index and Question on screen as a
list.
> > > Ive put
> >
> >
> > Your code opens an ftp connection, but it doesn't write to it. it does
> > change the directory in the ftp-connection, but that is irrelevant if
you
> > are writing to a local file. Just change the code to $fp =
> > fopen('../htdocs/Downloads/ptq'.$_SESSION['username'].time().'.txt',
> 'w'));
> > and remove the ftp-stuff, and you're good to go.
> >
> > --
> > SETI @ Home - Donate your cpu's idle time to science.
> > Further reading at <http://setiweb.ssl.berkeley.edu/>
> > Kimmo Laine <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid>
> >
> >
>
>
Navigation:
[Reply to this message]
|