Page 1 of 1

Won't open files in local directory

PostPosted: 09. March 2010 01:47
by userFour
I had looked at some different topics, but I am overwhelmed with them and I cannot understand a lot of what posters are asking. This is the first day I have ever typed something in php, so I am new. Here is my problem illustrated with pictures.
Going to http://localhost works.

Image

in htdocs I put a hw.php file with the following code.

Image

Going to http://localhost/hw.php does not work.

Image

What am I dong wrong?

Re: Won't open files in local directory

PostPosted: 09. March 2010 02:54
by Jan445
i dont have a solution but maybe this helps you,
why dont you copy
<?php
echo"hello world";
?>
in to the file index.php that now displays "It works!" just use that file and try to figure out what the problem is
i think it must be something easy.

Re: Won't open files in local directory

PostPosted: 09. March 2010 04:23
by userFour
It is fixed, thanks. XAMPP was not doing the apache, another thing was.