How you can Use php Consist of On Your Godaddy Hosted Web page

One of the Repeated issues which i get from audience is, “I can not obtain the php include function to operate on my Godaddy hosted Site as well as their help Section is not any support”. Let’s be honest, acquiring specialized help through the “aid department” of the Webhosting firm can someday leave a complete large amount to become wanted.

To become honest, most of the foremost web hosting businesses can and do solution most queries instantly and properly. But, there are times, In regards to technical queries, for instance “the php purpose”, nicely, thats An additional matter entirely. Though  GoDaddy email login they assert that it really works excellent on their own Linux platform, They only don’t seem to know, or not less than the individual you contacted, how or why it really works. But, I digress, so I’ll get on with it before you decide to pull out the rest of your hair.

The very first thing that you might want to do is remove this line from your website page you will use

Remove this from your web site: ?xml version=”one.0″ encoding=”iso-8859-1″? or you’ll get a parsing error and the php involve functionality will not work.
Not all Websites will have this statement so your web page might not have this line. Yipeee! Now move on.

Following, you should develop a folder and title it phpinclude. You should not argue, just get it done. This is when you might keep all the documents that you’d like to include as part of your Website. The information stored in your phpinclude folder must have a .php extension. Meaning the data files need to end with .php rather than .html or .txt and the like.

And now, the magic bullet

Now you must develop a .htaccess file. Open up notepad and paste this directive to the site

AddHandler x-httpd-php .html .htm .cgi .php

help save the file as .htaccess and close notepad. The file ought to glance just similar to this .htaccess

Upload the phpinclude folder and the .htaccess file to the foundation directory of your Web page. Be sure equally data files are in a similar directory. You’ll want to now be superior to go!