> -----Original Message----- > From: Yui Hiroaki [mailto:hiroakiyui@xxxxxxxxx] > Sent: Wednesday, June 04, 2008 12:28 PM > To: Boyd, Todd M. > Cc: php-general@xxxxxxxxxxxxx > Subject: Re: Avoid object twice > > Thanks you for php developer. > > If php can not share the parameter each different > file, it is not reality of my program. > > If I use include or requre, php can share the paremeter each file. > But other files call or execute from original file. > > setting.php and google_info.php and other.php almost reach > the my goal, I thought. > > But google_info.php must execute mail() function. > Or setting.php must have $googlemapkey. I think it's a fair to assume that no programming language (i.e., PHP) is able to magically determine the contents of another file/script without communicating with it in some way (shared memory, pipes, sockets, the filesystem, middleware, etc.). How is google_info.php structured? Is it on YOUR server, so that you can put a page-include at the top of it? If the code that contains your class (which contains the function to execute mail()) is not included as part of the executed script, then the executed script will have no idea that it even exists--let alone have the knowledge of its member functions. I think you need to take a step back and focus on fundamental programming concepts before trying to tackle playing with a Google API. Todd Boyd Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php