Jump to content

PHP errors


bearbug2003

Recommended Posts

Hi All

I have a site developed using dream weaver/php and mysql, all runs perfectly on my Windows XP PC.

I am trying to get it running on the web now and after uploading and attempting to log in I get all sorts of errors including

-----------------------------------------------------------------------------------------------------------------------

Warning: session_start(): open(/home/intranet/sessions//sess_e70774060aff2acc28aa63d02ad988a2, O_RDWR) failed: No such file or directory (2) in /home/intranet/www/php/pass-db.php on line 6

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/intranet/www/php/pass-db.php:2) in /home/intranet/www/php/pass-db.php on line 6

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/intranet/www/php/pass-db.php:2) in /home/intranet/www/php/pass-db.php on line 6

Warning: main(.\setup.php): failed to open stream: No such file or directory in /home/intranet/www/php/pass-db.php on line 9

Fatal error: main(): Failed opening required '.\setup.php' (include_path='.:/usr/share/pear') in /home/intranet/www/php/pass-db.php on line 9

Warning: Unknown(): open(/home/intranet/sessions//sess_e70774060aff2acc28aa63d02ad988a2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/intranet/sessions/) in Unknown on line 0.

I have used relative paths throughout the code, and strangely enough the /home/intranet part of the path isn't something I have used anywhere and it works perfectly on the PC at home

Many thanks in advance
Link to comment
https://forums.phpfreaks.com/topic/11304-php-errors/
Share on other sites


[!--quoteo(post=380519:date=Jun 6 2006, 03:13 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Jun 6 2006, 03:13 AM) [snapback]380519[/snapback][/div][div class=\'quotemain\'][!--quotec--]
It would appear there may bve a problem with the server session.save_path, also looks like you may have coded your site with register globals switched off.

I would ask the host about the session.save_path problem.
[/quote]


Thanks Thorpe - looks like that has helped!
Link to comment
https://forums.phpfreaks.com/topic/11304-php-errors/#findComment-43906
Share on other sites



Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/intranet/www/php/pass-db.php:2) in /home/intranet/www/php/pass-db.php on line 6

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/intranet/www/php/pass-db.php:2) in /home/intranet/www/php/pass-db.php on line 6

MAke sure the first thing on the first line of your page is <?PHP no <html> before it or anthing then on the second line SESSION_START();
Link to comment
https://forums.phpfreaks.com/topic/11304-php-errors/#findComment-43907
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.