Re: [PHP] posted urls
So sprach »Egon Schmid« am 2001-09-14 um 08:20:11 +0200 : > Alexander, please don't try to educate people with a RTFM. Your solution > to the above problem is obviously wrong. Yes, that's right. I misunderstood the question, sorry about that. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 4 hours 46 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posted urls
YESS, THAT'S THE TRUE ANSWER, THANKS LAWRENCE SHEED Lawrence Sheed wrote: > ereg_replace or str_replace perhaps? > > eg > > $something= "this is a sentence"; > > $something = ereg_replace (" ","+", $something); > > print $something; > > -Original Message- > From: Egon Schmid [mailto:[EMAIL PROTECTED]] > Sent: September 14, 2001 2:20 PM > To: Alexander Skwar > Cc: murat; [EMAIL PROTECTED] > Subject: Re: [PHP] posted urls > > > Alexander Skwar wrote: > >>So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : >> >>>how can i change variables that has two or more words to variables that >>> has "+" instead of blanks in that variables. >>>Like this: "word1 word2 word3" => "word1+word2+word3" >>> >>$word1 . $word2 . $word3 >> >>Read the manual! >> > > Alexander, please don't try to educate people with a RTFM. Your solution > to the above problem is obviously wrong. > > -Egon > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] posted urls
On Fri, 14 Sep 2001 [EMAIL PROTECTED] wrote: > ereg_replace or str_replace perhaps? > > eg > > $something= "this is a sentence"; > > $something = ereg_replace (" ","+", $something); > > print $something; > That'll work, although str_replace is faster and better... fyi, if you want to encode a string for a URL, use the urlencode() function. -Sterling > -Original Message- > From: Egon Schmid [mailto:[EMAIL PROTECTED]] > Sent: September 14, 2001 2:20 PM > To: Alexander Skwar > Cc: murat; [EMAIL PROTECTED] > Subject: Re: [PHP] posted urls > > > Alexander Skwar wrote: > > > > So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : > > > how can i change variables that has two or more words to variables that > > > has "+" instead of blanks in that variables. > > > Like this: "word1 word2 word3" => "word1+word2+word3" > > > > $word1 . $word2 . $word3 > > > > Read the manual! > > Alexander, please don't try to educate people with a RTFM. Your solution > to the above problem is obviously wrong. > > -Egon > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] posted urls
ereg_replace or str_replace perhaps? eg $something= "this is a sentence"; $something = ereg_replace (" ","+", $something); print $something; -Original Message- From: Egon Schmid [mailto:[EMAIL PROTECTED]] Sent: September 14, 2001 2:20 PM To: Alexander Skwar Cc: murat; [EMAIL PROTECTED] Subject: Re: [PHP] posted urls Alexander Skwar wrote: > > So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : > > how can i change variables that has two or more words to variables that > > has "+" instead of blanks in that variables. > > Like this: "word1 word2 word3" => "word1+word2+word3" > > $word1 . $word2 . $word3 > > Read the manual! Alexander, please don't try to educate people with a RTFM. Your solution to the above problem is obviously wrong. -Egon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posted urls
Alexander Skwar wrote: > > So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : > > how can i change variables that has two or more words to variables that > > has "+" instead of blanks in that variables. > > Like this: "word1 word2 word3" => "word1+word2+word3" > > $word1 . $word2 . $word3 > > Read the manual! Alexander, please don't try to educate people with a RTFM. Your solution to the above problem is obviously wrong. -Egon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posted urls
On Fri, 14 Sep 2001 15:07, Alexander Skwar wrote: > So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : > > how can i change variables that has two or more words to variables > > that has "+" instead of blanks in that variables. > > Like this: "word1 word2 word3" => "word1+word2+word3" > > $word1 . $word2 . $word3 > > Read the manual! > > Alexander Skwar Tsk Alexander, read the question :-) Urlencode is most likely what is needed. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA "My bid for this contract aims to please," said Tom tenderly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posted urls
So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : > how can i change variables that has two or more words to variables that > has "+" instead of blanks in that variables. > Like this: "word1 word2 word3" => "word1+word2+word3" $word1 . $word2 . $word3 Read the manual! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 0 hours 0 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posted urls
$var=urlencode($var); may solve your problem. (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: murat <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 13, 2001 1:34 PM Subject: [PHP] posted urls > hi, > how can i change variables that has two or more words to variables that > has "+" instead of blanks in that variables. > Like this: "word1 word2 word3" => "word1+word2+word3" > > thanks > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posted urls
> hi, > how can i change variables that has two or more words to variables that > has "+" instead of blanks in that variables. > Like this: "word1 word2 word3" => "word1+word2+word3" > > thanks http://www.php.net/manual/en/ref.url.php jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] posted urls
hi, how can i change variables that has two or more words to variables that has "+" instead of blanks in that variables. Like this: "word1 word2 word3" => "word1+word2+word3" thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]