Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php locations???

Status
Not open for further replies.

parallon

MIS
Dec 27, 2002
103
US
Is it possible to put .php files in different folders related to their function, or do they have to be in the root directory?

Thanks in advance,

Parallon

"I used to think that the more that you knew, the farther you would go, then I realized that the more that you know, the more they use you."

-Me
 
You mean the core PHP operating things? Or PHP files you are displaying in your page?

If it is the install stuff, then you can specify in the installation whereever you want to put them in the configuration file.

It it is a file for your webpage, it can be anything below your document root directory.

___________________________________
[morse]--... ...--[/morse], Eric.
 
I assume you mean to limit your question to running PHP through a web server.

In such case, it depends on how you are running PHP and how your web server is configured.

If you are running PHP as a web server module of ISAPI filter, you can run a PHP script from anywhere in the document root or any subdirectory.

If you are running PHP as a CGI program, then it depends more on how your server's configuration allows CGIs to run.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top