?
Solved

when using php operatpr @ what exactly happen to the errors in the script?

Posted on 2011-09-15
5
Medium Priority
?
289 Views
Last Modified: 2012-05-12
when using php operatpr @ what exactly happen to the errors in the script?
0
Comment
Question by:Nura111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 668 total points
ID: 36545210
They still exist, you just don't see them.  If they are 'fatal', your script will crash and you won't know why.
0
 

Author Comment

by:Nura111
ID: 36545494
ok I have a lamp web application on apache where notmally I would find the errors?
(unless im echoing them to the screen (e.g die(ShowError("Server Query Error"));)

      }
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1332 total points
ID: 36545631
Parse errors should still show up.  But if you try something like this:

$fp = @fopen('/path/to/nowhere', 'r');

and the file does not exist the value of $fp will be set to FALSE, however the warning will not be issued.

A principle to live by: Unless you know exactly what you are doing, and you expect errors, and you really want to suppress the messages, never use the @ notation.  
0
 

Author Comment

by:Nura111
ID: 36545665
I never seed the Parse errors should still show up in the web application im working on so isnt there is a log file they where they are suppose to be? Im confused about where would I suppose to see php wrrors in general because when Im testing things on lcalhost xmapp for expmple I see all error and warning on the screen  and in the web application I dont..
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1332 total points
ID: 36545706
Probably in the web application the errors are written to a log and 'display_errors' is set to FALSE
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question