Re: Which is easier to learn CGI or PHP?
.oO(John Bokma)
[color=blue][color=green]
>> Personally, I agree with your sentiment in many respects. The thing I
>> don't like about PHP is that it's frankly boring. (Also don't like the
>> whole $_POST/$_GET thing) would be nice if you could parse the data
>> before PHP got to it.[/color]
>
>GET -> QUERY_STRING. And I can't think of a reason why.[/color]
I can think of at least two:
1) Instead of rawurldecode() for decoding URLs PHP uses urldecode(),
which also decodes plus signs into spaces. You don't always want that.
2) PHP has its own way of handling multiple form values submitted with
the same name. To make it work you have to append a '[]' to the name of
the control. With your own query string parser that won't be necessary.
Micha
.oO(John Bokma)
[color=blue][color=green]
>> Personally, I agree with your sentiment in many respects. The thing I
>> don't like about PHP is that it's frankly boring. (Also don't like the
>> whole $_POST/$_GET thing) would be nice if you could parse the data
>> before PHP got to it.[/color]
>
>GET -> QUERY_STRING. And I can't think of a reason why.[/color]
I can think of at least two:
1) Instead of rawurldecode() for decoding URLs PHP uses urldecode(),
which also decodes plus signs into spaces. You don't always want that.
2) PHP has its own way of handling multiple form values submitted with
the same name. To make it work you have to append a '[]' to the name of
the control. With your own query string parser that won't be necessary.
Micha
Comment