Jump to content

About "phpinfo()"


weekenthe9

Recommended Posts

I wrote this in a test.php file:

 

<?php

phpinfo();

?>

 

At first it worked like what the manual says. But after a server reboot (or possibly other event), when I open test.php, it no longer gives me the well-formatted html table. Instead, it outputs everything as pure text...e.g.:

 

Attribute ---> Value

Attribute ---> Value

 

Just like if you do -i in php console. Also, PHP $_GET and $_POST no longer works...This should be a simple problem, but it's really getting me stuck...

 

Thanks for the help in advance :D

Link to comment
https://forums.phpfreaks.com/topic/146623-about-phpinfo/
Share on other sites

Thanks a lot, I appreciate it.

 

Actually my workplace uses xitami server, not apache. The change that I recently made to server setting is to add the following lines to "defaults.cfg" under xitami folder

 

[Mime]

php=application/x-httpd-php

[Filter]

.php=c:\\php\\php.exe (I'm not exactly sure about this, need to check when I get back to work tomorrow)

 

Which seems alright to me...could these code above be what caused the problem (double slash problem? incorrect slash direction?) or something else went wrong?

Link to comment
https://forums.phpfreaks.com/topic/146623-about-phpinfo/#findComment-769779
Share on other sites

You have double back slashes instead of single backslashes this is your problem and hence php is not initiating

 

change

[Mime]

php=application/x-httpd-php

[Filter]

.php=c:\\php\\php.exe

 

to

 

[Mime]

php=application/x-httpd-php

[Filter]

.php=c:\php\php.exe

 

and it should work

 

also ther is this tutorial you could read for xitami

 

http://www.devarticles.com/c/a/PHP/Installing-PHP-Under-Xitami/

Link to comment
https://forums.phpfreaks.com/topic/146623-about-phpinfo/#findComment-769792
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.