<html><body bgcolor="#FFFFFF"><div>Are you sure the /home... Is under docroot?  I would copy/paste the entire path in the error statement at the shell prompt to see if that path does indeed contain the file you are looking for. </div><div><br><br><div><br></div></div><div><br>On Mar 25, 2010, at 3:19 PM, Mikael Hansson <<a href="mailto:forums@deadmengods.com">forums@deadmengods.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>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"><a href="http://deadmengods.com">deadmengods.com</a></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></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>music-bar mailing list</span><br><span><a href="mailto:music-bar@lists.music-bar.org">music-bar@lists.music-bar.org</a></span><br><span><a href="http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar">http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar</a></span><br></div></blockquote><br>

      </body></html>