PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, February 8, 2022

[FIXED] What is difference between these two cron jobs?

 February 08, 2022     cron, lamp, php     No comments   

Issue

I am very new to php, if anyone can help me by telling what the difference is between these two cron commands, I would be very thankful:

/usr/local/bin/php -q /home/delightl/public_html/myfolder/run.php

and

php -q /home/delightl/public_html/myfolder/run.php

I am totally confused.. On my GoDaddy server, the second command worked, but in another resellerclub server both worked. What is difference between these commands?


Solution

The only difference is that one specifies the full path to the PHP binary, and the other doesn't.

PHP can be installed in different locations. That's why it works on one server, and not the other.



Answered By - Brad
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing