Hey, I just installed apache 2 and php 4 onto my windows xp pro computer. Everything runs fine and when I right down localhost in the search bar in mozilla it opens the index.html file which is in the htdocs file. I then copied the needed php files and edited httpd and everthing seems to work when I click restart apache and so on. Then I created a php file like this
and put it in the htdocs folder with the index.php and then I type down localhost/phpinfo.php and a box appears saying download it and if you click ok it downloads and then if you open it up and look at it it is the same code as the one above but it wouldnt show it. What could be wrong?
| Code: |
|
<?php phpinfo(); ?> |
and put it in the htdocs folder with the index.php and then I type down localhost/phpinfo.php and a box appears saying download it and if you click ok it downloads and then if you open it up and look at it it is the same code as the one above but it wouldnt show it. What could be wrong?
