new to php, need help understanding errors...please!

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
gauloises
Forum Newbie
Posts: 1
Joined: Wed Mar 25, 2009 7:43 pm

new to php, need help understanding errors...please!

Post by gauloises »

Hi All,

Okay I'm a graphic designer, build some basic web pages, know flash, etc. but php is not my thing - i know super super basics. I am working with a client to redesign some things on his site, and am running into all kinds of problems. It was just supposed to be design work, but he had some trouble with his hosting and switched to godaddy. Now he downloaded all the files from his server and just gave them to me on a flash drive. He also uploaded them to godaddy before I even looked at anything, and now there is a whole block of php error at the bottom of the page and the site fails to display the navigation. I'm just completely lost as to where to even begin and if anyone could help me that would just be...super unbelievably fantastic.

The site in question is http://www.discoversantafe.com

Thanks for your time!
mattpointblank
Forum Contributor
Posts: 304
Joined: Tue Dec 23, 2008 6:29 am

Re: new to php, need help understanding errors...please!

Post by mattpointblank »

Look at the error:

"URL file-access is disabled in the server configuration in <b>/home/content/j/o/s/josephnm09/html/index.php</b> on line <b>459</b><br />"

This is because you're trying to include files like:

http://discoversantafe.com/embed/leftmenu.inc.php

PHP security settings differ from host to host, but it looks like GoDaddy disable you from using PHP's include function on URLs rather than relative file references.

You should be able to change those lines referenced in the errors to just relative includes, like:

Code: Select all

 
include_once(http://discoversantafe.com/embed/leftmenu.inc.php)
 
//becomes
 
include_once(embed/leftmenu.inc.php)
 
This should stop the warning messages. Good luck!
Post Reply