RE: [PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
Boyd, Todd M. wrote: > > IIRF - Ionics ISAPI Rewrite Filter [1] is totally free... and it > supports the use of Regular Expressions [2] in your rewrite rules. If > you're going to use any sort of MVC-based URLs in IIS, this library is a > must-have. > Thanks for the link, I'll try it tonight. -

RE: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Boyd, Todd M.
> -Original Message- > From: clive [mailto:clive_li...@immigrationunit.com] > Sent: Wednesday, January 21, 2009 3:36 AM > To: leledumbo > Cc: php-general@lists.php.net > Subject: Re: [PHP] Please explain: index.php/index/index > > leledumbo wrote: > > Is thi

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread clive
leledumbo wrote: Is this web server specific? I can't get it to run under Microsoft IIS, but it works flawlessly in Apache. IIS 6 and below dont have an option like mod_rewrite, apparently IIS 7 does, I haven't tried it yet. There are a number of 3rd party apps that can add this functionalit

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Török Alpár
Never used IIS, but under the circumstances, i think you got your answer. I remember that codeigniter support many ways of getting that string, i believe kohana does the same. You probably need to change some configuration options for IIS 2009/1/21 leledumbo > > Is this web server specific? I ca

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
Is this web server specific? I can't get it to run under Microsoft IIS, but it works flawlessly in Apache. -- View this message in context: http://www.nabble.com/Please-explain%3A-index.php-index-index-tp21578728p21579384.html Sent from the PHP - General mailing list archive at Nabble.com. --

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Török Alpár
2009/1/21 leledumbo > > > > Carlos Medina-2 wrote: > > > > this is a Front Controller situation (Pattern) > > > Could you explain more on that? I've never seen anything like this in any > tutorial I've found on the net. I'm using Kohana framework. So, if I have > index.php/index/index where does

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread leledumbo
Carlos Medina-2 wrote: > > this is a Front Controller situation (Pattern) > Could you explain more on that? I've never seen anything like this in any tutorial I've found on the net. I'm using kohana framework. So, if I have index.php/index/index where does it actually go? -- View this message

Re: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Carlos Medina
leledumbo schrieb: I don't understand it. index.php should be a file and indeed it's a file, so what does /index/index after it mean? There's no index directory under directory where index.php resides. Hi Leledumbo, what are you talking about? I think you are confused on this: http://www.domain

Re: [PHP] Please explain...

2002-03-19 Thread bvr
This is because of type conversion, see also manual chapter 'Type juggling'. "foo" converted to integer type is also zero, if you try "1foo" for example, it will convert to one. if you want to check without type conversion use the === operator instead. bvr. Jan Rademaker wrote: >Can someon

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
uot;foo" evaluates as 0 in the comparison. Andrey - Original Message - From: "Rudolf Visagie" <[EMAIL PROTECTED]> To: "Alexander Skwar" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 1:01 PM Subject: RE: [PHP] Pleas

Re: [PHP] Please explain...

2002-03-19 Thread Andrey Hristov
inal Message - From: "Rudolf Visagie" <[EMAIL PROTECTED]> To: "Alexander Skwar" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 1:01 PM Subject: RE: [PHP] Please explain... For interest's sake the following code: $x = 0; if ($x

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
quot;; } prints: This is an integer comparison with foo being 0 This is a boolean comparison with foo being 1 Cheers -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 12:51 PM To: Rudolf Visagie Cc: Jan Rademaker; [EMAIL PROTECTED] Subject: R

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
Yes, if you were comparing to a boolean, but in this case you are comparing to an integer. -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 12:51 PM To: Rudolf Visagie Cc: Jan Rademaker; [EMAIL PROTECTED] Subject: Re: [PHP] Please explain

Re: [PHP] Please explain...

2002-03-19 Thread Alexander Skwar
»Rudolf Visagie« sagte am 2002-03-19 um 12:19:04 +0200 : > I would guess that the string "foo" evaluates to integer 0 in the comparison Hmm, shouldn't a filled string ("foo") evaluate to TRUE, ie. to 1? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (englis

Re: [PHP] Please explain...

2002-03-19 Thread Alex Vargas
Because you are telling the parser to compare a numeric variable against something called "foo" which (in your context) has to be numerical too. Since "foo" has not been given any value, the parser defaults it to 0. So foo = 0. So is true that foo=$x=0. Alex. - Original Message - From: "

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
I would guess that the string "foo" evaluates to integer 0 in the comparison because $x is an integer, so that $x = 0 = true Use === (in PHP 4) to do type checking as well. Rudolf Visagie Principal Software Developer Digital Healthcare Solutions Tel: 011 2655478 Cell: