Re: problems
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: problems

From: Peter van Schie <vanschie.peter@gmail.com>
Date: Mon Jul 11 2005 - 12:56:38 CEST

I think that's because of the
include 'addphotos2.php'

That way session_start gets called twice, first in connectphotos.php
and then in addphotos2.php.

You can circumvent that by moving the session_start() in
connectphotos.php to the else block.

Probably a cleaner way is to circumvent the include 'addphotos2.php',
by using:

header("Location: addphotos2.php");

Make sure you don't output *anything* before using the header call
though.

--
http://www.phpforums.nl
Received on Mon Oct 17 21:05:24 2005