note 37033 deleted from function.checkdate by vincent

From: Date: Fri, 31 Oct 2003 12:02:52 +0000
Subject: note 37033 deleted from function.checkdate by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59571@lists.php.net to get a copy of this message
Note Submitter: raja shahed@rajashahed.com ---- 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); }

« previous php.notes (#59571) next »