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
MX Record – What is…
MX Records (Mail Exchange) are DNS records that are used to route email to email servers. You can have numerous MX Records posting to different email servers to prevent loss of email due to downtime. […]
PHP – Test Transformation (strtolower, strtoupper, ucfirst, ucwords
Text transformation in PHP is useful not just for esthetics, but to also make sure that data is uniform when dealing with databases and such. strtolower() https://www.php.net/manual/en/function.strtolower.php https://www.w3schools.com/php/func_string_strtolower.asp strtoupper() https://www.php.net/manual/en/function.strtoupper.php https://www.w3schools.com/php/func_string_strtoupper.asp ucfirst() https://www.php.net/manual/en/function.ucfirst.php https://www.w3schools.com/php/func_string_ucfirst.asp ucwords() […]
Arduino – Raspberry Pi Web Based Fan Switch
In this project we are going to use an Arduino to get the room temperature, and be able to turn on a regular house fan. The Arduino sends the temperature value to the Raspberry Pi […]
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]