print erros when STDOUT

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

Post Reply
raptoni
Forum Newbie
Posts: 4
Joined: Tue Jan 29, 2008 11:11 am

print erros when STDOUT

Post by raptoni »

Hi

My hostingprovider set display_erros to STDOUT.

How can print erros anyway, when executing the script?

I cant change the settings. Allready tried.

thx raphi
iacataca
Forum Newbie
Posts: 5
Joined: Tue Jan 29, 2008 11:11 am

Re: print erros when STDOUT

Post by iacataca »

raptoni wrote:Hi

My hostingprovider set display_erros to STDOUT.

How can print erros anyway, when executing the script?

I cant change the settings. Allready tried.

thx raphi
What exactly did you try?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: print erros when STDOUT

Post by pickle »

You might still be able to set your own error handler as default - in that error handler you can output the errors.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
raptoni
Forum Newbie
Posts: 4
Joined: Tue Jan 29, 2008 11:11 am

Re: print erros when STDOUT

Post by raptoni »

I tried to reset display erros with ini_set and .htacces.

What happens with the errors if STDOUT ist set. The PHP Manual doesnt say much.
For what i unterstood it is a var. There must be a way to print them otherwhise u could also write display_errors off.

thx raphi
raptoni
Forum Newbie
Posts: 4
Joined: Tue Jan 29, 2008 11:11 am

Re: print erros when STDOUT

Post by raptoni »

Nobody has an answer?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: print erros when STDOUT

Post by pickle »

Did you try set_error_handler()?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply