HELP! Need simple assistance with Simple Dynamic Content

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sonaras
Forum Newbie
Posts: 1
Joined: Sun Apr 03, 2011 9:46 am

HELP! Need simple assistance with Simple Dynamic Content

Post 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:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: HELP! Need simple assistance with Simple Dynamic Content

Post 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.
higibigi
Forum Newbie
Posts: 6
Joined: Fri Apr 01, 2011 12:56 pm
Location: Canada

Re: HELP! Need simple assistance with Simple Dynamic Content

Post 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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: HELP! Need simple assistance with Simple Dynamic Content

Post 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.
higibigi
Forum Newbie
Posts: 6
Joined: Fri Apr 01, 2011 12:56 pm
Location: Canada

Re: HELP! Need simple assistance with Simple Dynamic Content

Post 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.
Post Reply