RE: [PHP] How Do You Protect Individual Files
| From: | Roger Lewis | Date: | Fri, 23 Aug 2002 20:43:33 +0000 |
| Subject: | RE: [PHP] How Do You Protect Individual Files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113855@lists.php.net to get a copy of this message | ||
David Robley wrote
On Thursday, August 22, 2002 10:51 PM
Regarding Roger Lewis' question on the following header warning:
RL > Warning: Cannot add header information - headers already sent by
(output
RL > started at /home/sites/home/users/demo/web/getdocfile.php:14) in
RL > /home/sites/home/users/demo/web/getdocfile.php on line 65
DR > This must be the second most FAQ - the clue is at line 14. You can not
DR > output _ANYTHING_ before a header call, not even a space or newline.
Check
DR > around line 14 for something outside php tags.
I was very confused about headers. I found an answer to my problem via the
link that Matt Schroebel provided in his 8/23/02 posting on "httpd headers
etc." Perhaps this excellent explanation at http://www.php-faq.com/#3 will
clarify things for those who are still confused. It sure helped me.
As an aside comment, the FAQ's at www.php-faq.com are very helpful. I'm
surprised that I haven't noticed a reference to this site before.
To Justin French:
Everything works fine now. Thanks.
Roger Lewis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php