Jump to content

PHP and Windows XP


Recommended Posts

Ello Everyone

 

Really need some tips on anything I could try with regards to Windows recognizing PHP for what it is.

 

I had a Windows setup file. It was an archive which was extracted to c:\php5.

 

The php.ini-recommended file has been re-named as appropriately (i.e. php.ini) and placed within c:\windows. The php5ts.dll file is in c:/windows/sytem32.

 

Windows is still asking me what I want to use to open the file, when presumably it should just be executed. HELP!

 

I'm new to PHP and there are a few holes in my knowledge as to how PHP is referenced by Windows.

 

ANY help or advice on the installation of PHP on Windows XP would be greatly appreciated as I've run out of ideas. ???

Link to comment
Share on other sites

You have got a http server set up and configured right?

 

Install Apache http://httpd.apache.org (thats a http server) and configure Apache as follows, by adding the following to the httpd.conf:

 

LoadModule php5_module "C:/PHP5/php5apache2_2.dll"
PHPIniDir "C:/WINDOWS"
AddType application/x-httpd-php .php

 

Save the httpd.conf and restart Apache. Go to C:/Program Files/Apache Group/Apache2/htdocs (NOTE: your path may be different) and dump your PHP files in the htdocs folder. You can delete the existing files already in that folder if you wish too. Now open up your web browser and type in http://localhost/scriptname.php

 

Your PHP script will be parsed and the output shown in the browser window

 

You cannot run PHP without being configured with a web server. PHP is a server side language and not a client side language like HTML/CSS/JS etc. However you can run it from the Command Prompt if you wish however you wont gewt the same result. You see the generated HTMl/CSS/text your script generated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.