• Sending my own header question
    2 replies, posted
I want to send my own defined header information so that I can retrieve it with my desktop application. Will I unleash any demons if I do it this way: [CODE]<!DOCTYPE html> <?PHP header("MOTD: Poop"); ?> <html> <head></head> <body></body> </html>[/CODE]
No, but headers need to be sent before anything else - in other words, put that PHP block before the doctype.
It's also good practice to prefix non-standard headers with an "X-". e.g: X-Motd
Sorry, you need to Log In to post a reply to this thread.