ah, the joys of group-help...
Date: 06/21/05
(PHP Community) Keywords: php, html, web
PROBLEM SOLVED. THANK YOU, ZACHKESSIN
Hey all,
I have a generic includes script that I deploy for all new sites (I run a small web design company). It has basic page formatting and a ready-made menu system all ready for instant deployment. The script itself prints nothing--it simply defines a lot of functions that I then use to make the magic of the site. I'm not an expert PHPer (I just read 3/4 of a book a while back), but I know my way around.
This script/library (I don't know the jargon) has had many many miles and hasn't once given me problems (except for the original bugs in its early versions). Only.. Now it's not doing anything I want it to. Quite simply, it's not doing anything. I have no idea what I've changed, but now all it's doing is printing "" on every page that includes it. I have seen php do this before, but I don't remember what I did to make it do this in the past.
I reiterate that the script itself doesn't have a single "print" or "echo" line outside of a function. Yet if I access the script directly it gives me the same result (printing the html and body start/close tags).
I have tried disabling certain functions with the all-mighty */ /*, but I can't seem to root-out the problem. If need-be, I'll post the whole script here, but I'd like to know if anybody knows what causes PHP to print the html and body tags instead of sending an error or simply printing nothing at all.
Any help would be *greatly* appreciated. Thanks in advance.
Source: http://www.livejournal.com/community/php/310393.html