Author |
Message |
12/04/2003 15:00:16
|
Anonymous
|
hi there!
my web is placed in /www/ directory
that means my index.php is placed there
i have a problem setting up correct paths for includes
let's say dailycounter is placed in www/counter/
and i want to use it in index.php which is placed in www/
what would be a correct path syntax?
thanx for help and sorry for dummy question
m/\x
|
|
18/04/2003 05:35:14
|
spor
Student
Joined: 18/04/2003 05:02:37
Messages: 50
Offline
|
relative path would be counter/fileyourpointingto
absolute path would be http://yourdomain.com/counter/fileyourpointingto
|
|
26/04/2003 12:02:58
|
Jean
Newbie
Joined: 26/04/2003 02:49:08
Messages: 4
Location: Buffalo, NY
Offline
|
I agree with ( spor ) you need to use relative path.
you can use something like this:
The first part of the counter code is <img src="http://yourdomain.com/www/counter/img_counterw?
followed by your login name i.e. name (www)
followed by the path and name of the file i.e. /www/index.html
followed by ">
Remember not to put any spaces in the code.
You should end with some code that looks like this:
<img src="http://yourdomain.com/www/counter/img_counterw?www/index.html">
|
webmaster at:
www.syflex.com |
|
26/04/2003 13:20:09
|
Anonymous
|
a couple of different ways that it can be done, depending on the nature of the script
url path
or
absolute path
these are examples if you are using a index.php file. Not an ssi file or perl file
|
|
|