Simple simple Date class error

From: Date: Fri, 25 Jul 2003 20:00:13 +0000
Subject: Simple simple Date class error
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6828@lists.php.net to get a copy of this message
When executing the following code: <?php require_once 'Date.php'; $theDate = new Date(); $theDate -> getDate(); ?> I get the following error: Fatal error: Cannot instantiate non-existent class: date in E: \Inetpub\wwwroot\test\Date.php on line 4 Makes sense, how do I instantiate the class? Any other OOP design allows you to define a constructor and then create an instance using the new keyword. Could somebody please write something quick and dirty as an example on how to use the class? Even a few simple lines would help. Getting this package to work has been like pulling teeth. I'm sure most of it is my own fault ... Thanks in advance! Stephen March Application Information Officer AB & NWT Region Phone: (780) 495-2831 Email: stephen_march@hc-sc.gc.ca (Embedded image moved to file: pic14798.gif)

« previous php.pear.general (#6828) next »