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