note 37033 added to function.checkdate

From: Date: Fri, 31 Oct 2003 11:00:25 +0000
Subject: note 37033 added to function.checkdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-59564@lists.php.net to get a copy of this message
Here is an Example of Checkdate. Lower part of the script you can define as a function to call JavaClasses. if (!isset($id) || !is_numeric($id) || !checkdate($date)) { /* If the date format is not correct */ die ('Either id or date format is not correct'); return(-1); } else { chdir(MY_JAVAPATH); logString(getcwd()); $callJava = new Java("main.MyJavaClass"); /* JavaClass should be between double quote (" ")*/ logString("Calling MainInselProjektWechsel with ".$id.' & '.$date); logString($callJava->execute(MY_JAVAPATH,$id,$date)); logString('execute'); logString($callJava->getReturnTextValue()); logString('returntext'); logString($callJava->finalize()); logString('finalize'); return(0); } ---- Manual Page -- http://www.php.net/manual/en/function.checkdate.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37033 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37033&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37033&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59564) next »