Page 1 of 1
PHP Scripts Location
Posted: Tue Sep 14, 2010 12:52 am
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
Re: PHP Scripts Location
Posted: Thu Oct 07, 2010 1:37 am
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

Re: PHP Scripts Location
Posted: Thu Oct 07, 2010 1:38 am
by pkphp
by the way. i suggest you have a look at manual in php.net
You will find your answer there.
Re: PHP Scripts Location
Posted: Thu Oct 07, 2010 11:17 am
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