marekswistun Posted April 7, 2007 Share Posted April 7, 2007 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. ??? Quote Link to comment https://forums.phpfreaks.com/topic/46024-php-and-windows-xp/ Share on other sites More sharing options...
wildteen88 Posted April 7, 2007 Share Posted April 7, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/46024-php-and-windows-xp/#findComment-223629 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.