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.
--
View this message in context:
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:
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
2009/1/21 leledumbo leledumbo_c...@yahoo.co.id
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
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.
--
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 leledumbo_c...@yahoo.co.id
Is this
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
-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 this web server specific? I can't get
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.
--
Thnaks for an explanation.
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
This has been explained a few times. PHP does shallow copies, or
copy-on-write which means that the data is not actually copied until you
change it. That is:
$a =
Thanks for ur interest.
Seairth Jacobs [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a couple thoughts...
1) In some other languages, passing an array by value only passes the
first
element value, not the whole array. This may be happening here,
I tried some trivial expirements:
/* here I define an array $big, which I guess would eat ~100kb of memory */
for($i=0; $i1; $i++)
{
$big[$i] = 1234567890;
}
/* this func only returns the value it gets as a param...*/
function f($a){return $a;}
$start = microtime();
/* here all the
I tried some trivial expirements:
/* here I define an array $big, which I guess would eat ~100kb of memory
*/
for($i=0; $i1; $i++)
{
$big[$i] = 1234567890;
}
/* this func only returns the value it gets as a param...*/
function f($a){return $a;}
$start = microtime();
/* here all the job
I tried some trivial expirements:
/* here I define an array $big, which I guess would eat ~100kb of memory
*/
for($i=0; $i1; $i++)
{
$big[$i] = 1234567890;
}
/* this func only returns the value it gets as a param...*/
function f($a){return $a;}
$start = microtime();
/* here all the job
This has been explained a few times. PHP does shallow copies, or
copy-on-write which means that the data is not actually copied until you
change it. That is:
$a = 1234567890;
$b = $a;
internally we do not copy the data from $a to $b until you change $b.
We you use references we have a
I have a couple thoughts...
1) In some other languages, passing an array by value only passes the first
element value, not the whole array. This may be happening here, which would
explay the fast execution times. I don't know this for sure, but it could
easily be tested by seeing what's in $a
Can someone explain why this works?
$x = 0;
if ($x == foo) {
print yeah;
}
This prints 'yeah', but i can't figure out why...
--
Jan Rademaker [EMAIL PROTECTED]
http://www.ottobak.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
895 1598
-Original Message-
From: Jan Rademaker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 12:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Please explain...
Can someone explain why this works?
$x = 0;
if ($x == foo) {
print yeah;
}
This prints 'yeah', but i can't
Rademaker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 11:30 AM
Subject: [PHP] Please explain...
Can someone explain why this works?
$x = 0;
if ($x == foo) {
print yeah;
}
This prints 'yeah', but i can't figure out why...
--
Jan Rademaker [EMAIL PROTECTED]
http
»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 (english)
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
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: Re: [PHP] Please explain...
»Rudolf Visagie« sagte am 2002-03-19 um 12:19
with ===
?
Output:
foobar
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] Please explain...
For interest's sake
is that there is a type precedence in == comparisons
with numbers and boolean variables taking precedence over strings. Any
ideas?
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Please explain
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 someone
25 matches
Mail list logo