|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Well, i have a file holding a class inside it. I include it into my main page and call it using:
PHP Code:
Then I get the following error message when I call it: Quote:
The php code defining the class can be found here. here I have spent hours looking at this code to no avail. Please help!
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#2
|
|||
|
|||
|
Hello,
It works on my PC. Are you sure you have included the class file correctly? |
|
#3
|
|||
|
|||
|
Make sure you use the same case "UserDetails" when including the class... Also, be sure you saved the file as "UserDetails" and not "userdetails" or "userDetails".
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#4
|
|||
|
|||
|
just a thought
does your class contain the constructor function? even if it contains nothing, it's required for a class to be created. also check what frank said about the file name, if you're using
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Class does not exist? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|