Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod'n your phpinfo.php file |
|
Author |
|
shaggy
Joined: 15 Nov 2005 Posts: 82 Location: Dundee, Michigan
|
Posted: Wed 29 Nov '06 21:56 Post subject: mod'n your phpinfo.php file |
|
|
I know that some ppl have just simple script and phpinfo.php file probably wtih the code like this:
Code: | <?php
phpinfo ()
?> |
I wanna mod mine to include the following:
1.) Installed and loaded up PECL's?
2.) Installed and loaded up PEAR's?
3.) Installed and loaded up Windows Extensions? (cheat)
Any luck on how to do that? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 30 Nov '06 10:40 Post subject: |
|
|
all PECL's are included in the output by default.
To out put pear info
Code: |
<?php
require_once 'PEAR/Info.php';
//If you need to set a http_proxy value at run-time you can use the
//following, this must be called BEFORE instantiating the PEAR_Info object
//PEAR_Info::setProxy('your.proxy.here');
//only if needed
//Optional pear_dir variable, allows you to choose where your PEAR
//install is, in case its not found
$pear_dir = "/usr/share/php/PEAR/";
//Instantiate PEAR_Info object
$info = new PEAR_Info($pear_dir);
//Show PEAR_Info output
$info->show();
?>
|
What do you mean with Windows extension? |
|
Back to top |
|
shaggy
Joined: 15 Nov 2005 Posts: 82 Location: Dundee, Michigan
|
Posted: Thu 30 Nov '06 18:16 Post subject: |
|
|
James Blond wrote: | What do you mean with Windows extension? |
What I mean by that is
extension=php_extension.dll
ie: extension=php_mysql.dll
The one(s) that u add/remove from the php.ini file
But after posting this message and after adding extensions last night did the trick. Just the simple phpinfo script will pull that information up |
|
Back to top |
|
|
|
|
|
|