Hi,
My host keeps messing things up and not telling me. I am trying to write a cron
job that will test to make sure the "unusual" functions I use work and, if not,
email me. I want it to send me the build date as well. The weird thing is, my
cron script (using phpinfo) gives me a different build date than phpinfo() in an
"admin tool" section of my website.
The cron script is sitting in the root of my home directory (non web
accessable). The admin tool is sitting in a password-protected (BASIC AUTH)
section of the site.
----------------------
CRON SCRIPT SNIPPET:
ob_start();
phpinfo();
$string = ob_get_contents();
ob_end_clean();
echo "\n\n" . $string . "\n\n";
----------------------
ADMIN TOOL SNIPPET:
phpinfo();
----------------------
CRON SCRIPT RESULT SNIPPET:
PHP Version => 4.3.3
System => Linux mydomain.com X.XX.XX-XX.X #1 Mon Aug 18 14:56:30 EDT 2003 i686
Build Date => Oct 21 2003 02:52:32
----------------------
ADMIN TOOL RESULT SNIPPET (copied from HTML):
PHP Version 4.3.3
System
Linux mydomain.com X.XX.XX-XX.X #1 Mon Aug 18 14:56:30 EDT 2003 i686
Build Date
Oct 18 2003 21:23:42
----------------------
I have tried both with phpinfo(INFO_GENERAL) as well - same result.
Does anyone have any idea why this is happening and how to fix it? Both scripts
are owned by the same user, and have the same permissions. Since I'm testing, I
currently execute the cron script through SSH with: php -q ./filename.php. I
execute the admin tool by accessing it through a browser.
Thanks in advance,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com