Posted By

relaxasaurus on 12/04/08


Tagged


Versions (?)

Root path script


 / Published in: PHP
 

  1. //(on actual page)
  2. $dirDepth = 1;
  3. include "../_assets/includes/initialize.php";
  4.  
  5. //(on initialize.php)
  6. $rootPath = '';
  7. for($i=0; $i<$dirDepth; $i++) {
  8. $rootPath .= '../';
  9. }

Report this snippet  

You need to login to post a comment.