Page 1 of 1

HELP! Need simple assistance with Simple Dynamic Content

Posted: Sun Apr 03, 2011 9:53 am
by sonaras
Im a newbie in PHP, I would be really keen to use PHP for content switching in my simple a few pager site. To get an overall idea, in what im trying to achieve, please follow the link:

http://www.digital-web.com/articles/easypeasy_php_2/ . It is however not as easy as its sounds. the guy provides the download source link, but the files do not run on my server. I host the files on godaddy, under Linux, (PHP 5.x).

As a result when I try to run the files: I get the following:

http://salesgarage.co.uk/php_test/main.php


It doesnt seem to trouble virtual host on my computer, even though it is a similar PHP version as on Godaddy server.


I dont quite understand where is a problem. Could anybody be so kind to highlight the issue with that? PLEASE, im getting desperate :banghead:

Re: HELP! Need simple assistance with Simple Dynamic Content

Posted: Sun Apr 03, 2011 9:08 pm
by califdon
Do you understand the error message? It is telling you that you are requiring it to include a file that isn't on the GoDaddy server, at least not in the directory you have indicated.

Re: HELP! Need simple assistance with Simple Dynamic Content

Posted: Mon Apr 04, 2011 12:07 am
by higibigi
Yep,

He's right! If you want to fix it easily you can just change the require once from "/inc/header.php" to "/home/content/s/o/n/sonaras/html/php_test/inc/header.php" since that's the actual server location of your header file.

Re: HELP! Need simple assistance with Simple Dynamic Content

Posted: Mon Apr 04, 2011 11:58 am
by califdon
No, I don't think that would help. The error message already shows that it is looking for the file there. The problem is, the file isn't there. Either it is in some other directory or it was never uploaded.

Re: HELP! Need simple assistance with Simple Dynamic Content

Posted: Mon Apr 04, 2011 8:28 pm
by higibigi
I don't think so :P The file is here "http://salesgarage.co.uk/php_test/inc/header.php". The file isn't there because it's looking for the wrong path right down to the very root.