<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi!<div><br></div><div>I'm currently studying PHP and I've run into a problem when putting an exercise on my school account.</div><div><br></div><div>The (problem related) files are in this location</div><div><br></div><div>[my account]/public_html/032289/web3/inl2/index.php</div><div>[my account]/public_html/032289/web3/inl2/_includes/config.inc.php</div><div>[my account]/public_html/032289/web3/inl2/_includes/magicquotes.inc.php</div><div><br></div><div><br></div><div>In index.php I have the following:</div><div><div><?php</div><div>   include "_includes/config.inc.php";</div><div>   include_once $includePath.'magicquotes.inc.php';</div><div>   ...</div><div><br></div><div>and in config.inc.php i have:</div><div><div><?php</div><div>   $serverPath = $_SERVER['DOCUMENT_ROOT'];</div><div>   $folderPath = "/home/stud09/data1/STUDF/M09K0054/public_html/032289/web3/inl2/";</div><div>   $fullPath = $serverPath.$folderPath;</div><div>   $includePath = $fullPath."_includes/"; </div><div>?></div><div><br></div><div>When I try to access index.php I get the following error:</div><div><span class="Apple-style-span" style="font-family: Times; "><b>Warning</b>: include_once(/srv/www/htdocs/home/stud09/data1/STUDF/M09K0054/public_html/032289/web3/inl2/_includes/magicquotes.inc.php) [<a href="http://dvwebb.mah.se/~m09k0054/032289/web3/inl2/function.include-once">function.include-once</a>]: failed to open stream: No such file or directory in <b>/home/stud09/data1/STUDF/M09K0054/public_html/032289/web3/inl2/index.php</b> on line <b>4</b><br><br><b>Warning</b>: include_once() [<a href="http://dvwebb.mah.se/~m09k0054/032289/web3/inl2/function.include">function.include</a>]: Failed opening '/srv/www/htdocs/home/stud09/data1/STUDF/M09K0054/public_html/032289/web3/inl2/_includes/magicquotes.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in <b>/home/stud09/data1/STUDF/M09K0054/public_html/032289/web3/inl2/index.php</b> on line <b>4</b></span></div><div><font class="Apple-style-span" face="Times"><b><br></b></font></div><div><font class="Apple-style-span" face="Times"><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; ">The strange thing is that when I run this from my <a href="http://deadmengods.com">deadmengods.com</a> server it's working properly (changing folder path to reflect the proper path)</span></b></font></div><div><br></div><div>I've tried stripping down the folderpath step by step but none works.</div><div><br></div><div>Does anyone have any clue to what can be the cause?</div><div><br></div><div>/Micke</div></div></div></body></html>