Page 3 of 3

Posted: Sun Mar 26, 2006 3:43 pm
by Cheeseboy
I havent done anything to it. It is set by default. Is there something important that need to be changed? I noticed i have mysql 5 and 4 installed should i uninstall one?

Posted: Sun Mar 26, 2006 3:54 pm
by feyd
Run the following in a new file, look for mysql. If it's not there, you'll need to install the extensions.

Code: Select all

<?php phpinfo(); ?>
It would also help to know what settings you have so run the following in a new file and tell us the results please.

Code: Select all

<?php

$ve = phpversion();
$os = PHP_OS;
$er = intval(error_reporting());
$rg = (in_array(strtolower(ini_get('register_globals')), array(0, false, '', null, 'off')) ? 'Off' : 'On');
$de = (in_array(strtolower(ini_get('display_errors')), array(0, false, '', null, 'off')) ? 'Off' : 'On');
$so = (in_array(strtolower(ini_get('short_open_tag')), array(0, false, '', null, 'off')) ? 'Off' : 'On');
$eol = (isset($_SERVER['HTTP_HOST']) ? "<br />\n" : "\n");

$ec = array(
   'E_STRICT' => 2048,
   'E_ALL' => 2047,
   'E_USER_NOTICE' => 1024,
   'E_USER_WARNING' => 512,
   'E_USER_ERROR' => 256,
   'E_COMPILE_WARNING' => 128,
   'E_COMPILE_ERROR' => 64,
   'E_CORE_WARNING' => 32,
   'E_CORE_ERROR' => 16,
   'E_NOTICE' => 8,
   'E_PARSE' => 4,
   'E_WARNING' => 2,
   'E_ERROR' => 1,
);

$e = array();
$t = $er;
foreach ($ec as $n => $v)
{
   if (($t & $v) == $v)
   {
      $e[] = $n;
      $t ^= $v;
   }
}
$er = $er . ' (' . implode(' | ', $e) . ')';

echo 'PHP Version: ' . $ve . $eol;
echo 'PHP OS: ' . $os . $eol;
echo 'Error Reporting: ' . $er . $eol;
echo 'Register Globals: ' . $rg . $eol;
echo 'Short Tags: ' . $so . $eol;
echo 'Display Errors: ' . $de . $eol;

?>

Posted: Sun Mar 26, 2006 4:06 pm
by Cheeseboy
This line

Code: Select all

<?php phpinfo(); ?>
Gave me the error:
Fatal error: Call to undefined function: php phpinfo() in /var/www/Esgames4uweb/testing.php on line 1
All i did was put that line in the code nothing else.




For the rather large one I got:

PHP Version: 4.4.0
PHP OS: Linux
Error Reporting: 2047 (E_ALL)
Register Globals: Off
Short Tags: On
Display Errors: On