Reputation: 1851
I've started to learn about dynamic web pages so I dont know much about web servers or php or anything that's related to web. So I've installed XAMPP (to opt/lampp as default),and I want to test my first ever php script, but I don't know where to save it, because if I save it simply in opt/lampp it says object now found in the browser. Where do I need to save my php scripts in the server to be able to run them in the browser? Thank.
Upvotes: 0
Views: 4857
Reputation: 26
You should save them under www/
Example under www/ you have a file called test.php
the correct url should be
localhost/test.php
Another
under www/ you have a folder called test_folder
that contains a file called my1script.php
the correct url should be
localhost/test_folder/my1script.php
Upvotes: 1