Solved

How to hide the Session_start notice print

Posted on 2003-11-28
3
383 Views
Last Modified: 2008-02-20
A notice is printed saying "Session already started" because I'm doing a session_start() even though I have sessions autostart=1 in the php.ini file.

I would still like to see other kind of notices, but how could I hide this particular one?
0
Comment
Question by:ecchymose
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
ashoooo earned 50 total points
ID: 9839222
Try @session_start()
0
 

Author Comment

by:ecchymose
ID: 9839257
Nice!  it works!

but what does the @ is doing exactly?
0
 
LVL 3

Expert Comment

by:ashoooo
ID: 9839391
It hides the warning. Its not a good practice, but you can use it if you are sure it wont mess up the rest of your page. :)

Thanks for the points
0

Featured Post

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.

Question has a verified solution.

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

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…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

821 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