It gives me a filedownload, and I really want PHP to work =(
Three answers:
gitter1226
2009-09-12 18:31:44 UTC
make sure you map the .php extension to either the php api (php5isapi/php5apache) dll or the fastCGI alternative. Otherwise php is served as text rather than an application.
Kasey C
2009-09-12 18:31:03 UTC
PHP is something you install on a web server. So, what web server ARE you using?
EDIT: Still doesn't make sense. PHP is NOT a database. MySQL is a database. So "I made a database with PHP5" makes no sense at all.
EDIT: Looks like your Apache install is toast. Clean it up and reinstall XAMPP.
_anonymous_
2009-09-12 18:41:24 UTC
PHP is something you run with a webserver
you can run a small webserver like Apache on your computer (i recommend getting XAMPP, with has Apache, PHP, and MySQL). You can put your php scripts in the "htdocs" folder and run them from your brwoser with http://localhost/myscript.php
XAMPP: http://www.apachefriends.org/en/xampp.html
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.