rhandalthor
asked on
same script different server:: header already sent error
A a test server I am using "Easy PHP Contact Form" On the live site it works, but on test server I get headers already sent errors:
Any ideas why that is?
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/me/domain.com/contact.php:81) in /home/me/domain.com/contact.php on line 106
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/me/domain.com/contact.php:81) in /home/me/domain.com/contact.php on line 106
Warning: include(form-header.php) [function.include]: failed to open stream: No such file or directory in /home/me/domain.com/contact.php on line 321
Warning: include() [function.include]: Failed opening 'form-header.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/me/domain.com/contact.php on line 321
Any ideas why that is?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Done DaveBaldwin. Code is here: http://pastebin.ca/2052770 and live view - the same errors as far as I can see is here: http://www.ts.imagewize.com/contact.php. Perhaps Dreamhost reports more errors then previous server does. Need the script to work well on both ..
ASKER
Removed two errors. Looking into final one(s)
ASKER
Latest pasty: http://pastebin.ca/2052771
ASKER
I did not mean to give myself points. Only the two contributors. Please adjust or allow me to award points again.
ASKER
@ ludofulop Can this be done with a .htaccess? I do not have a dedicated server, just a DreamHost shared server.