Posted By

AgentPhoenix on 01/24/08


Tagged

dynamic system


Versions (?)

Dynamic System Path


 / Published in: PHP
 

  1. if( ! isset( $system_path ) )
  2. {
  3. $system_path = './';
  4.  
  5. if( @realpath( $system_path ) !== FALSE )
  6. {
  7. $system_path = realpath( $system_path ) . '/';
  8. }
  9. }
  10.  
  11. $system_path = str_replace( "\\", "/", $system_path );

Report this snippet  

You need to login to post a comment.