Re:phpinfo
| From: | Steve Edberg | Date: | Thu, 23 May 2002 21:26:41 +0000 |
| Subject: | Re:phpinfo | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98994@lists.php.net to get a copy of this message | ||
You might want to take a look at:
http://www.php.net/manual/en/ref.info.php
Specifically, get_cfg_var(), ini_get(), and ini_get_all()
-steve
At 10:08 AM -0700 5/23/02, Dennis Gearon wrote:
What I was trying to do was to find out how to get magic_quotes_sybase config value. This will do it:-- +------------------------------------------------------------------------+ | Steve Edberg sbedberg@ucdavis.edu | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http://pgfsun.ucdavis.edu/ | +------------------------------------------------------------------------+ | "If only life would imitate toys." | | - Ted Raimi, March 2002 | | - http://www.whoosh.org/issue67/friends67a.html#raimi | +------------------------------------------------------------------------+$test = addslashes("'"); $this->sybase_magic = strcmp( $test, "\\'");Also, I looked up eval(), it doesn't return the output of all fucntions like I thought. I would have to use system, the backticks, invoke php as a one time interpreter, OR, have a page that I call that has the appropriate version of PHPINFO in it, and call that page and process the returned call, from with in the current script. Dennis Gearon <gearond@cvc.net> wrote: --------------------------------------has anyone tried to eval() php info to prevent it from being displayedLso it could be processed for config checking, instead?Since what version have the 'subsections' of phpinfo() been available, like-- If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!! http://sysopt.earthweb.com/userreviews/products/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpphpinfo(INFO_CONFIGURATION); ?--