Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Enable the built-in PHP module' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Enable the built-in PHP module
Authored by: babbage on Nov 17, '03 09:51:56AM

What? That doesn't work -- the 'greater than' character at the end of the first line breaks everything. Didn't you test this before commenting?

The version that actually works looks like this:

    <?php
        phpinfo();
    ?>

The version given earlier, which starts <?php>, just returns a blank web page for me. Drop the '>' from that line and it works. (The hint text is now using the broken version -- it probably should be amended.)

Also, I've tried two variations that give much different results:

    <!-- variation ONE:
         gives a roughly plain text page back -->
    <?php
     phpinfo;
    ?>

    <!-- variation TWO:
         gives a colorful, formatted page with tables, etc -->
    <?php phpinfo() ?>

I don't know enough PHP to speculate about what the difference is here, or why the result is so different. Is it because there are no line breaks in the second version? Is it because there is no 'end of line' character in that one? I can't figure out what the important difference is between the two tags, but they give very dissimilar output after being served.

---
--
DO NOT LEAVE IT IS NOT REAL

[ Reply to This | # ]