Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Invalid request, be sure to set all necessary keys.
  2.  
  3. login to your server (i am assuming SSH to a Unix box)
  4. cd $whatever_your_doc_root_is
  5. find . -name '*.php'
  6. # this should give you a biiiiig list of files
  7. php -l $afile
  8. # should report any errors
  9.  
  10. # edit the file you just compiled to have the following at the top
  11. # this is untested, but looks correct...
  12.  
  13. error_reporting(-1);
  14. # bool handler ( int $errno , string $errstr [, string $errfile [, int $errline [, array $errcontext ]]] )
  15. function h1($errno, $errstr, $errfile, $errline) {
  16. echo("$errfile#$errline: [$errno]$errstrn");
  17. return true;
  18. }
  19. set_error_handler('h1');
  20.  
  21. for x in `find . -name '*.php' ` do php -l $x; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement