PHP mail() function test script

You can use this script to test the PHP mail() function on your server. Access file manager Navigate to the root folder of your website (public_html for primary domains. If not, access the addon folder assosciated with the domain name) Create a new file and save it as a .php file. Lets say test_mail.php Edit […]

Read More »
PHP script to fix permissions of all files and folders (and sub-folders) in a directory

There are times when we come across servers where the files are not given correct permissions. Changing file permission by accessing individual files and folders is one option. However, this is not possible when you have 100’s of files and sub-folders assosciated with them. That is when this script is useful. We only need to […]

Read More »
Missing error_log

If you come across a script where error logging is turned off, you can create a new file with the below code, save it as error.php and run it by accessing http://your_domain.com/error.php File needs to be saved in the root folder of the domain in order to be accessed through http://your_domain.com/error.php Replace File_Name.php with the […]

Read More »
phpinfo();

To know the PHP configuration setup on a server, we’ll need to create a php file (Create new file in your File manager and save it as file_name.php) and save the below code snippet in the file. <?php // Show all information, defaults to INFO_ALL phpinfo(); ?> The above code Outputs all the information about […]

Read More »