How and Where?

I have only just started learning PHP and would like to know where i should save my php files and how to call them please.ed

Could someone tell me where i can find “Document_root” in Ubuntu please!

PHP files can be saved any where you like. Only thing you go to remember is where you have saved it.

Example:

1.If you have a website,it mostly goes into the “public_html” folder.
www.yoursite.com/folder/yourfile.php

2.If you have a cross-platform web server(zend,xammp etc),it goes into the htdocs folder.
localhost/yourfile.php

Hope it helps,
super_human

Thought i had already tried the htdocs folder? Anyway, i tried again after reading your reply and it worked a treat lol. Big thanks super_human

Sponsor our Newsletter | Privacy Policy | Terms of Service