On Thu, 5 Aug 2004 23:13:32 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > It appears that I am unable to output the data to a directory because > although my user has sufficient privileges on the database to execute the > query the user in question does not have file privileges. > > As I am reliant on my host I'm looking for other ways to achieve this. Could > I possibly set a prompt for downloading the file...? If so, how...? Or could > I echo to screen and copy and paste...? > > I'm looking for a better solution than that last brain fart though. Ideally > a download option but although I have scoured the web cannot seem to find > anything specifically related to downloading a CSV output from MySQL. >
Use headers to give the content type and filename. Or you could set the permissions on the dir to 777. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php