|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
class prob
Hi guys,
Can you guys tell me what is the prob with my code ? error: Fatal error: Cannot instantiate non-existent class: mime_mail in /home/fione/public_html/clients/apple/mime.php on line 89 code: $mail = new mime_mail(); class: class mine_mail { var $parts; var $to; ...... Please advise. |
|
#2
|
||||
|
||||
|
Looks like you're missing a constructor...
Add something like this within the class: PHP Code:
Constructors are a way to set/initialize the class variables. To be honest I don't know if PHP requires this, but I always do it to ensure readability for non-php designers. |
|
#3
|
||||
|
||||
|
Well, and there's the typo: "class mine_mail" should be "class mime_mail."
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > class prob |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|