a quick question

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

a quick question

Post by rubberjohn »

i apologise if this is an obvious one, but is it right that php scripts will not run directly from htdocs but must be in a subfolder of htdocs?

if this is not right where to i change the root declaration because i have tried to change it in php.ini and in config.inc.sys but it didnt work?

cheers
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

they work anywhere as long as you have it set up correctly.
the root declaration (docroot) is set in apache and not php. (in php too, but that doesn't have the same effect)
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

Apache and php work like this:

apache reads a file. if it ends in .php, it sends it to php to be parsed, then php sends it back. Nothing other than the extension matters. You can change what extensions are read in your apache conf file, though. :P
Post Reply