Hello, I'm a PHP newbie, but not a programming newbie. So, my PHP local installation was working fine about a month ago with no problems. Then I got busy and I'm not able to touch it and when I come back it's doing some strange things. The 'echo' statement now leaves a trail of '?> behind on the page, and calls to the server have stopped working. But it prints the echo text. Here's an example: the line: <?php echo '<p>Whoopeee</p>'; ?> Code (markup): outputs this: Whoopeee '; ?> And the line: <?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') != FALSE) { echo 'You are using Internet Explorer.<br />';} ?> Code (markup): Only outputs: ';} ?> Obviously something in my PHP configuration changed. Apache is working fine. Has anyone seen this happen before? Any quick fix advice? Thanks!
Look at the source code. You'll see the rest as well. PHP is not running and it's being parsed as HTML. Maybe you had PHP installed as service and it started with Windows when you turned your computer on, and for some reason it changed and it's not running anymore by default. I would suggest using XAMPP as local server. It's easy to install and use.