Jump to content


Photo

heeeellpp plz -- need help on phpinfo() function!


  • Please log in to reply
3 replies to this topic

#1 dutchmanx

dutchmanx
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 August 2003 - 01:27 AM

I run php 4.3.3 with Apache 2, I read something about this being unstable, could this be responsible for the next problem?

#2 dutchmanx

dutchmanx
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 August 2003 - 11:12 PM

I am having problems with the phpinfo() function. Links to the site with this code do not work, typing the address in makes my system instable, but every once in a while when I type it in and I am lucky I actually get to see it. Although that was a little while ago, I havent gotten lucky in a long time. If anybody has an answer for this i would greatly appreciate it. Thanks for ur time.

The source code for the page is simply:
<html>
<body>
<?php
phpinfo();
?>
</body>
</html>

#3 dutchmanx

dutchmanx
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 30 August 2003 - 08:17 PM

anybody? :?:

#4 mndwn

mndwn
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationNSW, Australia

Posted 31 August 2003 - 03:26 AM

You do not need the HTML tags to view the phpinfo() information, you can just have it like this:

[php:1:b727575417]<?php
phpinfo();
?>[/php:1:b727575417]

Make sure the doc is in your htdocs folder and then just open it up by having this in your address bar:

http://localhost/test.php

If the filename is different just make the adjustments as necessary, if the page does not come up make sure that your Apache installation is working:

http://localhost/.

If nothing comes up then there is a problem with your installation. If Apache 2 is becoming unstable for u, try using Apache 1.3
<?php
function cheers($message) {
if (!isset($message)) {
$message = "Cheers!";
} echo ("$message"); exit(); }  cheers(); ?>
m5Central.net <Developing PHP-Based Solutions for the Future>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users