Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 17th, 2012, 08:37 AM
Registered User
Points: 32, Level: 1
Points: 32, Level: 1 Points: 32, Level: 1 Points: 32, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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!
Reply With Quote
  #2 (permalink)  
Old February 18th, 2012, 02:13 AM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
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
Reply With Quote
  #3 (permalink)  
Old February 18th, 2012, 02:19 AM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
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
Reply With Quote
  #4 (permalink)  
Old February 18th, 2012, 01:20 PM
Registered User
Points: 32, Level: 1
Points: 32, Level: 1 Points: 32, Level: 1 Points: 32, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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..
Reply With Quote
  #5 (permalink)  
Old February 19th, 2012, 01:27 PM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.