Re: Class Load twice
| From: | Yui Hiroaki | Date: | Sat, 31 May 2008 10:23:50 +0000 |
| Subject: | Re: Class Load twice | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274894@lists.php.net to get a copy of this message | ||
Yes, Second file is load.php(NOT MyClass.php )
If you add comment Mail() function ,in MyClass.php,
I can not get any email!
I just want to get email from only MyClass.php.
Regards,
Yui
2008/5/31 Ludovic André <bkill-ml@episode-2.com>:
> Hi,
>>
>> I just do not want to load mail() when load.php is load.
>> if you know how to solove it, please teach me it!
>>
>
> I assume that the second file is named 'load.php' ?
> Then you should just comment the line starting with mail(... in MyClass.php
> So:
>
> *********MyClass.php***********
> <?php
> $objRef=new MyClass("hui7gutWSFrh6zt");
> $objRef->buff();
> //mail("aaa@example.com","test","test");
> class MyClass{
> Private $google;
> function __construct($googleKEY){
> $this->google=$googleKEY;
> }
> public function buff(){
> echo $this->google;
> }
> }
>
> ?>
>
> That was an easy one ;)
>
>
> Best regards,
>
> Ludovic André
>
>