How to know if your hosting supports PHP

Need a Website? Contact Us Now!

This entry is part 28 of 30 in the series phpBB Tutorials

If you have contact forms or any other forms in php and wondering if your hosting supports PHP, you can follow the below steps to know if your hosting supports PHP.

1. Open dreamweaver and go to the code page and copy and past the below php codes within the <body> tag as shown below.

<body>

<?php
mail(‘clement@bestwebdesignz.com’,'Test mail’,'The mail function is working!’);
echo ‘Mail sent!’;
?>

</body>

2. Put in your mail id where it says ‘clement@bestwebdesignz.com’ in the code above.

3. Save the file as mailtest.php and upload it to your server using your FTP.

4. Go to your URL or domain name, in this case http://bestwebdesignz.com/ and add your php file name along with it, ie: http://bestwebdesignz.com/mailtest.php/ (since I have uploaded mailtest.php in the root directory ie: public_html folder.

5. Now check your mail and see if you received your mail, you can wait for a while too, check your spam folders too.

If you have received the mail which says “The mail function is working” then you know that your hosting supports PHP,  if not your hosting does not support PHP.

That’s it, you now know how to know if your hosting supports PHP.

Series Navigation«How to manage user permissions in phpBBPHP code for Contact form»
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • LinkedIn
  • MySpace
  • StumbleUpon
  • Technorati

Posted in phpBB Tutorials | No Comments »

Post a Comment