How do I call a function in a Class from another function in the same class

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
Donpro
 
Posts: n/a
Default How do I call a function in a Class from another function in the same class

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


Reply With Quote
  #2 (permalink)  
Old 08-16-2003
Adam
 
Posts: n/a
Default Re: How do I call a function in a Class from another function inthe same class

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
>
>


Reply With Quote
  #3 (permalink)  
Old 08-18-2003
Murugesan
 
Posts: n/a
Default Problem in sending mail

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0