First, Create .htaccess within your file or directory that you want to enable PHP5.4 on Hostgator Shared Hosting and then,
Add this line of code.
1 2 |
# Use PHP 5.4 AddHandler application/x-httpd-php54 .php |
Verify your page if your using already PHP5.4, by typing this line of code:
1 2 |
<?php echo phpinfo(); |
That’s all folks.
Useful Links:
How to Enable PHP5.3 on Hostgator Shared Hosting
3913 Total Views 1 Views Today
2 comments