Solved

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

Posted on 2011-09-15
5
284 Views
Last Modified: 2012-05-12
when using php operatpr @ what exactly happen to the errors in the script?
0
Comment
Question by:Nura111
  • 2
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 167 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 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 333 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 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 333 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Healthcheck 2 83
WordPress TK Title 8 24
Calculating number of days between two dates 7 31
PHP get array item with custom id 4 21
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now