word_bird — 2010-07-01T01:41:32-04:00 — #1
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:
[B]<!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
echo date('1, F dS Y.');
HTML is showing up @ http://localhost/today.php but not PHP.
What could be the issue?
word_bird — 2010-07-03T15:18:56-04:00 — #2
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.
ralphm — 2010-07-03T03:31:20-04:00 — #3
Did you try out Kevin's sample chapters that I linked to above? They might provide a useful checklist.
word_bird — 2010-07-03T03:09:22-04:00 — #4
I have checked and double checked the configuration and I don't see anything off.
I'm not sure what else to do...
The total code (html & php) shows in firefox. Only html shows in IE.
Now sure where I am going wrong here???
tomb — 2010-07-02T19:06:11-04:00 — #5
It will likely be your httpd.conf are you loading the php module? Are you associating php with .php files?
word_bird — 2010-07-02T14:10:38-04:00 — #6
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.
webaddictz — 2010-07-02T04:47:06-04:00 — #7
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.
word_bird — 2010-07-01T15:26:35-04:00 — #8
I'll give it a go at all three...see what that does...
word_bird — 2010-07-01T04:15:54-04:00 — #9
would that be just the PHP or all components (MySQL and Apache as well)???
word_bird — 2010-07-01T03:42:54-04:00 — #10
I set up the programs individually. Should I unistall and use the WAMP for PC using Windows 7.
ralphm — 2010-07-01T01:49:11-04:00 — #11
Are you running this code through MAMP / WAMP or some other server? It won't work unless you do that.
tomb — 2010-07-01T04:05:52-04:00 — #12
Then it sound like it's not set up correctly. Check the configuration again.
ralphm — 2010-07-01T04:39:24-04:00 — #13
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: