However, when I run the site on my web host’s servers I get this message:
Warning: include_once() [function.include]: Failed opening ‘/usr/local/apache/htdocs/includes/magicquotes.inc.php’ for inclusion (include_path=‘.:/usr/lib/php:/usr/local/lib/php’) in /home/a6375238/public_html/index.php on line 3
Being the noob that I am, I am very confused as to why a local path is being referenced. I assume I am ignorant to some config somewhere. Any advice would be greatly appreciated.
Huh, that’s odd. If you just upload .php files to your server there should be no reference to your local environment. Is there a database involved here or something like that?
Only case can be (or can happen accidentally sometimes) that $_SERVER[‘DOCUMENT_ROOT’] has been reset (assigned some other values) somewhere in your system/php files above the line. Is there any caching mechanism in your code. I don’t think so but that might be another case. So the problem might due to:
Assigned a value in $_SERVER[‘DOCUMENT_ROOT’] somewhere above the use.
File or the folder has not been uploaded correctly in the correct path.
It’s a consequence of being on a shared host. Just use:
include_once ‘includes/magicquotes.inc.php’;
Later on you can learn how to set your include path so your app can live outside of you web directory.