Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to create phpinfo.php file-php.php?


Asked by John Valenzuela on Dec 09, 2021 PHP



Now upload the phpinfo.php file there. You can view your site’s php information (phpinfo page) by visiting http://yourdomain.com/phpinfo.php in your web browser. The information looks like the one below. It contains a large amount of information and to find any specific information press CTRL+F and search for the value.
And,
To create a phpinfo file, I can recommend you to open a text file and add the below lines to it and save. Recommended Filename: phpinfo.php That's it. Now you can upload this file to the server where you have your webhosting account and access that in your browser.
In this manner, The PHP info page will display all your php settings and information. If you wish not to show it to public then you can delete the file after using it. Other way you can hide this file is by renaming the phpinfo.php file in to something different. Hope this helped you with phpinfo.php file and page.
Just so,
Upload the phpinfo file to your server using the FTP client of your choice if you didn't create it on the server itself. Call the phpinfo () file from your browser according to its web address (url).
Next,
In your text editor, start a new text document. Highlight, copy and paste (or type) the following code into this document: That's all there is to it. The code initializes php (the " <?php " part) and then executes the " phpinfo () " instruction.