Hello,
Today I tried to set up my working environment for PHP. I finished to configure Apache and PHP and they seem to work properly with one exception.
When I type localhost/file.php into my browser it "parses"/"interprets" my PHP code correctly and it shows the correct output according to the book I am learning from. But when I try to open the file.php directly with the browser it doesn't show the same thing.
I wonder... is this supposed to happen? What is the cause and can I change something so that opening the file.php directly will show the correct output
Today I tried to set up my working environment for PHP. I finished to configure Apache and PHP and they seem to work properly with one exception.
When I type localhost/file.php into my browser it "parses"/"interprets" my PHP code correctly and it shows the correct output according to the book I am learning from. But when I try to open the file.php directly with the browser it doesn't show the same thing.
I wonder... is this supposed to happen? What is the cause and can I change something so that opening the file.php directly will show the correct output