Quoting Joseph Harris <[EMAIL PROTECTED]>:
<snip>
Thanks Matt - more advice welcome, but I might retrace my steps and start this again. What is the right 'domain name' on the local (Windows) machine with Apache - the 'website' folder is labelled 'www', but the index is called with 127.0.01/. So should that be left blank?

Hokay,

Absolute paths to files on windws, i.e. C:\apache\htdocs\index.php must
always use the "\" sign to reference them.  In unix, absolute file paths
must user the "/".

In apache, if you are referring to a path on the server by its web address
(as opposed to the absolute path), regardless of operating system you must
use "/".  I'll try and make it a bit clearer (for my benefit and yours!):

Say you have a file tree on windows that looks like this:


C:\
|- Apache\
   |
   |- htdocs\
        |
        |- includes\
        |       |
        |       |- affconfig.php
        |
        |- index.php


In order to reference affconfig from index.php using absolute paths, you
must use:

include("c:\Apache\htdocs\includes\affconfig.php");

In order to reference affconfig.php from index.php using the relative
(web-based) path, you must use:

include("includes/affconfig.php");

note the differences in the paths, and the use of "/" and "\".

Absolute is more definitive, where as relative is more portable.

Hope this is of some use.  what's the link for the source?  I'll have a
play and see if I get the same errors if you like?

--
Matthew Macdonald-Wallace
[EMAIL PROTECTED]
"Sed quis custodiet ipsos custodies?"




____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to