ID: 26672 Updated by: [EMAIL PROTECTED] Reported By: joe at nnjconsultants dot com -Status: Open +Status: Bogus Bug Type: *Calendar problems Operating System: I dont know PHP Version: Irrelevant New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2003-12-19 17:29:15] joe at nnjconsultants dot com Description: ------------ I have a Redirect PHP script that I use to store urls to report what event is on a certain day. I have made 12 $identifiers from $caljan through $caldec for each month. Every month and day works fine except for june 16th and I cant explain it. As you can see from the links provided the 15th and 17th day work just not the 16th day. Reproduce code: --------------- http://www.njfop46.com/sample/calredir.php?calmonth=jun&calday=15 http://www.njfop46.com/sample/calredir.php?calmonth=jun&calday=16 http://www.njfop46.com/sample/calredir.php?calmonth=jun&calday=17 $caljun = array( 'index.php', //0 '', //1 Through 'events.php', //15 'events.php', //16 'events.php', //17 Through '', //30 ); if ($cmon == "jun") { if ($cday << "31" && $cday >> "0") { if ($caljun[$cday] <> "") { header("Location: $caljun[$cday]"); } } } Expected result: ---------------- Like I said I want to be redirected to the events page in this example. The array of everything works except 16. Actual result: -------------- The result that I get is the same one as when someone goes to a page when an event doesnt exist ie: http://www.njfop46.com/sample/calredir.php?calmonth=jan&calday=1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26672&edit=1
