Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Header Not Working Though Nothing is Output - Need Experts
Old 11-06-2005, 12:13 AM Header Not Working Though Nothing is Output - Need Experts
Skilled Talker

Posts: 64
Trades: 0
For some reason, Headers are not working even though nothing is actually output to the browser, I've scratched my head thinking about this so much theres a hole. The concern with my script will be found within 3 minutes of an expert's time. I really hope you can help.

I've posted my scripts on the web, they're not amazingly long or complex and anybody half decent at PHP should understand and hopefully be able to tell me what's going on.

config.php
config

test.php
test

configheader.php (you may need it)
configheader


It says that the output to the browser is on the line where my_footer() is called. However, my_footer() is actually called AFTER the header on the page, what's going on?
If anyone can help...that'd be SO great, my site is totally screwed without this.
Petsmacker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-06-2005, 09:40 AM
Average Talker

Posts: 20
Location: Benevento
Trades: 0
Paste the whole error with the specific line and file.

There's no trace on how you set the cookies.
NEVER save username and password in cookies.
escape strings before using them in the sql queries.
Check always if is set a variable before using it ( isset() or !empty() ).
don't put too many useless things in the config file so that it can be readable.


To solve your problem start from the line where you get the error and with a minimum of logic just go back in the code.

Remember to remove newlines at the start and the end of the php files and make sure that they start and end with <?PHP ?> or all the things outside the php tags will be printed to the output before the headers.


Cheers.
j2be is offline
Reply With Quote
View Public Profile Visit j2be's homepage!
 
Reply     « Reply to Header Not Working Though Nothing is Output - Need Experts
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10445 seconds with 12 queries