redarrow Posted February 7, 2007 Share Posted February 7, 2007 Sorry about this but i can not find on php.net the built in php session page. What i need is to get the url of the current page. cheers agin sorry forgot lol. Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/ Share on other sites More sharing options...
trq Posted February 7, 2007 Share Posted February 7, 2007 What is your question? getting the current page has nothing to do with sessions. Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179238 Share on other sites More sharing options...
redarrow Posted February 7, 2007 Author Share Posted February 7, 2007 built in php function what is it sorry . Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179241 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 php.net Type in $_SERVER Click "here" to search entire site. First result: http://us3.php.net/manual/en/reserved.variables.php First one. Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179248 Share on other sites More sharing options...
redarrow Posted February 7, 2007 Author Share Posted February 7, 2007 ok here it is i wanted to to is get the number off the url at the end done it cheers. <?php $my_url=$REQUEST_URI; $x=substr($my_url,-6); echo $x; ?> Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179252 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 What the heck are you saying? The number on the url? Are you smoking something? Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179257 Share on other sites More sharing options...
redarrow Posted February 8, 2007 Author Share Posted February 8, 2007 jesirose the number i was talking about is a number that i have comming from the members email account, That number of the url updates the database to tell the database that the user is now a active user ok. i dont smoke and i am a blind php programmer so my spelling is crap sorry ok. Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179658 Share on other sites More sharing options...
Jessica Posted February 8, 2007 Share Posted February 8, 2007 If it's something like id=5, then you use $_GET, not what you have, that's all. Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179661 Share on other sites More sharing options...
redarrow Posted February 8, 2007 Author Share Posted February 8, 2007 i did use $_GET to get the condition of the url example member=active in a url then the above code to get the last six digits. example only what i was doing <?php //members url from there email account with 6 numbers on the end. $url="www.google.co.uk?member=activate&123456"; //get the numbers from the url with a $_GET condition. if($_GET['member']="activate"){ $my_url=$REQUEST_URI; $x=substr($my_url,-6); //update the database ?> Are you saying that i could of used two $_GET statements as the connditions. example2 only <?php //members url from there email account with 6 numbers on the end. $url="www.google.co.uk?member=activate&num=123456"; //get the numbers from the url with a $_GET condition. if($_GET['member']="activate"){ $update=$_GET['num']; //update the database ?> Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179663 Share on other sites More sharing options...
Jessica Posted February 8, 2007 Share Posted February 8, 2007 yes, that would make much more sense. Quote Link to comment https://forums.phpfreaks.com/topic/37479-solved-php-buit-in-sessions/#findComment-179685 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.