Fixing GoDaddy PHP Include Files
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.





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