Jump to content

Archived

This topic is now archived and is closed to further replies.

glenelkins

Probably as silly question but i am learning all the time!!

Recommended Posts

Hi

Iv wondered ever since I started coding PHP, and now to be honest I am pretty damn good at it. THough like most people you need to ask questions and read things if your unsure..only natural; which i find this website great for by the way!

Anyway, what the hell do some of you put "@" for in front of things, for example iv seen a post with $varname = @mysql_query(
what does the "@" do???

Share this post


Link to post
Share on other sites
error reporting supression - it means if there is an error there no warning will be printed to the screen - I only use this on lines that are not critical to the scripts completion.

Share this post


Link to post
Share on other sites
Ah ok, not my ideal way of programming, I always add error handlers....for everything!! lol  ;D

Share this post


Link to post
Share on other sites
If you always handle the errors youself then it could be a good idea to use the "@" as will suppress the default error messages output by the PHP processor.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.