PHP

Important php files

index.php
info.php
php.ini

1. info.php contents:

<?php
phpinfo();
?>

info.php is used to view the php properties of a domain. ex: ibm.com/info.php. This will show the php version, enabled or disabled components etc.

If a php based site does not contain the info.php, you can add this file with the contents to that domain.

2. php.ini
This resides in a site. With this we can enable / disable services. Where info.php is only used to view the services enabled or disabled.<ins

If the php.ini file is not available for a domain, you can copy and paste the php.ini from the server/ other source to that domain. It will work.

3. Index.php
Index.php is usually the homepage of a PHP based site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s