Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. echo defined('__DIR__') ? '__DIR__ is defined.' : '__DIR__ is NOT defined.';
  3. echo "\n\n";
  4.  
  5. echo @__DIR__;
  6. echo "\n\n";
  7.  
  8. echo strlen(__DIR__);
  9. echo "\n\n";
  10.  
  11. /**
  12. * Results when testing with PHP 7.0.2 for Windows 7 (executed as "X:/test.php"):
  13. * __DIR__ is NOT defined.
  14. *
  15. * X:\
  16. *
  17. * 3
  18. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement