Re: [PHP] urlencode and urldecode

2008-05-18 Thread Ólafur Waage
You can read about apache's mod_include and its echo element. http://httpd.apache.org/docs/2.2/mod/mod_include.html#element.echo 2008/5/17 Chris W <[EMAIL PROTECTED]>: > Whenever you build a query string you need to us the urlencode to encode any > characters that may be in there that aren't lega

Re: [PHP] Urlencode vs htmlentities

2005-12-06 Thread Curt Zirzow
On Tue, Dec 06, 2005 at 12:05:10PM -0800, Mark Steudel wrote: > Lets say I have the following: Before I go further: htmlentities - escapes the output for html urlencode- escapes the output for a url > > Current URL: http://www.domain.com/page.php?action=list >

Re: [PHP] Urlencode vs htmlentities

2005-12-06 Thread comex
> Should I use htmlentites on $top first? AFAIK, all of what you said is correct except for that, where you should use htmlentities(urlencode($top)). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] urlencode and google search query

2004-10-28 Thread Joel CARNAT
On Thu, Oct 28 2004 - 00:31, Marek Kilimajer wrote: > > I meant get parameters to google: > > http://www.google.com/search?q=help&ie=utf-8&oe=utf-8 > > you need to change ie parameter ^^ to whatever encoding you are using. yepee ! finally got it. so the tweak was : * don't use urlencode()

Re: [PHP] urlencode and google search query

2004-10-27 Thread Marek Kilimajer
Joel CARNAT wrote: On Wed, Oct 27 2004 - 23:41, Marek Kilimajer wrote: how comes urlencode generates "%E9" and google generates "%C3%A9" ? is google using some specific encoding ? any tweak to encode "the google way" ? you can specify your encoding to google using "ie" parameter. and output hum

Re: Re: [PHP] urlencode and google search query

2004-10-27 Thread Joel CARNAT
On Wed, Oct 27 2004 - 23:41, Marek Kilimajer wrote: > >how comes urlencode generates "%E9" and google generates "%C3%A9" ? > >is google using some specific encoding ? any tweak to encode "the google > >way" ? > > you can specify your encoding to google using "ie" parameter. and output hum... I

Re: [PHP] urlencode and google search query

2004-10-27 Thread Marek Kilimajer
Joel CARNAT wrote: Hi, I have a submit form from where I can search things to several sites (google, freshmeat, ...). I use PHP4/urlencode to generate the correct query. But it seems google does not use the right encoding :( example - query="programme télé": $engine = $_POST["e

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Nick Wilson
* and then Marek Kilimajer declared > >> > >>echo urlencode("This is a line\nThis is another line"); > > > > > >Yep, i can see that it's encoded but when the data is POSTed to a form, > >it does not come out as a newline... > > Are you sure the other side accepts, does not remove newlines? Cr

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file Thi

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Nick Wilson
* and then Marek Kilimajer declared > Nick Wilson wrote: > >hello all, > > > >For reasons beyond my immediate control i have to keep some strings of > >text in a text *new line delimited* text file. I also have to urlencode > >those strings for use in my script. > > > >Like this: > > > >## t

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Marek Kilimajer
Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file This is a line\nThis is another line This is another string\nw

Re: [PHP] urlencode - urldecode

2004-08-08 Thread PHP Gen Newbie
Hi, Thanks again John, point taken...will not trust the browser, will use sessions :-) Cheers, -Mag --- John Holmes <[EMAIL PROTECTED]> wrote: > PHP Gen wrote: > > > // sending file: > > > $one=rawurlencode("dir_name=$dir_name&imgs_dir=$imgs_dir&thumb_pre=$thumb_pre&tn_width=$tn_width&tn_hei

Re: [PHP] urlencode - urldecode

2004-08-08 Thread John Holmes
PHP Gen wrote: // sending file: $one=rawurlencode("dir_name=$dir_name&imgs_dir=$imgs_dir&thumb_pre=$thumb_pre&tn_width=$tn_width&tn_height=$tn_height&write_text=$write_text&colors=$colors&x_pos=$x_pos&y_pos=$y_pos&link1=$link1&link2=$link2&link3=$link3&img_src1=$img_src1&img_src2=$img_src2"); heade

Re: [PHP] URLencode issues - halp!

2003-01-24 Thread Ernest E Vogelsinger
At 22:30 23.01.2003, David T-G spoke out and said: [snip] >...and then SpyProductions Support Team said... >% >% I am having some issues, apparently, with URL encode. >... >% >% I decided to use this because people are allowed to use *any* key as part of >

Re: [PHP] URLencode issues - halp! - code included

2003-01-24 Thread Marek Kilimajer
g to use? Perhaps depending on the browser? Thanks, -Mike -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 3:31 PM To: PHP General list Cc: SpyProductions Support Team Subject: Re: [PHP] URLencode issues - halp! Mike -- ...and then S

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Chris Shiflett
--- SpyProductions Support Team <[EMAIL PROTECTED]> wrote: > So what is the decode part for then? Earlier versions of > PHP? No, it is for decoding URL-encoded strings, just as you would expect. The reason you do not need to decode URL variables is because they are not URL-encoded by the time yo

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread SpyProductions Support Team
So what is the decode part for then? Earlier versions of PHP? :) Thanks, -Mike -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] URLencode issues - halp

