So I set up PHP on a new computer with windows 7 and followed the today.php script from build your own database driven website...
here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<p>Today’s date (according to this web server) is
Could be any of them, I suspect. It is certainly easier to set everything up in WAMP, but if you want some guidance on setting things up as you have, the free chapters of Kevin's book (I think) cover this topic in detail. You can get the free chapters here:
I'll give it a go at all three...see what that does...
It's not MySQL: that's not responsible for parsing your PHP code, so it's unlikely that's causing an issue. It might be Apache that's not setup properly: you have to make sure Apache will pass the .php requests to PHP. Did you use the Windows Installer package to install PHP, or did you use another way? I'm not that familiar in the Windows environment, but if you tell us how you've installed them, maybe I could help you at least in the right direction. Also, look at PHP docs on installing it for Apache 2 on Windows.
I uninstalled php and apache still my browser is not reading the php. Apache is reading the html sections of the test scripts but not php. Could it be something in the php.ini or httpd.conf or something else...Please help.
I have set this on on windows XP before and was able to work with php just fine. I emphasize that I am now using Windows 7 should it make a difference I don't know...And I have downloaded each program MySQL, PHP and APACHE seperately.
Yes I have the book. This is all I have to help me and these are the steps I have followed thus far but I am not sure where I have gone wrong. One thing though, I did remove apache from my computer in the C drive and uninstalled the program but when I downloaded the program again the httpd.conf was already filled in with the info I have previously entered which to me was kind of weird that it was not a fresh page.