Forum Moderators: phranque
im pretty new this apache, php and mysql thing and i just installed apache on my pc, as well as php. but how do i test my php code on my local machine. what will be the path to the files, should i keep my php files in a specific folder or can i keep it anywhere, apache is running and so is php, as an executable. i kept the php fiels in htdocs folder, and used the follwong path
[localhost...] v2/index.php3
but the file cannot be found.
apache is under C:/program files/apache group/apache/
while php is installed under c:/php
any help would be apreciated,
thanks
kumar
Here is the example of my config file:
ScriptAlias /_pHp4_/ "c:/php/"
AddType application/x-httpd-php .php .php3
Action application/x-httpd-php "/_pHp4_/php.exe" I also had lots of problems long time ago, and as far as I remember it was because of slashes. Please try that and get back here.
<?php
phpinfo();
?> and name this page test.php. Save it in c:/Program File/Apache Groub/apache/htdocs/test. Go to your browser and go to [localhost...]
As for the rest, you can find a very good step by step tutorial for installation and testing PHP, Apache, MySQL, Perl etc at this link...
DeveloperSide.Net [devside.net]
There you will find step by step instructions which are very easy to follow. Even gives you a few steps to test everything.