spl_autoload problem

Joseserieh

New Member
I'm having a problem with this spl_autoload and a static method. The constructor in this class requires two params to function. I'm new to autoload and static classes so I'm out of my league a bit here. Hopefully someone can shed some light on this for me.Here is the call:\[code\]if(captcha::validate($post))...\[/code\]If I require the class apart from the spl_autoload function, it works as expected. If I let autoload handle it, as it should, the script dies with this message:\[quote\]\[code\]Fatal error: Class 'captcha' not found...\[/code\]\[/quote\]Can someone tell me what I am doing wrong here?
 
Back
Top