Skip to content

Instantly share code, notes, and snippets.

@jinkrish
Last active April 23, 2016 10:27
Show Gist options
  • Save jinkrish/6cc28648266616ed7aad to your computer and use it in GitHub Desktop.
Save jinkrish/6cc28648266616ed7aad to your computer and use it in GitHub Desktop.
<?php
if($_SERVER['REMOTE_ADDR']=='192.168.6.4')
{
try{
$refFunc = new ReflectionFunction('RedisSrchKey');
echo $refFunc->getFileName()."@#".$refFunc->getStartLine();
}catch(Exception $e){
echo "Function Does not EXIST";
}
}
?>
@jinkrish
Copy link
Author

Function to find where function named RedisSrchKey is location among the included files. If not exists will print "Function Does not EXIST" message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment