strtotime problem running PHP as Apache module
| From: | Charles Mulford | Date: | Mon, 12 Feb 2001 20:52:24 +0000 |
| Subject: | strtotime problem running PHP as Apache module | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39261@lists.php.net to get a copy of this message | ||
Can anyone help?
Platform: Win2k, Apache, mysql
I am causing crashes when trying to run this date stuff using the PHP
module, but it works fine when using the same setup using the CGI version.
---- begin code snip ----
<SELECT name=\"OrdDate\" size\"1\">
$max_date = 90;
$ini_date = 0;
echo("\t<OPTION VALUE=\"NULL\"> </OPTION>\n");
do {
$dis_date = date("D\. M\. d\, Y", strtotime ("+$ini_date
day"));
$val_date = date("Y-m-d", strtotime ("+$ini_date day"));
echo("\t<OPTION VALUE=\"'$val_date'\">[$ini_date]
$dis_date</OPTION>\n");
} while (++$ini_date <= $max_date);
</SELECT>
---- end code snip ----
thanks!
Charles Mulford
Web Developer
McLeodUSA