How To Use php Embody On Your Godaddy Hosted Net Web site

No Comments

One of many frequent complaints that I get from readers is, “I can not get the php embody perform to work on my Godaddy hosted website online and their help division isn’t any assist”. Let’s face it, getting technical assist from the “help division” of your webhosting firm can someday go away a complete lot to be desired

To be honest, a lot of the main internet hosting corporations can and do reply most questions promptly and precisely. However, there are occasions, in terms of technical questions, resembling “the php perform”, effectively, thats one other matter fully. Regardless that they declare that it really works nice on their Linux platform, they only do not appear to know, or no less than the individual you contacted, how or why it really works. However, I digress, so I am going to get on with it earlier than you pull out the remainder of your hair.

The very first thing that it’s essential to do is take away this line from the web page you’ll use

Take away this out of your web page: ?xml model=”” encoding=”iso-8859-1″? or you’ll get a parsing error and the php embody perform won’t work.

Not all internet pages will comprise this assertion so your web page could not have this line. Yipeee! Now transfer on.

Subsequent, it’s essential to create a folder and identify it phpinclude. Do not argue, simply do it. That is the place you’ll retailer all of the information that you just need to embody in your website online. The information saved in your phpinclude folder ought to have a .php extension. That implies that the information ought to finish with .php as an alternative of .html or .txt and so forth.

And now, the magic bullet

Now it’s essential to create a .htaccess file. Open notepad and paste this directive into the web page

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

save the file as .htaccess and shut notepad. The file ought to look precisely like this .htaccess

Add the phpinclude folder and the .htaccess file to the basis listing of your website online. Be sure that each information are in the identical listing. It is best to now be good to go!

Categories: Latest Updates

Leave a Reply

Your email address will not be published. Required fields are marked *