answersLogoWhite

0


Best Answer

It tells your a lot of information about your PHP version. It includes PHP compilation options and extensions, It lets your know server information and PHP environment. It gives you various paths such as your main php.ini that it is referencing.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

2w ago

phpinfo() is a PHP function that displays detailed information about the PHP environment, including configuration settings, extensions, and server information. It is often used for debugging and troubleshooting purposes to gather information about the PHP setup on a server.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does phpinfo do?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Information Science
Related questions

How can I know what PHP version my site is running on?

Set up a PHP file and put the following in it. <?php phpinfo(); ?> Then run it on the server, it will have all the information you will need including what version you are running.


How can you check whether your PHP installation has got IMAP support?

It's probably in the php.ini file, you can also have a look at the current configuration of your PHP by running a file on the webserver with the following code: <?php phpinfo(); ?> goodluck


How do you find version of PHP in uniform server?

The easiest way is to create a file with a name ending in .php (such as info.php), containing only these 3 lines: <? phpinfo(); ?> Upload this file to your web space and access it using your browser. It will show a lot of information about your webserver and the php version running on it.


What is phpinfo?

PHPinfo.php in a command file in php. When run it will give you all sorts of specific details about which version of php you are running and how it is configured.To run this command file, create a php file on your server (Example: phpinfo.php) and put the following code on it:You must then navigate to the same file on your website:Example: http://www.somewebsite.com/phpinfo.phpThis will cause a page of dynamically generated configuration information to be output.Important Note: For security purposes, you should never leave this file on your website server. This information gives out certain details about your hosting that hackers may use to help them gain access to your website.If you must keep this file on your website then rename it to something other than phpinfo.php.Better yet, be really tricky and create a totally fake phpinfo.php page with totally bogus information and leave it on your website. This will confuse the hackers and keep them spinning their wheels until they give up.


How can we upload in php?

this is file of index.php or any file that contains uploading area ....... .................................................................................... <body> <form name="frmFile" method="post" action="fileuploadprocess.php" enctype="multipart/form-data"> <label>Select File</label> <input type="file" name="flnFile" /> <br /> <input type="submit" value="Upload File" /> </form> </body> ..................................................................................................... fileuploadprocess.php that is in form action="fileuploadprocess.php" <?php //print_r($_FILES); //echo(phpinfo()); $sType=$_FILES['flnFile']['type']; echo($sType); //echo("<br>"); $arrFileTypes=array("image/jpeg","image/png","image/gif"); $iFileSize=$_FILES['flnFile']['size']; // For KBs $iFileSize=$iFileSize/1024; // For MBs //$iFileSize=$iFileSize/1024; echo($iFileSize); echo("<br>"); //if($sType=="image/jpeg" $sType=="image/png" //$sType=="image/gif") if($iFileSize<=100) { if(in_array($sType,$arrFileTypes)) { $sDirectory="Uploadfiles/sajid"; if(is_dir($sDirectory)) { } else { mkdir($sDirectory,0777); } $dDateTime=date('mdyhis'); $sTempLocation=$_FILES['flnFile']['tmp_name']; //$sDesignationLocation="Uploadfiles/".$dDateTime.$_FILES['flnFile']['name']; $sDesignationLocation=$sDirectory."/".$dDateTime.$_FILES['flnFile']['name']; //echo($sDesignationLocation); move_uploaded_file($sTempLocation,$sDesignationLocation); } else { echo("File type error"); } } else { echo("File size Error"); } ?>