You need to specify a path that the webserver has write permissions to. 
Yes this can be bad, so be careful.  I have a script that grabs data 
from2 databases and writes the report out to a csv file, which the 
browser then downloads.



----- Original Message -----
From: Diana Castillo <[EMAIL PROTECTED]>
Date: Saturday, September 28, 2002 10:02 am
Subject: [PHP-DB] export to csv file

> Hi, I want to export some fields on a regular basis from a table 
> to a text
> file, preferable to the users local computer. I tried writing to a 
> file with
> fopen but I get "permission denied" when I try to open it for writing.
> What is the best solution?
> Thanks,
> Diana
> 
> --
> See my web page:
> http://www.netrox.net/%7Ecastillo/hghindex.htm
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to