Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

To Deploy Php Application Outside Htdocs Root Folder


1 reply to this topic

#1 tinoymalayil

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 154 posts
  • Gender:Male
  • Location:India
  • myCENT:23.11

Posted 13 April 2011 - 09:38 AM

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

#2 darko100

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 117 posts
  • Gender:Male
  • myCENT:31.51

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:">




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users