Re: Class Load twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx","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é


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux