Y
yezi
Dear all:
The following code is like this:
# the sendmail binary.
$sendmail = "/usr/lib/sendmail";
# base of your httpd installation.
$basedir = '/www';
# log file
$logfile = "$basedir/etc/logs/$progname.log";
# today
$date = `date`;
print " $logfile $date";
suppose the output to the screen is :
/www/etc/logs/progra.log date
however the outpur is /www/etc/logs/progra.log Wed Aug 3 17:29:06
MDT 2005
that means the $date is current date but not a string , right? $date is
kind of reserved variable?
Thanks for any comments
The following code is like this:
# the sendmail binary.
$sendmail = "/usr/lib/sendmail";
# base of your httpd installation.
$basedir = '/www';
# log file
$logfile = "$basedir/etc/logs/$progname.log";
# today
$date = `date`;
print " $logfile $date";
suppose the output to the screen is :
/www/etc/logs/progra.log date
however the outpur is /www/etc/logs/progra.log Wed Aug 3 17:29:06
MDT 2005
that means the $date is current date but not a string , right? $date is
kind of reserved variable?
Thanks for any comments