Re: sessions with php4.0.0

From: Date: Wed, 24 May 2000 08:35:38 +0000
Subject: Re: sessions with php4.0.0
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19362@lists.php.net to get a copy of this message
nope, still nothing, now the page won't display because it does not have a html header. I'm going to have to create another .asp site if I can't resolve this... anyone got a php.ini file that I could look at? Thanks / Dankie / Siyanbonga Joey joey, remove *any code* that creates output before the call to session_start(); (in this case, remove the line that says <p>Before</p>) it should work then. - avi "Joey++" <joey@webmaster.co.za> wrote in message news:8gfv7i$v4j$1@va.php.net... > I am trying to use sessions with php4.0.0 and getting no joy.. an e.g.. > > <p>Before</p> > > <? > session_start(); > > session_register("mycount"); > > $mycount++; > > echo("You have visited $mycount times"); > > session_close(); > ?> > > <p>After</p> > > The example above, with or without the session_close(); function does not > return anything more than <p>before</p> in the viewed source of the executed > page. I have tried playing with php.ini and the only thing that effects it > is the session.auto_start booleon, which, when turned on doesn't display a > page, but the session variable is created in my designated temp file. > > The question is, does php4 support sessions on NT and how. Is their an > example of a php.ini file showing how to do this? > > Many thanks in advance for any input you or your team could supply. > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#19362) next »