Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Use a php script for editingSetup project properties in PhpED>
Last updated: Sat, 13 Jul 2013

HOWTO: Setup project with scripts located out of the web tree ?

I have some scripts placed out of my web tree. E.g. I include them using relative path that is one level upper the apache htdocs (documentroot). How to setup my project in this case ?

To make the explanation easier, let's consider the following scenario. Assume, your web tree starts in /var/www/html/ like in many RedHat distros. Suppose your out-of-web scripts are in /var/www/secured/ directory. Also assume that you have created c:\myproject\html\ directory for your poject part that corresponds to web tree and c:\myproject\secured that would correspond to out-of-web part.
In this case set up the following properties for the project:

  • Project root directory => c:\myproject\
then on Run Mode page:
  • Root URL should be left blank.
  • Remote root directory => /var/www/
then check Additional Mapping and add an additional mapping point:
  • Remote directory => /var/www/html/
  • Local directory => c:\myproject\html\
  • Url => http://yourserver/




<Use a php script for editingSetup project properties in PhpED>
Last updated: Sat, 13 Jul 2013