LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2003, 07:27 AM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
PHP: save output to a file


In my PHP/MYSQL program how can I save output to a file and don't output anything on the screen?

I want to run query and result save to a file. Any ideas how this can be achieve?

Thanks
 
Old 10-24-2003, 01:27 PM   #2
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 36
Do you know C? The file handling functions in PHP are almost exactly identical.

http://www.php.net/manual/en/ref.filesystem.php

*edit: That assumes you want the English-language version of the manual, of course. If you don't, just replace the 'en' with the ISO code for your preferred language
 
Old 10-25-2003, 06:57 AM   #3
vanquisher
Member
 
Registered: Aug 2003
Location: Hyderabad, India
Posts: 126

Rep: Reputation: 15
Print everything to a file...and yes, check out the latest manual...If you don't want to send anything to the browser, you should probably refer the "output buffering" section
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Listing Output Save in a File rolly frando Linux - Newbie 3 07-04-2005 01:23 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM
php save file as ... ... Xiangbuilder Programming 1 11-25-2003 10:35 AM
How do I save the output from a program? Fe98 Programming 4 11-10-2003 09:18 AM
save " in file with php raven Programming 1 03-01-2002 10:32 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration