Hi, session_start has to be the first command this time. try again and the result will look better, maybe explaining. so it should look like:
<? session_start(); var_dump(ini_get('variables_order')); var_dump(isset($_SESSION)); var_dump($_SESSION); ?> angel On Sun, 26 Oct 2003 17:47:38 +0800 "Manisha Sathe" <[EMAIL PROTECTED]> wrote: > Hi, > > do u mean to say put this codes in php ? > I tried to put it in second.php following is the msg - > ------------------------------------------------------ > string(5) "EGPCS" bool(false) > Notice: Undefined variable: _SESSION in C:\Project > Codes\Vanderveer\www\testPHP\second.php on line 4 > NULL > Warning: session_start(): Cannot send session cookie - headers already sent > by (output started at C:\Project Codes\Vanderveer\www\testPHP\second.php:2) > in C:\Project Codes\Vanderveer\www\testPHP\second.php on line 7 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at C:\Project > Codes\Vanderveer\www\testPHP\second.php:2) in C:\Project > Codes\Vanderveer\www\testPHP\second.php on line 7 > > Notice: Undefined index: name in C:\Project > Codes\Vanderveer\www\testPHP\second.php on line 10 > --------------------------------------------- > > I am not that expert in PHP, what all above means ? can u give me a hint > now, what is going wrong ? > > regards > manisha > > "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > var_dump(ini_get('variables_order')); > > var_dump(isset($_SESSION)); > > var_dump($_SESSION); > > > > ? > > > > > > On Sunday 26 October 2003 01:43 am, Manisha Sathe wrote: > > > It works well on linux means it shows me o/p as 'Manisha' but on local > > > Win2kserver, it gives error. > > > > > > I tried to make use of error_reporting(0); in second.php but then screen > > > becomes blank, it does not show me the output as "Manisha" > > > > > > manisha > > > > > > > > > > > > "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > > > > > > Your Linux server probably has error_reporting set to 0, which is > usually > > > > > > a > > > > > > > good idea for production environments. To supress the error messages > > > > > > without > > > > > > > modifying your php.ini, do error_reporting(0). Take a look in your > > > > php.ini file- the error_reporting directive will have lots of comments > > > > around it explaining the concept thoroughly. > > > > > > > > On Sunday 26 October 2003 01:06 am, Manisha Sathe wrote: > > > > > I am trying to use session but it seems it does not work on win2k > > > > > > server, > > > > > > > > the same runs on linux. > > > > > > > > > > following is my first php > > > > > ------------------- > > > > > <? > > > > > session_start(); > > > > > $_SESSION["name"]= "Manisha"; > > > > > ?> > > > > > ---------------------- > > > > > following is the second php > > > > > > > > > > <? > > > > > session_start(); > > > > > echo $_SESSION["name"]; > > > > > ?> > > > > > > > > > > ----------------- > > > > > > > > > > but it is always giving me following error msg > > > > > > > > > > Notice: Undefined index: name in C:\Project > > > > > Codes\www\testPHP\second.php > > > > > > on > > > > > > > > line 6 > > > > > > > > > > ---------------------------- > > > > > > > > > > The same thing works well on live Linux server. I checked php.ini > > > > > > options > > > > > > > > such as session enable / register global etc - both r same. Please > help > > > > > me. Is it a problem with win2k server or did i miss out any thing in > > > > > php.ini ? > > > > > > > > > > Regards > > > > > Manisha > > > > > > > > -- > > > > Evan Nemerson > > > > [EMAIL PROTECTED] > > > > > > > > -- > > > > "The people are the only sure reliance for preservation of our > liberty." > > > > > > > > -Thomas Jefferson > > > > -- > > Evan Nemerson > > [EMAIL PROTECTED] > > > > -- > > "A popular government, without popular information, or the means of > acquiring > > it, is but a Prologue to a Farce or a Tragedy - or perhaps both. Knowledge > > will forever govern ignorance, and a people who mean to be their own > > Governors must arm themselves with the power which knowledge gives." > > > > -James Madison > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php