[PHP] Class Load twice

2008-05-31 Thread Yui Hiroaki
hi! Please take look at my code; I have two files. one of the two file is wrtten mail() function. when load.php is loaded, mail(), written by MyClass.php, os also loaded. I just do not want to load mail() when load.php is load. if you know how to solove it, please teach me it!

Re: [PHP] Class Load twice

2008-05-31 Thread Ludovic André
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

Re: [PHP] Class Load twice

2008-05-31 Thread Yui Hiroaki
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é [EMAIL PROTECTED]: Hi, I just do not want to load mail() when load.php is load.

Re: [PHP] Class Load twice

2008-05-31 Thread Brady Mitchell
On May 31, 2008, at 211AM, Yui Hiroaki wrote: I just do not want to load mail() when load.php is load. if you know how to solove it, please teach me it! *MyClass.php*** ?php $objRef=new MyClass(hui7gutWSFrh6zt); $objRef-buff(); mail([EMAIL PROTECTED],test,test); class MyClass{