How to output to screen and a file at the same time?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: How to output to screen and a file at the same time?

Post by susrisha »

you probably have the display_errors setting off. you need to set it. else you will find the error message in your apache error logs .

Code: Select all

 
ini_set('display_errors',1);
error_reporting(E_ALL); //to report all the errors onto the page.
 
vmene
Forum Newbie
Posts: 3
Joined: Wed Apr 16, 2008 3:59 am

Re: How to output to screen and a file at the same time?

Post by vmene »

check whether u have given the correct file name.
User avatar
becky-atlanta
Forum Commoner
Posts: 74
Joined: Thu Feb 26, 2009 6:26 pm
Location: Atlanta, GA

Re: How to output to screen and a file at the same time?

Post by becky-atlanta »

I had seen this before when I have an inconsistent variable for the file name. It is hard to troubleshoot without looking at the code.
Post Reply