Dynamic System Path


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.