Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Using Echo Properly Re: Using Echo Properly

#72775
Rob MacKay
Participant

Ok.

phpinfo(); is a function that gives you all the information about the PHP installation on your server. It tells you everything you can and can’t do by default – and lets you know if you need to turn anything on or off depending on what features you have.

If you create a file called phpinfo.php then add



phpinfo();

?>

Then if you navigate to it you will be shown a page with a table of info on it :) phpinfo() won’t return a path when you use it as you are trying to, but it will show you a path within the mountain of other info it gives you.

So when you echo out a phpinfo – that’s what that means. It will give you the info you need automatically.