Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 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 February 17th, 2012, 08:37 AM
Registered User
 
Join Date: Feb 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default php stopped handling errors

hello

I don't remember if my php installation had done this from the beginning or not (I work on 2 different computers) but it stopped handling my errors.

before if i forgot a ; mark then php would give an error telling me what was the problem. now the browser just cant find the page.

please help!
 
Old February 18th, 2012, 02:13 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile

Hi there
this link may help you:

http://php.net/manual/en/errorfunc.configuration.php
__________________
happy every time, happy every where

Reza Baiat
 
Old February 18th, 2012, 02:19 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile

below link may help too:

http://php.about.com/od/troubleshoot..._reporting.htm
__________________
happy every time, happy every where

Reza Baiat
 
Old February 18th, 2012, 01:20 PM
Registered User
 
Join Date: Feb 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I looked at both links- the error_reporting in php.ini was already active and I tried adding error_reporting(E_ALL); on the page I tested- doesn't help.

I even re-installing php. that didn't do anything either.
could it be Apache doing the problem?

edit-- I just added to my code the function phpinfo(); and again my browser shows me a blank page.
newer edit -- I just realized the reason it did the error was because the previous line didn't have a ; at the end. so why didn't that give me a error?
update-- just figured out that if i don't put a ; after include or require function- php doesn't even care. no blank pages and no error message.

I just read -http://gallery.menalto.com/node/41723. it says that "If your "Configuration File (php.ini) Path" section is listed as "C:\WINDOWS\" or anything that doesn't end in "php.ini", it means that PHP can't find your php.ini file." well after getting my phpinfo() function to work I have displayed:
Configuration File (php.ini) Path : C:\Windows
Loaded Configuration File: C:\Server\PHP\php.ini

my php.ini is located in C:\Server\PHP so what is "Configuration File (php.ini) Path : C:\Windows" all about? could that be the problem?


FIXED- apparently you have another configuration in the php.ini "display_errors" which was set to off. now it back to on- and everything is working fine. however my code still ignores me forgetting a ; after a include or require

Thanks irProject for the help anyway.

Last edited by gkman; February 19th, 2012 at 03:49 AM..
 
Old February 19th, 2012, 01:27 PM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile Other links toooo

I think below link will help you

http://php.net/manual/en/configuration.file.php

(linkman!!!) these links are because i don't know php configuration!
__________________
happy every time, happy every where

Reza Baiat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling Edit Errors (page 68) Mossyman BOOK: Professional ASP.NET MVC 2 3 October 11th, 2010 04:33 PM
Ch 15 Try It Out, Handling Global Errors, p.583 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 26th, 2006 10:50 PM
handling script errors using vb web browser state Beginning VB 6 3 January 19th, 2006 09:01 AM
handling all types of errors kliu9 Excel VBA 2 March 9th, 2005 01:06 PM





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