Hi All,
I am developing one web application in PHP.How can i deploy the application outside the htdocs folder.When using the IIS in ASP.Net,we can make the folder in any drive as the root folder for the particular application.How can i do this in PHP??...
Regards,
Tinoy Malayil
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
To Deploy Php Application Outside Htdocs Root Folder
Started by tinoymalayil, Apr 13 2011 09:38 AM
1 reply to this topic
#2
Posted 18 April 2011 - 08:19 PM
There is no such a thing like a htdocs in PHP
That is Apache stuff (the server).
And , yes the main root is htdocs for default settings many times but that should be configured. httpd.conf is the file where you can edit the DocumentRoot and Directory-tags
Then restart your server and it should work.
But anyway , if you need only one file to be executed from a different place , you can use the php file. So for example , to run .php file on your desktop , you can use on terminal/cmd C:/locationofphp/php.exe 'C:\location\of\php\file' or /locationofphp/php "/location/of/file"
As i said , check if there is something like:
#DocumentRoot "/xampp/htdocs"
DocumentRoot "c:"
#<Directory "/xampp/htdocs">
<Directory "c:">
And , yes the main root is htdocs for default settings many times but that should be configured. httpd.conf is the file where you can edit the DocumentRoot and Directory-tags
But anyway , if you need only one file to be executed from a different place , you can use the php file. So for example , to run .php file on your desktop , you can use on terminal/cmd C:/locationofphp/php.exe 'C:\location\of\php\file' or /locationofphp/php "/location/of/file"
As i said , check if there is something like:
#DocumentRoot "/xampp/htdocs"
DocumentRoot "c:"
#<Directory "/xampp/htdocs">
<Directory "c:">
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














