Home, Technology, Web-Design-tutorials

Fixing GoDaddy PHP Include Files

5 April 2010 One Comment

This is a short and sweet deal today. In the process of trying to help some fix their Godaddy site, I determined that it doesn’t handle PHP includes in the way that I’m used to (as with most coders) I have been fighting with it for a few days and going to Google for solutions that never seem to work. Finally I broke down and called customer support who insisted I had coded it wrong, when I had tested this repeatedly in XAMPP, Dreamweaver and my own browser and I KNEW the files were being referenced correctly.

However GoDaddy unlike some other Linux web host map their stuff a little weird (to me) and I had to rewrite my code. So any of you who can’t get your PHP includes to work over on your GoDaddy hosting platform make sure you code it this way:

<?php include ($DOCUMENT_ROOT. ‘inc/file.php’); ?>

That is the only way you can hope to get it to work properly. And just so you know, you will not get tech support people who are “Coders” you will get “Server Monkeys” which in their defense would make sense as most of the issues they deal with are going to be of turn something on turn something off nature, and this is really important, but you know most of the people calling in really need a “Coder” because its going to come down to changing a config file or something of that nature, or correcting syntax.

The tech support person was nice enough about everything and even offered to let me into the PHP ini and config files if I wanted to handle it myself. I declined stating that “I’m good, but I’m not that guy”. I’m not the type to go changing those things in someone’s account, I don’t mind doing it on my own end but that is a bridge too far.

Roberto Blake

Roberto Blake is a Professional Graphics Designer and Photographer, living in Fayetteville NC, has work been working with Photoshop® for over 8 years now, and Flash® for the past 5 years.

More Posts - Website - Twitter - Facebook

One Comment »

  • Harvey Morris said:

    I have 100 domains on Godaddy and i can say that this company is very reputable..”

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.


× 9 = sixty three