Image

Imagele_trombone wrote in Imagephp

PHP on Yahoo?

(Apologies if this is a known and long-solved problem. I've only taken up PHP in the past couple of months, and I'm new to this community as of today).

I've run into an odd phenomenon. I've been tasked with adding a PHP script to a Yahoo-hosed web site.

The file is HTML with php commands embedded. I've already stumbled upon the problem of using mysqli (can't, used the older procedural methods instead), but now I'm coming across something really odd. The first line that echos a tag throws the rest of the file into HTML interpretation.

That is, if I insert an single line

echo "<p>"


as the first echo anywhere in the php code (which I did just to test the phenomenon), that's where the code will stop being treated as php code, beginning with the second quote mark (this from using "view source" feature of firefox). The rest of the code gets displayed as though it is document text.

I know that this may be me doing something really stupid on my part, but I'm not seeing it. Any suggestions?