Page 1 of 1
index.php? 403 forbidden
Posted: Tue Jul 17, 2007 10:50 pm
by xonie
Script URL:
http://www.karrtorpcentrum.se/ccount11/
Version of script:1.1
Hosting company:
URL of phpinfo.php:
http://www.karrtorp.se/info.php
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi,
I can login to the script (pass= 4dm1n) but when I add a link I get a 403 forbidden message on index.php? which is werid since index.php works fine.
I have no idea on how to proceed...
I'd appreciate all help!!
Posted: Thu Jul 19, 2007 2:01 pm
by Klemen
Not sure what the problem is, try uploading the:
1. phpinfo.php
2. session_test files
3. this file:
http://www.phpjunkyard.com/extras/post_test.zip
And place link to all three here.
Posted: Thu Jul 19, 2007 2:34 pm
by xonie
Posted: Thu Jul 19, 2007 11:49 pm
by Klemen
xonie wrote:and I don't know what the session_test thing is?
See post with the subject "READ THIS BEFORE POSTING A NEW QUESTION!!"
Posted: Fri Jul 20, 2007 9:27 am
by xonie
Posted: Fri Jul 20, 2007 12:16 pm
by Klemen
Looks fine. Try this:
1. open index.php in a plain text editor (Notepad)
2. DELETE all instances of code
Should be several times inside the index.php file.
3. save, upload to the server
4. close ALL broswer windows and try if it helped
Posted: Fri Jul 20, 2007 2:04 pm
by xonie
Ok done.
Except the SID in this part:
<td algin=\"center\" valgin=\"center\" class=\"first\"><a href=\"index.php?".SID."&action=remove&id=$id\" onclick=\"return doconfirm('Are you sure you want to remove link ID $id? This cannot be undone!');\"><img src=\"delete.gif\" height=\"14\" width=\"16\" border=\"0\" alt=\"Remove this link\"></a>
<a href=\"index.php?".SID."&action=reset&id=$id\" onclick=\"return doconfirm('Are you sure you want to reset clicks for link ID $id to 0? This cannot be undone!');\"><img src=\"reset.gif\" height=\"14\" width=\"16\" border=\"0\" alt=\"Reset number of clicks to 0\"></a></td>
because I wasn't sure I should
So now I received a new error...
When I submit a link I get this:
Warning: filesize() [function.filesize]: Stat failed for
http://www.karrtorpcentrum.se/ccount11/ids.txt (errno=2 - No such file or directory) in /home/karrtorp/public_html/ccount11/index.php on line 179
Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/karrtorp/public_html/ccount11/index.php on line 179
Warning: fopen(
http://www.karrtorpcentrum.se/ccount11/ids.txt) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections. in /home/karrtorp/public_html/ccount11/index.php on line 183
Can't open the id file (
http://www.karrtorpcentrum.se/ccount11/ids.txt) for reading!
I have uploaded a write and read.php both say ids.txt is write and readable
http://www.karrtorpcentrum.se/ccount11/write.php
http://www.karrtorpcentrum.se/ccount11/read.php
Again, the password is 4dm1n if you want to submit a link and see what happens...
Posted: Fri Jul 20, 2007 5:03 pm
by Klemen
In settings.php what setting have you got for logfile and idfile? Should be exactly like this:
Code: Select all
// Name of the log file
$settings['logfile']="clicks.txt";
// Name of the file where last ID number is stored
$settings['idfile']="ids.txt";
I think you have
Code: Select all
// Name of the log file
$settings['logfile']="http://www.karrtorpcentrum.se/ccount11/clicks.txt";
// Name of the file where last ID number is stored
$settings['idfile']="http://www.karrtorpcentrum.se/ccount11/ids.txt";
which is wrong, these mustn't be URLs.
As for deleting just delete this EXACT code, nothing more:
Posted: Fri Jul 20, 2007 5:14 pm
by xonie
Thank you!
It's working perfectly now!!