Click to See Complete Forum and Search --> : phpinfo() output


toasterted
05-22-2003, 09:28 PM
I installed php and setup everything correctly. PHP is working fine.

The problem is with phpinfo().

Whenever if check phpinfo(), the output shows up as regular text. looking at the source, it looks like all the HTML tags generated by phpinfo() is removed.

If im not mistaken, the output should be in tables.

Its not a big thing since php is working, but it makes checking variables difficult.

Anyone know why this happens and/or how to correct it?

edwardsbc
05-23-2003, 12:58 AM
Exactly how are you calling phpinfo? from a web page, from the command line?

Make a web page called phpinfo.php that has nothing but this in it:

<?php
phpinfo();
?>

Then view it with your browser.

Mordecai
05-23-2003, 02:30 AM
Hmm... can you give a little more info? Like, what's actually outputted (look at the source), how you have PHP installed, OS, etc.

toasterted
05-27-2003, 12:36 PM
I have phpinfo setup exactly like "edwardsbc" said.

PHP 4.3.1 installed in c:\php
windows xp pro
PHP.ini = c:\windows\system32 (using PHPRC)

without PHPRC, php will look for php.ini in the c:\windows directory. When it does that, the output for phpinfo() displays properly in the tables and all HTML tags are present, but any modifications to php.ini are not detected. PHP.ini is still in the system32 directory.

When I move php.ini to the c:\windows diretory, the output becomes messed up again. No HTML tags whatsoever in the source.

Source looks like this :

phpinfo()
PHP Version => 4.3.1

System => Windows NT localhost 5.1 build 2600
Build Date => Feb 15 2003 23:02:25
Server API => ISAPI
Virtual Directory Support => enabled
Configuration File (php.ini) Path => c:\windows\system32\php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => enabled
Registered PHP Streams => php, http, ftp, compress.zlib

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
_________________________________________________

Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
.........

coditoergosum
05-27-2003, 04:20 PM
http://us4.php.net/manual/en/function.phpinfo.php

Read the comments from "ganderatc at yahoo dot ca" and "davidbullock at tech-center dot com" on that page.

toasterted
05-27-2003, 05:16 PM
thanks that helped