php-general Digest 11 Jul 2012 16:39:38 -0000 Issue 7883

2012-07-11 Thread php-general-digest-help
php-general Digest 11 Jul 2012 16:39:38 - Issue 7883 Topics (messages 318418 through 318424): Re: Session Checking 318418 by: Tedd Sperling Re: Quem esta por dentro de PSR? 318419 by: Daniel Brown 318420 by: Volmar Machado 318421 by: Daniel Brown Re: exec

[PHP] Find match of string if only at end of string

2012-07-11 Thread Marc Guay
Hi folks, I'm trying to compare two strings in order to determine whether or not the site is just switching languages on the same page or whether the link is pointing to an entirely different page. Things were fine until I realized I was getting false positives for subpages, where the URLs

[PHP] Re: Find match of string if only at end of string

2012-07-11 Thread Marc Guay
Answered it myself (funny how writing out a problem as descriptively as possible makes the brain work better). $end_of_url = substr(http://domain.com/about/page/subpage/;, strlen(/about/page/) * -1); $same_post = ($end_of_url == /about/page/); -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: Find match of string if only at end of string

2012-07-11 Thread tamouse mailing lists
On Wed, Jul 11, 2012 at 11:45 AM, Marc Guay marc.g...@gmail.com wrote: Answered it myself (funny how writing out a problem as descriptively as possible makes the brain work better). $end_of_url = substr(http://domain.com/about/page/subpage/;, strlen(/about/page/) * -1); $same_post =

Re: [PHP] [PHP-DEV] SQLite - Unwanted values using group-by

2012-07-11 Thread Matijn Woudt
On Wed, Jul 11, 2012 at 1:45 AM, Simon Schick simonsimc...@gmail.com wrote: On Sun, Jul 8, 2012 at 12:33 AM, Matijn Woudt tijn...@gmail.com wrote: Both of the results are valid outcomes. I think you don't understand the GROUP BY clause well enough. The parameters in the SELECT clause, should