"Ian Davies" <ia********@virgin.net> kirjoitti
viestissä:Lg*****************@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 <an*******************@gmail.com.NOSPAM.invalid>