this is what my code looks like
im not sure if i even uploaded the files in the right place..
i need major help =/
Next: Which Is A Better Web Host, Yahoo Or Godaddy?
Previous: How Cheap Can I Get A Domain Name And Hosting For My Site? And How Would I Do It?
"I Cant Get Php Includes To Work On Godaddy..?" was posted on Tuesday, October 13th, 2009 at 12:39 pm.
2 Responses to “I Cant Get Php Includes To Work On Godaddy..?”
Leave a Reply
** < ?php include('header.php');?> **
I see one potential problem here, before your closing ?> make sure there is some space.
< ?php include('header.php'); ?>
If you did not upload the files in the right place that would be a problem, meaning header.php should be in the same place as your php file.
But PHP on godaddy will be good anywhere in htdocs or whatever the public docs root is.
as long as godaddy support php its not a problem with the hosting.
try and add a space before the ?>
Make sure you have header.php in the same folder as the file you are including it with.
If none of these work try using
require instead of include or
require_once