Re: [PHP] Put all class in one file or different files

2010-08-28 Thread Haulyn Jason
On 08/29/2010 02:04 PM, Eric Cash wrote: I'm out and about right now, so I can't link you to the autoload documentation page Thanks Eric, I have read the autoload document, but not pay attention on it. I will search more about it now, thanks. -- Thanks! VVThumb Microproduction Location:Roo

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread Jim Lucas
tedd wrote: At 12:15 AM +0200 8/29/10, Peter Lind wrote: On 28 August 2010 23:45, tedd wrote: > So, I'm trying to figure out a compliment to $_SERVER['SERVER_NAME'] such as something like $_SERVER['REMOTE_NAME']. > Is there such a beast? You're not making any sense. For the script on y

Re: [PHP] Put all class in one file or different files

2010-08-28 Thread Haulyn Jason
On 08/29/2010 01:06 PM, Josh Kehn wrote: On Aug 29, 2010, at 12:56 AM, Haulyn Jason wrote: Hi, all: I have many classes, from Java I have to put a class in one java files, in PHP I know I can put all of them in one file, but this make my class files too large, is there any best practice

[PHP] Put all class in one file or different files

2010-08-28 Thread Haulyn Jason
Hi, all: I have many classes, from Java I have to put a class in one java files, in PHP I know I can put all of them in one file, but this make my class files too large, is there any best practice to guide these basic? Thanks. -- Thanks! VVThumb Microproduction Location:Room 807,QiLuRuanJi

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread Tamara Temple
Sorry, forgot to include the mailing list email when I replied to this originally... On Aug 28, 2010, at 8:28 PM, tedd wrote: Sorry for not making sense. But sometimes you have to confirm the players (both server and remote) in communications. Try this -- place this script on your site:

[PHP] array_walk_recursive pass by reference

2010-08-28 Thread kranthi
i have an array $parms = array('1' => 'a', 'b' => array(3 => 'test')); i want $mail = '1:a 3:test'; array_walk_recursive($parms, function($val, $key, &$mail) {     $mail .= ucwords($key) . ': '. ucwords($val) . "\n"; }, &$mail); The above function worked perfectly well but i am getting: Call-time

Re: [PHP] displaying constants

2010-08-28 Thread David McGlone
On Sat, 2010-08-28 at 11:13 -0400, Daniel P. Brown wrote: > On Sat, Aug 28, 2010 at 10:58, David McGlone wrote: > > Hi all, could someone show me how to echo back a constant to check if > > they are assigned correctly? Something like this: > > > > define('SITE_ROOT', dirname(dirname(__FILE__))); >

[PHP] Re: Re: Making multiple RSS feeds for the blog website

2010-08-28 Thread Michelle Konzack
Hello Andre Polykanine, Am 2010-08-27 12:55:51, hacktest Du folgendes herunter: > Hello Michelle, > > Hm. link rel="alternate"... that's a good one, thanks (btw, you say me > that I should RTFM, but if I knew what to read). > Now there are two questions: > 1. How do I do those .RSS files with

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread tedd
At 12:15 AM +0200 8/29/10, Peter Lind wrote: On 28 August 2010 23:45, tedd wrote: > So, I'm trying to figure out a compliment to $_SERVER['SERVER_NAME'] such as something like $_SERVER['REMOTE_NAME']. > Is there such a beast? You're not making any sense. For the script on your local hos

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread Peter Lind
On 28 August 2010 23:45, tedd wrote: > At 9:41 PM +0200 8/28/10, Per Jessen wrote: >> >> tedd wrote: >>  > >>> >>>  So, how can I identify the exact location of the 'server_addr' and of >>>  the 'remote_addr' on shared hosting? Is that possible? >> >> $_SERVER['SERVER_NAME'] will tell you the name

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread tedd
At 9:41 PM +0200 8/28/10, Per Jessen wrote: tedd wrote: > So, how can I identify the exact location of the 'server_addr' and of the 'remote_addr' on shared hosting? Is that possible? $_SERVER['SERVER_NAME'] will tell you the name of the virtual host - I don't know if that is what you're aft

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread Per Jessen
tedd wrote: > Hi gang: > > The server global: > > $_SERVER['SERVER_ADDR'] > > Provides the IP of the server where the current script is executing. > > And, the server global: > > $_SERVER['REMOTE_ADDR'] > > Provides the IP of the server executing the script. Yes, aka the client addr

[PHP] Questions about $_SERVER

2010-08-28 Thread tedd
Hi gang: The server global: $_SERVER['SERVER_ADDR'] Provides the IP of the server where the current script is executing. And, the server global: $_SERVER['REMOTE_ADDR'] Provides the IP of the server executing the script. As such, you can enter the IP of either into a browser and see t

Re: [PHP] displaying constants

2010-08-28 Thread Daniel P. Brown
On Sat, Aug 28, 2010 at 10:58, David McGlone wrote: > Hi all, could someone show me how to echo back a constant to check if > they are assigned correctly? Something like this: > > define('SITE_ROOT', dirname(dirname(__FILE__))); > > echo 'SITE_ROOT'; > > I tried the echo but it wasn't working.

[PHP] displaying constants

2010-08-28 Thread David McGlone
Hi all, could someone show me how to echo back a constant to check if they are assigned correctly? Something like this: define('SITE_ROOT', dirname(dirname(__FILE__))); echo 'SITE_ROOT'; I tried the echo but it wasn't working. -- Blessings, David M. -- PHP General Mailing List (http://www.p

Re: [PHP] Re: Making multiple RSS feeds for the blog website

2010-08-28 Thread Jason Pruim
On Aug 27, 2010, at 5:55 AM, Andre Polykanine wrote: Hello Michelle, Hm. link rel="alternate"... that's a good one, thanks (btw, you say me that I should RTFM, but if I knew what to read). Now there are two questions: 1. How do I do those .RSS files with PHP? All of mmy blog entries and ot