Shared hosting is an easy way to deploy PHP code especially if you are new to technology. To run PHP on your own server you need to be able to build, configure and maintain a server. You may make a mistake with a firewall configuration, and your code will not run. Paying $5 a month for a shared hosting plan allows you to focus on learning PHP.
Related Articles

*NEW
PHP Project (Simple) – Dynamic Photo Gallery Stream
Using the GLOB function in PHP you can put all of the file names on a folder, and then print them out with additional HTML to create a Dynamic Photo Stream. In this project the […]

*NEW
Arduino – Raspberry Pi Web Fan Control with MySQL
With this project we create an IoT Environmental control device that uses a MariaDB (MySQL) database as the datastore. This allows you to use database functionality to create log files and be able to corrrelate […]

*NEW
PHP – Test Variable Against an Array with in_array()
The in_array() function allows you to check if a value is stored with an Array. This can be used for things such as creating an array of which states a company ships products to. in_array() […]
1 Comment
Leave a Reply Cancel reply
You must be logged in to post a comment.
I signed up for shared hosting through hostgator. I had to modify the .htaccess file so that it would recognize my SSL certificate; everything works so long as I type out https://mywebsite.com instead of mywebsite.com. How do I rewrite this file so that I automatically redirect all http requests to https instead? Thanks!
.htaccess file on hostgator:
# Use PHP71
AddHandler application/x-httpd-php71 .php
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://mywebsite.com/$1 [R=301,L]