Previous Thread
Next Thread
Print Thread
Rate Thread
navdan #239512 03/13/2003 3:12 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
One thing to keep in mind is that when you run PHP from cron, you're running the binary instance of PHP, not the Apache module.

You can run the shell command "php -v" (or "/usr/bin/php -v", etc.) to check the version for the one that cron uses.

Another factor is that when running PHP from cron, rather than running it from the shell, the environmental parameters, such as the current working directory, may be different.

When I was setting up my PHP cron stuff, I first tried it with a simple test script that merely printed out the PHP version, current working directory, etc.

Sponsored Links
Entire Thread
Subject Posted By Posted
Subscriptions Eugene 03/11/2003 6:06 PM
Re: Subscriptions Eugene 03/13/2003 7:24 PM
Re: Subscriptions JoshPet 03/13/2003 9:30 PM
Re: Subscriptions Eugene 03/13/2003 9:35 PM
Re: Subscriptions Eugene 03/13/2003 9:36 PM
Re: Subscriptions JoshPet 03/13/2003 9:53 PM
Re: Subscriptions Dave_L_dup1 03/13/2003 10:12 PM
Re: Subscriptions JoshPet 03/13/2003 10:14 PM
Re: Subscriptions Eugene 03/14/2003 12:28 AM
Re: Subscriptions JoshPet 03/14/2003 12:30 AM
Re: Subscriptions Eugene 03/14/2003 12:33 AM
Re: Subscriptions Eugene 03/14/2003 12:35 AM
Re: Subscriptions JoshPet 03/14/2003 12:41 AM
Re: Subscriptions Eugene 03/14/2003 4:21 AM
Re: Subscriptions FlamingoWorld 03/28/2003 7:15 AM
Re: Subscriptions omegatron 03/28/2003 1:03 PM
Re: Subscriptions Mudpuppy 03/28/2003 10:12 PM
Re: Subscriptions FlamingoWorld 03/28/2003 10:28 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)