PHP Hell

Message boards : Cafe SETI : PHP Hell
Message board moderation

To post messages, you must log in.

AuthorMessage
N/A
Volunteer tester

Send message
Joined: 18 May 01
Posts: 3718
Credit: 93,649
RAC: 0
Message 140196 - Posted: 21 Jul 2005, 14:00:08 UTC
Last modified: 21 Jul 2005, 14:10:09 UTC

[font='courier,courier new']Here's one for 'ya: PHP is broken. Badly. After the obligatory <?php phpinfo(); ?> PHP test, I began to work on making the PHP statements W3C compliant (XHTML 1.1, CSS 2.1, UTF-8 no BOM, etc.). Here's what I cobbled together:

<html>
<body>

<?php
echo &quot;<span style=&#x5c;&quot;color: red;&#x5c;&quot;>Illegal XHTML</span><hr>&quot;;
?>

<script language=&quot;php&quot;>
echo &quot;<span style=&#x5c;&quot;color: orange;&#x5c;&quot;>Deprecated XHTML</span><hr>&quot;;
</script>

<script type=&quot;text/php&quot;>
echo &quot;<span style=&#x5c;&quot;color: green;&#x5c;&quot;>Kosher XHTML</span><hr>&quot;;
</script>

<script language=&quot;php&quot; type=&quot;text/php&quot;>
echo &quot;<span style=&#x5c;&quot;color: blue;&#x5c;&quot;>You&apos;d think this would work, wouldn&apos;t you&hellip;</span>&quot;;
</script>

</body>
</html>


All I get back is the <span style="color: red;">Illegal XHTML</span><hr> <span style="color: orange;">Deprecated XHTML</span><hr> - <script type="text/php"> and <script language="php" type="text/php"> don't do squat. And if that wasn't bad enough, including the required <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;> results in a completely blank page!!

WTF?!?!

Ideas?[/font]
ID: 140196 · Report as offensive
Profile mlcudd
Volunteer tester
Avatar

Send message
Joined: 11 Apr 03
Posts: 782
Credit: 63,647
RAC: 0
United States
Message 140359 - Posted: 21 Jul 2005, 19:59:00 UTC

sorry, I only know English...haha...sorry..couldn't resist
www.boincsynergy.com


ID: 140359 · Report as offensive
N/A
Volunteer tester

Send message
Joined: 18 May 01
Posts: 3718
Credit: 93,649
RAC: 0
Message 140605 - Posted: 22 Jul 2005, 2:51:04 UTC - in response to Message 140359.  

[font='courier,courier new']That's reeeeeal helpful. :-/[/font]
ID: 140605 · Report as offensive

Message boards : Cafe SETI : PHP Hell


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.