Author |
Message |
30/09/2005 06:05:06
|
soc200
Newbie
Joined: 30/09/2005 05:34:11
Messages: 4
Offline
|
ok, i'm stumped. the answer must be simple, but i just can't figure it out. currently, when I load a page (test.html) with this script, all i see is the word :
counter
i have double and triple checked my permissions. this is the script exactly as it is on test.html:
<img src="counter.php?page=test.html&digit=classic" border="0" alt="counter">
the demo page just loads to a blank page.
Any help would be very much appreciated. I feel really silly after having no trouble with the guestbook. I did read and reread the sticky posts over and over trying to figure out what I am doing wrong.
Lannai
|
|
30/09/2005 10:11:47
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
The path you have supplied must be wrong as it sounds like you are seeing the alt text.
check that src="counter.php?page=test.html&digit=classic" is correct
In fact use the full url for it.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
30/09/2005 10:35:16
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
When I used the file extension, it wouldn't work... but then my page has a .php extension. You could try:
<img src="counter.php?page=test&digit=classic" alt="Counter" border="0">
or try changing test.html to test.php.
If you are using the flat file method, write permissions need changing for the pages directory and the count.txt file.
|
|
30/09/2005 13:08:29
|
soc200
Newbie
Joined: 30/09/2005 05:34:11
Messages: 4
Offline
|
thank you both for your suggestions.
first, i checked permissions (again)
-pages 777 (drwxrwxrwx) (directory)
-count.txt 666 (-rw-rw-rw)
next, i checked the path again
<img src="counter.php?page=http://mydomain.com/test.html&digit=classic" border="0" alt="counter">
in my folder that dishes out my webpages i have folders: digits doc pages and the files: config.inc.php and counter.php. since i run an apache server, i have these 3 folders and 2 files in the html folder (that serves the rest of my pages and lazarus guestbook with no problem.
i tried taking off the tag...changing the page to php...adding php...i repeatedly just get the counter msg.
i tried:
<img src="counter.php?page=http://mydomain.com/test.html&digit=classic" border="0" alt="counter">
<img src="counter.php?page=mydomain/test&digit=classic" border="0" alt="counter">
<img src="counter.php?page=mydomain/test.php&digit=classic" border="0" alt="counter"> (changed the name of the test page for this)
<img src="http://mydomain.com/counter.php?page=http://mydomain.com/test.html&digit=classic" border="0" alt="counter">
i tried about 10 other variations of this, including my original setup of having all the counter files in a folder named "counter". out of simplicity, i finally just moved the files and folders down to /html for testing. if you have any other suggestions, i'm all game. i still can't believe i haven't figured this out. i'm just too stubborn to give up...even on a little counter
|
|
30/09/2005 21:10:54
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
Why don't you post your page info, or if you prefer, you can email it to me. Or maybe pm ET for help.
|
|
02/10/2005 04:24:26
|
soc200
Newbie
Joined: 30/09/2005 05:34:11
Messages: 4
Offline
|
pm sent to amber. i'll post any solution if one arises for the edification of the rest of the n00bs like me. thx again.
|
|
02/10/2005 07:39:54
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
Check your messages. I sent you a response.
|
|
|