daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 10 * * * * /usr/bin/php  /var/www/update/ranks.php >> /var/www/update/log/ranks.txt
  2.    
  3. PHP Warning:  require_once(../mws_products.php): failed to open stream: No such file or directory in /var/www/update/ranks.php on line 2
  4. PHP Fatal error:  require_once(): Failed opening required '../mws_products.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/update/ranks.php on line 2
  5.    
  6. <?php
  7. require_once('../mws_products.php');
  8.  
  9. echo "-------------------------------------------------------------n";
  10. echo date('d-M-Y H:i:s',time())."n";
  11. echo "Update Ranksn";
  12. $products->updateRanks();
  13. $database->addUpdate("ranks", time());
  14. echo "nnn";
  15. ?>
  16.    
  17. [folder] update
  18.    |____ [file] ranks.php
  19.  
  20. [file]   mws_products.php
  21.    
  22. define( 'ROOT', dirname(__FILE__) );  
  23. require_once(ROOT . '/../mws_products.php');
  24.    
  25. require_once('/var/www/mws_products.php');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top