Page 2 of 5
Posted: Sat Feb 19, 2005 12:08 pm
by Chris Corbyn
Forget it. Look on php.net and read about isset()... it doesn't do what you want

Posted: Sat Feb 19, 2005 12:12 pm
by feyd
lose the hostility and watch the swearing theda.
isset() doesn't check the value of any variable, it only checks if the variable exists.
Posted: Sat Feb 19, 2005 12:44 pm
by theda
Okay, then why dont you explain how I can use a PAGE.PHP?VAR=SOMETHING, mmk? I don't know how many times I have to say it.
Posted: Sat Feb 19, 2005 1:01 pm
by feyd
$_GET['url_varname']

Posted: Sat Feb 19, 2005 1:05 pm
by theda
For some reason, I can't even get the setcookie to actually SET a cookie...
Posted: Sat Feb 19, 2005 1:12 pm
by feyd
make sure to pass a path argument that is at or a child of the folder in which you want to use it. make sure the domain argument is properly set. If you switch between http and https during some of this, you may require alternate means of transfer.
Posted: Sat Feb 19, 2005 1:27 pm
by theda
All my stuff is http/unsecure and I have it like this:
setcookie("language", $ver, time()+604800);
Posted: Sat Feb 19, 2005 1:29 pm
by feyd
mmkay, so you read the last sentance.. now, what about the first two?
Posted: Sat Feb 19, 2005 1:41 pm
by theda
Everything is under one directory... except the images, but that has nothing to do with this. And the other part I don't know.
Posted: Sat Feb 19, 2005 1:52 pm
by feyd
Okay, do you have the page that attempts to set the cookie up somewhere? And the same for the page trying to access it?
Note: it typically requires a page refresh for the cookie to become "visible" to the script.
Posted: Sat Feb 19, 2005 1:54 pm
by theda
I was using another page to set the cookie. This is how my weblayout is set up:
Index.php loads "ver.php" which checks what version to use (de or en). Then everything is set to $ver so that if ver = en, then everything "en" will show up ($ver."/file.ext").
I have the cookie set up on "set.php" which only yas "<? cookieblah ?>" on it. ver.php is suppost to load weither $ver = en or de.
Posted: Sat Feb 19, 2005 2:02 pm
by feyd
my question still stands, are these files online somewhere?
Posted: Sat Feb 19, 2005 2:03 pm
by theda
Posted: Sat Feb 19, 2005 2:14 pm
by feyd

PHP 4.0.6, that's a really old version.
It appears your host attempts to add a popup to all pages.
All the page outputs is warnings...
set.php attempts to output a cookie:
Code: Select all
Set-Cookie: language=deleted; expires=Fri, 20-Feb-04 20:10:57 GMT
that'd normally set a cookie called 'language' with value 'deleted' with a path of '/', domain of 'dumbass.ionichost.com', and unsecure flag. $HTTP_COOKIE_VARS['language'] should contain the value 'deleted' on the next page request after hitting the page including set.php. However, the timestamp appears way off. So at this time, it'd likely delete the cookie, however you are setting a value to it.. which may make it persist, depending on the browser.
Posted: Sat Feb 19, 2005 2:16 pm
by theda
So what do I do? I know I can add <noscript> at the end of the php and that usually stops the popups