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

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.

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.