[PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
I was just thinking about some of our code on dealnews.com and thought it would be cool if we could write our own extension that would, among other things, make a couple of widely used variables on out site super globals like $_SERVER, etc. A) Can this be done. B) If so, can anybody give me a

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brad LaFountain
I believe you are looking for zend_register_auto_global(); - Brad --- Brian Moon [EMAIL PROTECTED] wrote: I was just thinking about some of our code on dealnews.com and thought it would be cool if we could write our own extension that would, among other things, make a couple of widely used

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
big thanks. Brian. - Original Message - From: Brad LaFountain [EMAIL PROTECTED] To: Brian Moon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 20, 2002 3:32 PM Subject: Re: [PHP-DEV] Custom Extensions and Super Globals | I believe you are looking

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
? Brian. - Original Message - From: Brad LaFountain [EMAIL PROTECTED] To: Brian Moon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 20, 2002 3:32 PM Subject: Re: [PHP-DEV] Custom Extensions and Super Globals | I believe you are looking for | | zend_register_auto_global

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
Subject: Re: [PHP-DEV] Custom Extensions and Super Globals | Ok, now for some help. | | I have this: | | PHP_MINIT_FUNCTION(autoglobal) | { | | ZEND_INIT_MODULE_GLOBALS(autoglobal, php_autoglobal_init_globals, NULL); | REGISTER_INI_ENTRIES(); | | zend_register_auto_global(_TEST2