Created
June 5, 2009 12:47
-
-
Save SimonS/124270 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test whether file is being called directly. | |
// define a class | |
if (strtoupper(__FILE__)==strtoupper($_SERVER['SCRIPT_FILENAME'])) { | |
// demonstrate class | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment