Auto down counter

marshian

New Member
Messages
526
Reaction score
9
Points
0
I found out x10 does allow you to use .htaccess, I know how to edit it, bad news is I can't get that html extention to work...

How to edit your htaccess file:
go to your file manager
edit it.

How to see that file:
if you can't see it, go to your cp and scroll down
click "reset all interface settings"
click file manager
click "show hidden files"
click ok
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
OK I did that in FormToEmail.php:

The error no longer appears but the buy.html page still always just redirects automatically to the nostock.html page.
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
if i go to your "getnumber.php" page, it says "Error (page does not exist)"
i suppose this is your custom 404 page?
verify wether "getnumber.php" exists
code:
PHP:
<?php

//File.
$file = "num.inc";

//Set filehandle.
$fh = fopen($file, "r");

//Read file.
$number = fread($fh, 1024);

//Make an int.
$number = (int) $number;

//Return the number.
echo $number;

?>
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
no, the page does not exist, I haven't made it yet. also the page is called nostock.html not nostock.php
Edit:
what is that code you have posted?
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
Stupid as I am, I've made a stupid mistake, it's getnumber.php that has to be made, not nostock.html

It's final:
it's not possible to change .html from text/html to application/x-httpd-php
(you have to use .php for all pages with php code)
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
but getnumber.php already exists
Edit:
if you view getnumber.php it displays "-1" maybe that is the problem?
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
urgh, i keep making those stupid mistakes... typing html instead of php, etc etc...

anyway, your redirect is right, getnumber returns -1, which is not supposed to happen if you have entered 4...
time to go hunt for the line of code that guy made that is now ruining our day!

Edit: or it might be you too...
http://www.lights4yourpc.com/num.inc returns -1 as well!
try changing it to something bigger then 0...
meanwhile i'll try to find the line that distracts one from the number
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
OK! THANKS!

should we go on instant messenging?
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
the content, it's -1 atm
that's causing the redirects all the time
 

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
maybe I encoded the file in the wrong format becuase when I open it in notepad it read 4
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
can you send it to me then?
EDIT: looks right to me :s
 
Last edited:

bigjoe4

New Member
Messages
907
Reaction score
0
Points
0
I will delete the file off theserver and upload it again just to be sure
 
Top