954,228 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using PHP, MySQL and Apache Server

Hello

I have just bought a book on php, MySQL and Apache server which came
with an installation disk. I have installed all three on my laptop computer
running MS XP Professional. All three seem to work ok independantly but
when I try to run any code examples through IT web browser it doesn't
appear to run the php - I get a quick dos window appears and disappears.
Can anyone help with this problem.

Terry Kennedy

TelKennedy
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Go to the directory where you installed apache hopefully you will find an apache folder
open the apache folder inside the folder you will find the folder named htdocs.
try to open a new folder and save you php files in this folder hopefully when you
run the code it will be executed.

thangalimodzi
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Have you thought of using phpdev5. A program that installs php mysql and apache. Great for the beginner. I had it up and running with no hassles. Just remember to save your web pages in the www folder within phpdev5.

Regards Lynne

Hello

I have just bought a book on php, MySQL and Apache server which came with an installation disk. I have installed all three on my laptop computer running MS XP Professional. All three seem to work ok independantly but when I try to run any code examples through IT web browser it doesn't appear to run the php - I get a quick dos window appears and disappears. Can anyone help with this problem.

Terry Kennedy

wattle99
Newbie Poster
2 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

A mistake I made was to assume that the PHP woukld work just by double cliking the file or opening it in its directory. You need to visit

http://localhost/path/to/your/file.php

Roberdin
Supreme Evil Overlord
Team Colleague
282 posts since Feb 2003
Reputation Points: 63
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You