l_l
17 years ago
Ah shit onehalf.ws isn't going from - to aa...Dammit.
latest #34
Chris
17 years ago
Just do it manually. ._.
l_l
17 years ago
I'm not sure if I can. I can set the num_Char to two, but I don't know if I can set the - to a
l_l
17 years ago
It works, but, as I thought, its now -b
立即下載
l_l is
17 years ago
there a reason the page goes blank when I put $num_char =1; at the top near <?php ?
Chris
17 years ago
Can you pastie me the whole file?
l_l
17 years ago
Gah, pastie down. What was that other one?
Chris
17 years ago
I don't remember. It had a really weird URL. I only found the link through Pastie. :-P
l_l
17 years ago
I think the problem is that num_char is being set to 1 every time the function is called
Chris
17 years ago
Where's the $num_char =1; ?
l_l
17 years ago
In new_slug
l_l
17 years ago
about 4 lines down
Chris
17 years ago
And having that in there is causing an error? What error?
l_l
17 years ago
No, putting new slug up top near <?php makes the page go blank. No error.
Chris
17 years ago
You're not putting it above "class Redirect" are you?
l_l
17 years ago
Uh...Yes. But I tried putting it inside class redirect, and it gave me an error too. It expected t_function and t_variable
Chris
17 years ago
Pastie/whatever it with the modifications. I'll see what I can do. :-)
l_l
17 years ago
All I did was move num_char outside of new_slug
Chris
17 years ago
Should be var $numchar = 1;
l_l
17 years ago
Okay, that fixed the error, but now the redirect page shows up blank, no error.
Chris
17 years ago
When using $num_char in the functions, use $this->num_char
l_l
17 years ago
No more blank page, but still no - to aa
l_l
17 years ago
It doesn't seem like its recognizing that - is the final char.
l_l
17 years ago
for some reason, this - if($char_to_increment == -1 isn't returning true
l_l
17 years ago
Well, apparently it was supposed to be =, not ==
Chris
17 years ago
Are you setting it in that if statement? Or testing if it's -1?
l_l
17 years ago
testing.
l_l
17 years ago
it went to aa, but now it won't increment. Dammit.
l_l
17 years ago
Alright, so it looks like = makes the if statement always true, and == makes it never true...Curses.
Chris
17 years ago
Check the code that sets it. See what the issue is.
l_l
17 years ago
It works, but not the way it should. Something to work on tommorow, I guess.
l_l
17 years ago
Thanks for the help again, chris. Hopefully one day I'll learn to survive without you.
Chris
17 years ago
:-P
back to top