A possibility is your php code has an error. short php tags like <? are a config option that is probably turned off(I bet you see the unprocessed php code in the html output). When you use the full tag <?php the php is processed, but there's an error in the code.
Bookmarks