Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2005, 12:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default blank page when errors occur

Hello
Can somebody please tell me what is set up wrong on the server or how to overcome this. I am on a windows server. The problem is when I have any kind of error I get a blank page. I doesn't matter what it is.

I got this example out of the beginning php book, str_replace("hello", "hillo");, this produces a blank page on my server, I tried it on a friends server and get the following message

Warning: Wrong parameter count for str_replace() in /hsphere/local/home/mysite/mysite.com/errortest.php on line 2

I ran phpinfo() and it shows display_errors as being on. Any suggestions?

Thanks
Mike

Peace
Mike
http://www.eclecticpixel.com
http://www.homegrownmusicjam.com
__________________
Peace
Mike
http://www.eclecticpixel.com
 
Old July 7th, 2005, 03:36 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

How about error_reporting? Is it set to E_ALL? Is the log_errors directive set to off?

I've had a similer problem for a while on my XP development server (running PHP 5.1 / Apache 2). However, instead of bothing with tracking down the real problem I set error_reporting(E_ALL); at runtime, which seems to counter-act the problem. Though my INI file says error_reporting = E_ALL, display_errors = On, and log_errors = Off. Dunno what else it could be.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank Default Page ghrebek BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 December 5th, 2006 08:09 PM
why blank page? gilgalbiblewheel Classic ASP Databases 6 December 31st, 2004 09:30 PM
Every other page blank in PDF jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 6th, 2004 12:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.