_
ALAPLAYA.COM
http://www.alaplaya.com
[EMAIL PROTECTED]
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Juan Alonso" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 21, 2004 12:31
In message <[EMAIL PROTECTED]>
on Wed, Jan 21, 2004 at 02:43:57PM +0100, Petras Kudaras wrote:
> Shouldn't that go into separate module (available from PEAR) or something?
> Sticking as many things into the core as possible seems to be the reason
> a lot of people don't like PHP ;)
I don't know wh
James Devenish wrote:
$url .= strstr($url,'?')?"?foo=$foo":"&foo=$foo";
Without wanting to make any comment about the merits of the proposed
function, I would have thought there would be merit in having a set of
generalised URL-manipulation functions (if someone wanted to write them,
that is
At 07:53 PM 1/21/2004 +0800, James Devenish wrote:
In message <[EMAIL PROTECTED]>
on Wed, Jan 21, 2004 at 03:31:08AM -0800, Rasmus Lerdorf wrote:
> > $url = urlappendvar($_SERVER['HTTP_REFERER'], 'foo', $foo);
>
> Generally we don't add functions to replace simple one-line PHP
> expressions.
>
>
In message <[EMAIL PROTECTED]>
on Wed, Jan 21, 2004 at 03:31:08AM -0800, Rasmus Lerdorf wrote:
> > $url = urlappendvar($_SERVER['HTTP_REFERER'], 'foo', $foo);
>
> Generally we don't add functions to replace simple one-line PHP
> expressions.
>
> $url .= strstr($url,'?')?"?foo=$foo":"&foo=$foo"
Generally we don't add functions to replace simple one-line PHP
expressions.
$url .= strstr($url,'?')?"?foo=$foo":"&foo=$foo";
-Rasmus
On Wed, 21 Jan 2004, Juan Alonso wrote:
> Hello list,
>
> I find often myself wanting to append a variable to an unknown url. The
> problem is that you don
Hello list,
I find often myself wanting to append a variable to an unknown url. The
problem is that you don't know if you should append the var with ? or
with &. Do you think it would be useful to have a builtin function that
would do this automatically?
example code as I do it actually:
exam