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 legal
Whenever you build a query string you need to us the urlencode to encode
any characters that may be in there that aren't legal for a URL. On the
server I am using now, when you access values using $_GET['xyz'], it
does the urldecode for you. I'm not positive, but I am pretty sure,
that at
Lets say I have the following:
Current URL: http://www.domain.com/page.php?action=list
http://www.domain.com/page.php?action=listtop=/page.php?action=listid=3
top=/page.php?action=listid=3
$top = $_SERVER['PHP_SELF'].'?'.$_SERVER['argv']['0']
Now I want to create a URL with a return link in
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
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
On Thu, Oct 28 2004 - 00:31, Marek Kilimajer wrote:
I meant get parameters to google:
http://www.google.com/search?q=helpie=utf-8oe=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()
* add
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[engine];
$query =
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 =
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 don't get what
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... I
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\nwith some
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
* 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
This is
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
* 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? Create a
form
Hi,
I am using a header(location:) to send a
rawurlencod'ed string to another script...then I tried
decode it and use those values...but its not
working...
snippets of my code:
// sending file:
PHP Gen wrote:
// sending file:
$one=rawurlencode(dir_name=$dir_nameimgs_dir=$imgs_dirthumb_pre=$thumb_pretn_width=$tn_widthtn_height=$tn_heightwrite_text=$write_textcolors=$colorsx_pos=$x_posy_pos=$y_poslink1=$link1link2=$link2link3=$link3img_src1=$img_src1img_src2=$img_src2);
header(location:
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:
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 SpyProductions Support Team
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
%
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 goes
through fine and sometimes does not.
Are there any special reasons this may happen?
I decided
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
--- 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 superfluous
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
:[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 SpyProductions Support Team said...
%
% I am having some issues, apparently, with URL encode.
...
%
% I decided
: 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 part of
% their name, so a name like rt
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
--- 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 your
Hi there,
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 this:
HEADER(Location:/profiles/6.$recipient_id.2.html?subject=.rawurlencode($
subject).message=.rawurlencode($message).);
then I put it in again like this
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
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
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 help, any other ideas?
Bogdan Stancescu [EMAIL
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 help, any other ideas?
Bogdan Stancescu [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL P
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 this:
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), $message.
If
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 function
Hello php-general,
People, tell me please what's the difference between subj, except
that the 1st translates space into +.
--
Best regards,
Olexandr Vynnychenko mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hi,
I need to know wich is the best way to send variables through an URL,that if
the variables are of the string type, and what if the variable has spaces
like $string='this is a test'.
I have read about the use of urlencode(), but I have a strange behaviour
using this function, sometimes it work
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 variable
-994-6364
www.webintellects.com
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 2:41 PM
To: PHP User Group
Subject: [PHP] URLencode
Hello,
I am working on a script and using urlencode
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. Does anyone have any idea why this might
be happening?
Thank you
this script works as expected, if you don't submit ,' and \
but if you use ,' or \ these characters will be quoted with \
'\test'\ - \\'\\test\\'\\
?
echo htmlentities($val).form method=GETinput type=text name=valinput
type=submit/form;
?
how to get rid of this???
I don't want any character
Help - I've a problem when using urlencode/decode functions (same with
rawurl...).
If I encode :
mnemonic = "lnkphoto"
I get:
mnemonic+%3D++%22lnkphoto%22
And if decode it during the same script execution it converts back to
exactly:
mnemonic = "lnkphoto"
which is what I'd expect.
However, if
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/decode
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
rom: 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 your PHP.ini.
See http://php.net/manual
"rkirk.
46 matches
Mail list logo