Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. mainDirectory
  2. -app
  3. --logs
  4. ---errors.log
  5. -file.php
  6.  
  7. ini_set("log_errors", 1);
  8. ini_set("error_log", "logs/errors.log");
  9.  
  10. error_log( print_r($response, TRUE) );
  11.  
  12. if( file_exists( "logs/errors.log" ) ) {
  13. echo 'yup';
  14. }
  15. else {
  16. echo 'nope';
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement