Page 5 of 5
Posted: Sat Feb 19, 2005 5:15 pm
by feyd
as I said earlier:
the first page should set the cookie.
Posted: Sat Feb 19, 2005 5:20 pm
by theda
What codes should I have on set.php (to make sure I have things right)
and what should I have on ver.php so that it loads the cookie (to make sure everything i'm doing is right).
I must be a pain in the bum for you ^_^
Posted: Sat Feb 19, 2005 5:27 pm
by feyd
did you try the url's once you removed your explicit $ver = whatever ?
Posted: Sat Feb 19, 2005 5:33 pm
by theda
I just switched it to
"$ver = $HTTP_COOKIE_VARS["language"];"
and all I get is "cannot get .blah" It's missing the "en" or "de" before the period.
I did blah.com/set.php?set=en and it didn't do anything.
set.php still has:
Code: Select all
<?
setcookie("language", $ver, time()+604800);
?>
<noscript>
Posted: Sat Feb 19, 2005 5:35 pm
by feyd
notice the difference in the urls you used and mine.
Posted: Sat Feb 19, 2005 5:39 pm
by Chris Corbyn
You're a patient guy feyd. Hey theda... hope you got it working in the end!

Posted: Sat Feb 19, 2005 5:39 pm
by theda
Holy burgermeister! Good job! lol. Im dumb sometimes. Now to add a few last things so that when it sets the cookie on set.php that it refreshes to index.php instead of just sitting there. Thanks for now. If I end up screwing somethign up, I'll harass you more about it ^_^
Posted: Sat Feb 19, 2005 6:29 pm
by Chris Corbyn
Just add
Right after your last line of code in set.php

Posted: Sat Feb 19, 2005 8:01 pm
by theda
Thanks. All works fine. One of my friends tried to view my website (1/5 people who did this) and said there was an error. I put a "setcookie" in index.php (and renamed the original index.php to main.php) and had to set one, then redirect to the main page... But for some reason he kept getting an error (pretty much nothing wanted to load the $ver var...). It was solved easily by having him go to set.php?ver=en and have him set a cookie that way. I dont know how many other people will have this problem, but it is working dandy. Thanks.