Forum Moderators: coopster
Have a question regarding stripos..
heres the prob:
<?php
$idz = $owner->getVar('name');
$ident = $owner->getVar('uname');
$ownerid = $owner->getVar('uid');if (stripos ($_SERVER['REQUEST_URI'], $idz) !== FALSE) {
header ("location:prod-".$owner."-".$ident.".htm");
}
?>
ok this works well actually, for when the owners "name" appears instead of the owners "uname", It works accordingly...
THE PROBLEM:
the $idz is the users "real name".
the $ident is the users "site username".
now, *some* people use their username AS their realname (they are both the same)
which poses a problem because php stripos is looking for their "realname"(in case) to complete the argument to direct it to their "username". When their username AND realname are the SAME ($idz=$ident) this creates an endless loop because it is actually changing it to their site uname but its the same! so it goes round n round! then poof! white page!
hope this makes sense to someone.
I need an argument where it can identify the $idz & the $ident as the same(when applicable), then skip over the stripos argument!
thanks!
regards, frogz
no more "Real Name" for them until I get this sorted!
Thanks for all your help, I will check back here to see if anyone has any more recommendations.
thanks for your time!
regards, frogz