Page 1 of 1

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

Posted: Wed Mar 25, 2009 7:46 pm
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!

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

Posted: Thu Mar 26, 2009 6:08 am
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!