This is a discussion on How do I call a function in a Class from another function in the same class within the PHP General forums, part of the PHP Programming Forums category; Hi, I have two functions in a class where one calls the other. When creating my object I get an ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have two functions in a class where one calls the other. When creating my object I get an error: "Call to undefined function" I dont understand why the function can't be seen? Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003 |
|
|||
|
typically problem!
have you used $this->tehotherfunction(); or just use therotherfunction();??? if you call from your class to a members method , you have use $this!!! And read more about oo-method! cheers Donpro wrote: > Hi, > > I have two functions in a class where one calls the other. When creating my > object I get an error: > > "Call to undefined function" > > I dont understand why the function can't be seen? > > > Thanks, > Don > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003 > > |
|
|||
|
Hello all,
[snip] $subject="Welcome"; $from = "MIME-Version: 1.0\r\n"; $from .= "Content-type: text/html; charset=iso-8859-1\r\n"; $from .= "From: <murugesan@visolve.com>\r\n"; $subject="Welcome"; mail($mailid,$subject,$message1,$from); But I am not able to send the message. Eve n I checked mail return type. It is also working well. But I am not recieveing mail. Any ideas? -Murugesan |