PHP Scripts Location

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
KernelPanic
Forum Newbie
Posts: 1
Joined: Tue Sep 14, 2010 12:47 am

PHP Scripts Location

Post by KernelPanic »

Hi to all!

I am total newbie at php and I've setup LAMP server and what is the "best location (folder)" on this linux server to save php scripts, which retreive data from mysql and write results of queries into .xml files? What chmod does this folder must have? And how do I then "launch" written script from other "client" computer?

Sincerely,
Marko
pkphp
Forum Newbie
Posts: 12
Joined: Mon Sep 20, 2010 1:20 am

Re: PHP Scripts Location

Post by pkphp »

well. i use xampp at the At first, and you can also read some simple scripts. you can find scripts in these sites:
http://www.phpkode.com
http://www.hotscript.com
http://www.softpadia.com

Reading and writing is the best way to study php :D
pkphp
Forum Newbie
Posts: 12
Joined: Mon Sep 20, 2010 1:20 am

Re: PHP Scripts Location

Post by pkphp »

by the way. i suggest you have a look at manual in php.net
You will find your answer there.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: PHP Scripts Location

Post by flying_circus »

KernelPanic wrote:Hi to all!

I am total newbie at php and I've setup LAMP server and what is the "best location (folder)" on this linux server to save php scripts, which retreive data from mysql and write results of queries into .xml files? What chmod does this folder must have? And how do I then "launch" written script from other "client" computer?

Sincerely,
Marko
Hi,

The best location to store your .php files that are to be served through a webserver, would be the webserver's document root. It' varies between installations and can user defined, but a common place to check would be /var/www/

have a look through your linux distro's help files or simply google for the document root of your webserver on your linux distro
Post Reply