Re: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Leif K-Brooks
31 PM To: PHP General list Cc: SpyProductions Support Team Subject: Re: [PHP] URLencode issues - halp! Mike -- ...and then SpyProductions Support Team said... % % I am having some issues, apparently, with URL encode. ... % % I decided to use this because people are allowed to use *any* key as

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread SpyProductions Support Team
ursday, January 23, 2003 3:31 PM > To: PHP General list > Cc: SpyProductions Support Team > Subject: Re: [PHP] URLencode issues - halp! > > > Mike -- > > ...and then SpyProductions Support Team said... > % > % I am having some issues, apparently, with URL encode. > ...

Re: [PHP] URLencode issues - halp!

2003-01-23 Thread David T-G
Mike -- ...and then SpyProductions Support Team said... % % I am having some issues, apparently, with URL encode. ... % % I decided to use this because people are allowed to use *any* key as part of % their name, so a name like "rt'$%^*&'rt" is perfectly allowable. Makes sense, but I'd use base

Re: [PHP] URLencode issues - halp!

2003-01-23 Thread Chris Shiflett
--- SpyProductions Support Team <[EMAIL PROTECTED]> wrote: > I am having some issues, apparently, with URL encode. ... > Oh, and BTW, I do use urldecode(). :) If you are using URL encode in order to pass values on the URL (and then reference them as $_GET['blah']), then URL decoding is superfluou

Re: [PHP] URLencode issues - halp!

2003-01-23 Thread rw
Some code please! RW Quoting SpyProductions Support Team <[EMAIL PROTECTED]>: ### ### I am having some issues, apparently, with URL encode. ### ### I've got people signing up for a membership on a site, but some of their ### memberships fail because the username, which in encoded, sometimes go

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Anders Henke
Hi! What about using stripslashes: $variable = stripslashes($variable); Also see http://www.php.net/stripslashes /Anders Henke "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED]... > On Friday 29 March 2002 20:56, andy wrote: > > does not work. Just like the decode fu

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Bogdan Stancescu
Jason Wong wrote: >Well your problem is not caused by the rawurlencode, rawurldecode. It's >probably because you have magic_quotes_gpc set to on. > >Try this: > >For your URL: rawurlencode(stripslashes($subject)), and same for $message. > >For your textarea: htmlspecialchars($subject), & $messa

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Jason Wong
On Friday 29 March 2002 20:56, andy wrote: > does not work. Just like the decode function is out of order! > It is not even decoding \' > > > > >I am trying to fill a form again when an error occures, therefore I > > > > > > redirect > > > > > > > >to the form and pass the values via url like thi

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
ouble rawurldecode(). > > Andrey > > - Original Message - > From: "andy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, March 29, 2002 2:36 PM > Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \' > > >

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Andrey Hristov
try to do double rawurldecode(). Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 2:36 PM Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \' > does not hel

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
does not help, any other ideas? "Bogdan Stancescu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You don't have to rawurlDEcode again - that's done automatically. You > have to encode so you're HTTP compliant, but the decoding is done by PHP > (or even

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Bogdan Stancescu
You don't have to rawurlDEcode again - that's done automatically. You have to encode so you're HTTP compliant, but the decoding is done by PHP (or even Apache? I'm not sure) when receiving urlencoded strings via URL and form data. Bogdan andy wrote: >Hi there, > >I am trying to fill a form a

Re: [PHP] URLencode

2001-09-07 Thread Tom Carter
quot; <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 11:05 PM Subject: RE: [PHP] URLencode > I just realized that on the server I am trying to run this on, URLEncode > is working like rawurlencode.

RE: [PHP] URLencode

2001-09-07 Thread Brandon Orther
I just realized that on the server I am trying to run this on, URLEncode is working like rawurlencode. Does anyone have any idea why this might be happening? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-9

Re: [PHP] urlencode

2001-09-07 Thread Christopher CM Allen
> for an example I send the variable $user='user 1', and in the url there > appears user=user+1 (which I think is correct) but when I read the variable > in the php page it displays user+1 (doesn´t it has to return to user '1'?). urlencodes counterpart is "urldecode" you need to decode each varia

Re: [PHP] urlencode

2001-03-17 Thread John Lim
l Message- > From: John Lim [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 17, 2001 5:14 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] urlencode > > > You have magic_quotes_runtime enabled which causes this behaviour. You can > disable it by turning it off in you

RE: [PHP] urlencode

2001-03-17 Thread Richard Kirk
No, its set to "off". -Original Message- From: John Lim [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 17, 2001 5:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] urlencode You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it o

Re: [PHP] urlencode

2001-03-17 Thread John Lim
You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it off in your PHP.ini. See http://php.net/manual "rkirk.com Mail" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Help - I've a problem when using urlencode/deco

Re: [PHP] urlencode problem

2001-01-10 Thread Cynic
rawurlencode() / rawurldecode() ^^^ ^^^ At 16:35 10.1. 2001, Zhihong Pan wrote the following: -- >I have tow files named as "a+b.doc" and "x y.doc". Before I pass them to another >page, I do urlencode first. But after I do