|
|
10.3: Enable the built-in PHP module
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. --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|