Probably the dumbest question you'll ever answer
Posted: Thu Sep 10, 2009 4:58 am
I have a fairly complex AJAX/PHP project going and working fine when all of a sudden (and I at first thought it was a cache issue... wasn't) everywhere that PHP was executing would display the echo syntax in plain HTML!
Such that:
...would display in the browser:
So I thought WAMP was down,
restarted it... nothing.
restarted the system... nothing.
So finally I make a stupid simple PHP page:
What does it return?
Seriously... this is getting me <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> off and I'm losing hours debugging this. Any ideas?
Such that:
Code: Select all
echo '<table class="center"><tr><td class="wForm:>';
createMyList();
echo '</td><td class="wForm">';
createSList();
echo '</td></tr></table>';
?>Code: Select all
'; createSList(); echo ''; ?>restarted it... nothing.
restarted the system... nothing.
So finally I make a stupid simple PHP page:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- some java imports, css -->
</head>
<body>
<?php
echo "Hello World!";
?>Code: Select all
"; ?>