• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

What does @ mean?

trying to use session_destroy() but it only works if I put @ in front of it.  What does the @ mean?
3 Solutions
suppress error messages.

so my guess it's not working, its just not reporting an error.
@ will hide the error if any (will not display it on the page), don't understand why it will make the function work or not though.
Actually, putting @ in front of function only suppresses any error messages if some would occur.
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Loganathan NatarajanLAMP DeveloperCommented:
it will hide the ERROR WARNINGS
@ in PHP is Error Control Operators

before PHP 5 , this is useful for exceptions handling function
 PHP 5 provided the try... catch

Detail :
rbudjAuthor Commented:
ah,.. ok... i did not actually TEST it to make sure it was working.  No error and I assumed it was working.... basically what I am trying to do is session_destroy() but I got this error:

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/advanc8/public_html/chpcomputers/admin/index.php on line 2

I read somewhere else to put the @ in front of session_destroy() but obviously that does not fix the problem.  Ideas?
you need to add
session_start(); before session_destroy();
rbudjAuthor Commented:
looks like a couple of you answered at the same time so i split points, and nplib solved my problem which should actually been a different question but i assigned points accordingly.  Thanks for the help!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now