Thank you for your advice me!
-My.php---
?php
Class My{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
mail([EMAIL PROTECTED],test,test);
}
}
?
Thank you for your advice me!
-My.php---
?php
Class My{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
mail([EMAIL PROTECTED],test,test);
}
}
?
Quoting Yui Hiroaki [EMAIL PROTECTED]:
Thank you for your advice me!
-My.php---
?php
Class My{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
mail([EMAIL PROTECTED],test,test);
Thank you for your advice me!
-My.php---
?php
Class My{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
mail([EMAIL PROTECTED],test,test);
}
}
?
Thank you for your good advice.
I excute c.php I did not get Good from b.php.
How can I get Good from b.php.
Regards,
Yui
2008/6/4 Thijs Lensselink [EMAIL PROTECTED]:
Quoting Yui Hiroaki [EMAIL PROTECTED]:
Thank you for your advice me!
-My.php---
?php
Class My{
I knew it .
But Hello and Good is different file.
I would like to get Good from b.php.
Please tell me goo advice.
Yui
2008/6/4 Boyd, Todd M. [EMAIL PROTECTED]:
Thank you for your advice me!
-My.php---
?php
Class My{
private $word;
function
I knew it .
But Hello and Good is different file.
I would like to get Good from b.php.
Please tell me goo advice.
Yui
2008/6/4 Boyd, Todd M. [EMAIL PROTECTED]:
Thank you for your advice me!
-My.php---
?php
Class My{
private $word;
function
My problem is that I would like to share the parameter.
For instance, goolge map key.
There are actually two files.
example,
main.php
?php
$googlemapkey=g8ejeUFEUHEU;// example
mail([EMAIL PROTECTED],test.test);
?
Above is part of code;
I will excute main.php program.
then
Quoting Yui Hiroaki [EMAIL PROTECTED]:
My problem is that I would like to share the parameter.
For instance, goolge map key.
There are actually two files.
example,
main.php
?php
$googlemapkey=g8ejeUFEUHEU;// example
mail([EMAIL PROTECTED],test.test);
?
Above is part of
NO!
That is what I do not want!
setting.php need to run mail() function.
also setting.php need $googlemapkey.
other.php just need $googlemapkey.
other .php do not need run mail() function.
If I use include, I will get twice email.
Please do advice how to share the $googlemapkey.
Regards,
Yui
On 04 June 2008 16:03, Yui Hiroaki advised:
NO!
That is what I do not want!
setting.php need to run mail() function.
also setting.php need $googlemapkey.
other.php just need $googlemapkey.
other .php do not need run mail() function.
If I use include, I will get twice email.
Same
-Original Message-
From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2008 10:03 AM
To: Thijs Lensselink
Cc: php-general@lists.php.net
Subject: Re: [PHP] Avoid object twice
NO!
That is what I do not want!
setting.php need to run mail() function.
also
-
From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2008 10:03 AM
To: Thijs Lensselink
Cc: php-general@lists.php.net
Subject: Re: [PHP] Avoid object twice
NO!
That is what I do not want!
setting.php need to run mail() function.
also setting.php need $googlemapkey
:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2008 10:03 AM
To: Thijs Lensselink
Cc: php-general@lists.php.net
Subject: Re: [PHP] Avoid object twice
NO!
That is what I do not want!
setting.php need to run mail() function.
also setting.php need $googlemapkey.
other.php just need $googlemapkey
On 6/4/08, Yui Hiroaki [EMAIL PROTECTED] wrote:
Uhmm!
It is sure that function can call from other file.
But it is NOT EXECUTE mail() function.
How mail function be execute!
Please do more advice.
You may tire of this mail.
Yes.
David
--
PHP General Mailing List (http://www.php.net/)
, 2008 10:03 AM
To: Thijs Lensselink
Cc: php-general@lists.php.net
Subject: Re: [PHP] Avoid object twice
NO!
That is what I do not want!
setting.php need to run mail() function.
also setting.php need $googlemapkey.
other.php just need $googlemapkey.
other .php do not need run mail() function
-Original Message-
From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2008 12:28 PM
To: Boyd, Todd M.
Cc: php-general@lists.php.net
Subject: Re: [PHP] Avoid object twice
Thanks you for php developer.
If php can not share the parameter each different
file
HI!
I had mistake in code in php.
When I excute My.php, it say Hello
When I excute b.php, it say
Hello
Good
I would like to execute b.php and show
only Good
If you know it ,please teach me!
Here is code below;
-b.php
?php
function __autoload($class_name) {
I don't see how it's possible for you to get Hello after Good, when the
file that cause's Hello is required to do Good
/James
On Mon, Jun 2, 2008 at 2:00 PM, Yui Hiroaki [EMAIL PROTECTED] wrote:
Please take a look at code.
a.php
$obj=new my(Hello);
$obj-buff();
Class
I suggest you don't put code other than class structures in class files.
Also don't execute My.php just execute b.php which though __autoload
includes My.php.
-b.php
?php
function __autoload($class_name) {
include_once $class_name . '.php';
}
$obj=new My(Hello);
Thank you for a good suggest!
Somehow, I have to execute my.php also.
This program have to run.
1)My.php
2)b.php
My.php show Hello - it is OK,
b.php shows
Hello
Good
it is NOT good. I need to get only Good
Please give me a suggestion.
Regards,
Yui
2008/6/3 James Dempster [EMAIL PROTECTED]:
Thank you for a good suggest!
Somehow, I have to execute my.php also.
This program have to run.
1)My.php
2)b.php
My.php show Hello - it is OK,
b.php shows
Hello
Good
it is NOT good. I need to get only Good
Please give me a suggestion.
Regards,
Yui
2008/6/3 James Dempster [EMAIL PROTECTED]:
Please look at my.php
my.php load
$obj=new My(Hello);
$obj-buff();
so, if a.php load, it absolutely got hello in load b.php
Regards,
Yui
2008/6/3 Thijs Lensselink [EMAIL PROTECTED]:
Quoting Yui Hiroaki [EMAIL PROTECTED]:
Thank you for a good suggest!
Somehow, I have to execute my.php
Quoting Yui Hiroaki [EMAIL PROTECTED]:
Thank you for a good suggest!
Somehow, I have to execute my.php also.
This program have to run.
1)My.php
2)b.php
My.php show Hello - it is OK,
b.php shows
Hello
Good
it is NOT good. I need to get only Good
Please give me a suggestion.
Regards,
Yui
Quoting Yui Hiroaki [EMAIL PROTECTED]:
Please look at my.php
my.php load
$obj=new My(Hello);
$obj-buff();
so, if a.php load, it absolutely got hello in load b.php
Regards,
Yui
2008/6/3 Thijs Lensselink [EMAIL PROTECTED]:
Quoting Yui Hiroaki [EMAIL PROTECTED]:
Thank you for a good
The code is blelow;
-b.php
?php
function __autoload($class_name) {
include_once $class_name . '.php';
}
$objref=new My(Good);
$objref-buff();
?
---
--My.php--
?php
$obj=new My(Hello);
$obj-buff();
Class My{
On 3 Jun 2008, at 17:12, Yui Hiroaki wrote:
The code is blelow;
-b.php
?php
function __autoload($class_name) {
include_once $class_name . '.php';
}
$objref=new My(Good);
$objref-buff();
?
---
--My.php--
?php
Yui Hiroaki wrote:
The code is blelow;
-b.php
?php
function __autoload($class_name) {
include_once $class_name . '.php';
}
$objref=new My(Good);
$objref-buff();
?
---
--My.php--
?php
$obj=new My(Hello);
Stut wrote:
On 3 Jun 2008, at 18:35, Yui Hiroaki wrote:
Sorry I still have a problem.
Let's take a step back. What are you *actually* trying to do. I'm
assuming it's not just printing out Hello and Good. What is the real
problem you're trying to solve and what are the constraints that are
Thank you for everyone who helps me!
I got a message what I want.
Thank you!
Yui
2008/6/4 Jim Lucas [EMAIL PROTECTED]:
Yui Hiroaki wrote:
The code is blelow;
-b.php
?php
function __autoload($class_name) {
include_once $class_name . '.php';
}
On 3 Jun 2008, at 18:35, Yui Hiroaki wrote:
Sorry I still have a problem.
Let's take a step back. What are you *actually* trying to do. I'm
assuming it's not just printing out Hello and Good. What is the real
problem you're trying to solve and what are the constraints that are
causing
Sorry I still have a problem.
I separete files belows;
-My.php---
?php
Class My{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
echo $this-word.br /;
}
}
?
Please take a look at code.
a.php
$obj=new my(Hello);
$obj-buff();
Class my{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
echo $this-word.br /;
}
--
Try removing from a.php the lines:
$obj=new my(Hello);
$obj-buff();
I think this will achieve what you want.
-Original Message-
From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2008 11:01 PM
To: php-general@lists.php.net
Subject: [PHP] Avoid object twice
Please take
Yui Hiroaki wrote:
Please take a look at code.
a.php
$obj=new my(Hello);
$obj-buff();
Class my{
private $word;
function __construct($getword){
$this-word=$getword;
}
public function buff(){
echo $this-word.br /;
}
--
.
-Original Message-
From: Yui Hiroaki [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2008 11:01 PM
To: php-general@lists.php.net
Subject: [PHP] Avoid object twice
Please take a look at code.
a.php
$obj=new my(Hello);
$obj-buff();
Class my{
private $word
36 matches
Mail list logo