PHP Classes

Thanks for your valuable time

Recommend this page to a friend!

      Auto Pagination  >  All threads  >  Thanks for your valuable time  >  (Un) Subscribe thread alerts  
Subject:Thanks for your valuable time
Summary:I have question
Messages:2
Author:Lingaraju Purushotham
Date:2015-12-28 06:18:35
 

  1. Thanks for your valuable time   Reply   Report abuse  
Picture of Lingaraju Purushotham Lingaraju Purushotham - 2015-12-28 06:18:35
Please can you let me know why are we restricting the string to "8" characters in the below method.

private function _currentPage() {
$_currPagex = substr($_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'], 8);
return $this->_currPage = str_replace("&page=".$this->_pageNo,"",$_currPagex);
}

  2. Re: Thanks for your valuable time   Reply   Report abuse  
Picture of Nitesh Apte Nitesh Apte - 2015-12-28 07:08:09 - In reply to message 1 from Lingaraju Purushotham
Hi.

I think that was for the string after 8 character. I don't remember exactly. Something like for following pattern:

domain.com/viewall/bookmarks/1/1/

Hope that helps.


Nitesh