Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function includemyfile($filename='default')
- {
- $root = "c:\\php\\";
- $prefix = "myspecialfile_";
- $target = "$root$prefix$filename";
- if ( ( ctype_alnum($filename)) && (file_exists("$target"))) {
- print "Including $filename ...\n";
- } else {
- print "BAD FILENAME!\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement