Posted By

silviud on 07/18/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

osirisinternet


count included files


 / Published in: PHP
 

  1. if ( count( get_included_files() ) == 1 )
  2. {
  3. die( 'The file ' . basename(__FILE__) . ' cannot be accessed directly, use include instead' );
  4. }

Report this snippet  

You need to login to post a comment.