Help With Class Loading

Hi All

I have a problem loading an dateTime class I have created.


class dateTime{


	public function addday(){

		echo "work now please";exit; 




The file is in


which from my understanding should autoload

but I am getting this error when calling

$datetime = new dateTime;


Fatal error: Call to undefined method DateTime::addday()

can anyone help

It’ll be because there’s a built in DateTime class in php. Try using a different class name or use a namespace.

fixed thanks