Page 1 of 1

Where to save php files

PostPosted: 01. January 2012 06:43
by hackit
I'm new to both ubuntu and php and web development in general. Can anyone tell me which folder I should save my php files in so that I can view them in my browser. I currently have the xampp 1.7.7 for linux installed.

Re: Where to save php files

PostPosted: 01. January 2012 12:44
by Altrea
Hi hackit.

Your Webfiles (HTML, CSS, JS, PHP, Images, etc) should be saved inside your Apache DocumentRoot or subfolders of it.
The Apache DocumentRoot on Linux is /opt/lampp/htdocs/ by default.

best wishes,
Altrea

Re: Where to save php files

PostPosted: 01. January 2012 18:43
by hackit
Altrea,

Thanks for addressing my question. I'll do that and let you know how that goes.

Re: Where to save php files

PostPosted: 04. January 2012 05:21
by pacoi
Altrea wrote:Hi hackit.

Your Webfiles (HTML, CSS, JS, PHP, Images, etc) should be saved inside your Apache DocumentRoot or subfolders of it.
The Apache DocumentRoot on Linux is /opt/lampp/htdocs/ by default.

best wishes,
Altrea

Okay, this makes sense. I was confused for a little there. Dealing with folders can be such a pain.