Jump to content

anmdei34

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

anmdei34's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks Very Much, #3 worked perfectly. it was the /.. part in the path I hadn't figured out. I guess this takes you up to a parent directory? Thank Again Problem Solved
  2. Thanks for the reply, My system is a Windows xp Apache Server 2.0.59 PHP Version 5.2.4 ServerRoot "C:/webserver/Apache2" DocumentRoot "C:/webserver/Apache2/home/bobharri/www" safe_mode = Off I checked my log file: [Thu Dec 27 16:19:30 2007] [error] [client 127.0.0.1] PHP Warning: include(\\home\\bobharri\\includes\\file.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\\webserver\\Apache2\\home\\bobharri\\www\\includeTest.php on line 2 [Thu Dec 27 16:19:30 2007] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '\\home\\bobharri\\includes\\file.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\webserver\\Apache2\\home\\bobharri\\www\\includeTest.php on line 2 This is the same error message I get in the browser. Here is the code I am trying to execute: <?php include "\home\bobharri\includes\file.php"; ?> I am trying to get it to see the file in the directory C:\webserver\Apache2\home\bobharri\includes My live server has the document root \home\bobharri\www\ My assumption is that if I copied the dir structure under my live server the php could read files relative to that server root. Maybe that was a bad assumption? Thank You
  3. I have include files located above the document in my website. On my Apachee localhost I set my document root directory structure beneath my server root to be the same as my live server. The problem is that I can't get the includes to work on my localhost and they work fine on the live server. So what I have resorted to do is to change the paths of all my include statments every time I upload my files to the live server. That is a huge pain. Doesanybody have any advice?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.