NYCPHP Meetup

NYPHP.org

[nycphp-talk] Where do name spaces come from?

Faber Fedor faber at linuxnj.com
Tue Mar 30 00:51:13 EST 2004


While working on my XML-RPC project, I keep coming across code like
this:

$disp_map = array( "server.helloWorld" =>
			<snip>
	            "server.echoback" =>
			<snip>
            );

What's confusing me is the "server." notation.  I haven't seen a guide
on where that comes from (why "server" in this example and not "foo"?).
Is it the file name?  If so, why did changing the file name to
"my_server.php" and renaming the name space appropriately not work?  Is
it some sort of internally defined name (although I couldn't find it in
the file)?

I looked up "name space" on php.net and found stuff about DOM which is
not applicable here, I beleive.

-- 
 
Regards,
 
Faber                     

Linux New Jersey: Open Source Solutions for New Jersey
http://www.linuxnj.com






More information about the talk mailing list