I'm developing a PHP5 application using XAMPP on my local PC. After uploading to the production server (a webmaster tier shared hosting account at Pair networks) I get the following error when trying to start a session:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/www/users/xxxx/functions/data_valid_fns.php:68) in /usr/www/users/xxxx/member.php on line 6
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/www/users/xxxx/functions/data_valid_fns.php:68) in /usr/www/users/xxxx/member.php on line 6
(note I obscured part of the actual paths to xxxx in this post)
On line six of member.php is simply:
and data_valid_fns.php contains nothing but functions, no output. There's nothing in my scripts sending headers before session_start(). It all works flawlessly on my XAMPP installation. The only thing on member_php before session_start() is a require that includes some files with functions in them - no output.
On Pair's server I'm using PHP5 as a system CGI, they don't have it installed as a module yet. I am able to install my own compile of PHP5 as a CGI if I need to change something fundamental.
If I do a simple test on Pair's server:
It gives no errors.
If anyone has any ideas, I'm open to them. Should I go through all the scripts and make sure none of them have any spaces or returns before the <?php and after the ?> tags? Could that be an issue?