For me it doesnt matter I dont want Google in the section that I'm obfuscation.
On 7/13/06, Richard Lynch [EMAIL PROTECTED] wrote:
On Fri, July 7, 2006 10:56 pm, Anas Mughal wrote:
My URLs are constant. They are not changing.
All my dynamic pages are indexed nicely on Google.
I agree that a
On Thu, July 6, 2006 11:49 am, Dan McCullough wrote:
Looking for a good way to obfuscation the name value pairs in a URL,
so it might be something like
http://www.domain.com/page=fjdsaflkjdsafkfjdsakfjdsalkfjsda983dsf or
something like that, I was looking at base64_encode, but was wondering
On Thu, July 6, 2006 12:00 pm, Anas Mughal wrote:
I have encrypted the values -- not the keys. With this approach, I
presume I
have made it harder for anyone trying to screen scrap my data. (It is
not
possible to write a script that would loop over my pages.)
Unless you are using an
My URLs are constant. They are not changing.
All my dynamic pages are indexed nicely on Google.
I agree that a computerized screen scrapper could still screen scrap most of
my site. However, a simple script that attempts to bump up the identifier of
a resource in a URL, would not work. Here is
Looking for a good way to obfuscation the name value pairs in a URL,
so it might be something like
http://www.domain.com/page=fjdsaflkjdsafkfjdsakfjdsalkfjsda983dsf or
something like that, I was looking at base64_encode, but was wondering
what others might do or use. It doesnt have to be super
I have encrypted the values -- not the keys. With this approach, I presume I
have made it harder for anyone trying to screen scrap my data. (It is not
possible to write a script that would loop over my pages.)
Why do you need to encrypt the keys?
--
Anas Mughal
On 7/6/06, Dan McCullough
Hi all
Not really a php issue per se - sorry.
But I'm sure someone here is bound to know the answer. :-)
I have a main site that is accessible at say
http://www.somedomain.com/somedir/; but I want visitors to be able to
access the site using simply http://www.somedomain.com; AND for the
Keith wrote:
Hi all
Not really a php issue per se - sorry.
But I'm sure someone here is bound to know the answer. :-)
I have a main site that is accessible at say
http://www.somedomain.com/somedir/; but I want visitors to be able to
access the site using simply
At 5:43 PM +0100 5/10/06, IraqiGeek wrote:
Hi all,
I'm somewhat new to php, though I have played a bit with the
language. I'm currently learning the language, and I'm having a
problem passing variables through URL query.
The following will show you how to do post and get :
Hi all,
I'm somewhat new to php, though I have played a bit with the language. I'm
currently learning the language, and I'm having a problem passing variables
through URL query. Here is what I have:
A simple HTML file that contains:
A HREF=test.php?var=test Hi, this is a test! /A
and a php
IraqiGeek wrote:
Hi all,
I'm somewhat new to php, though I have played a bit with the language.
I'm currently learning the language, and I'm having a problem passing
variables through URL query. Here is what I have:
A simple HTML file that contains:
A HREF=test.php?var=test Hi, this is a
?php
$var = $_GET['var'];
echo( Welcome to our Web site, $var! );
?
-B
IraqiGeek wrote:
Hi all,
I'm somewhat new to php, though I have played a bit with the language.
I'm currently learning the language, and I'm having a problem passing
variables through URL query. Here is what I have:
A
On 5/10/06, IraqiGeek [EMAIL PROTECTED] wrote:
Hi all,
I'm somewhat new to php, though I have played a bit with the language. I'm
currently learning the language, and I'm having a problem passing variables
through URL query. Here is what I have:
A simple HTML file that contains:
A
register_globals is disabled on your system, which is a good thing. So you
have to reference all values sent via a form using GET with the $_GET
superglobal array as follows:
Welcome to our web site, {$_GET[var]}
or
'Welcome to our web site, ' . $_GET['var']
etc etc
On 10/05/06, IraqiGeek
IraqiGeek wrote:
Hi all,
I'm somewhat new to php, though I have played a bit with the language.
I'm currently learning the language, and I'm having a problem passing
variables through URL query. Here is what I have:
A simple HTML file that contains:
A HREF=test.php?var=test Hi, this is a
On Wednesday, May 10, 2006 6:08 PM GMT,
Jason Gerfen [EMAIL PROTECTED] wrote:
IraqiGeek wrote:
Hi all,
I'm somewhat new to php, though I have played a bit with the
language. I'm currently learning the language, and I'm having a
problem passing variables through URL query. Here is what I
Try this :
?php
$foo=$_GET['var'];
echo ($foo);
?
Refer: http://www.zend.com/zend/art/art-sweat4.php
- Vedanta Barooah
-Original Message-
From: IraqiGeek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 10:14 PM
To: php-general@lists.php.net
Subject: [PHP] PHP URL query
Hi all
IraqiGeek wrote:
Hi all,
...
two things which have nothing to do with your original question
(that seems to have been covered rather well)
Regards,
IraqiGeek
www.iraqigeek.com
try viewing your site in firefox - notice all those question marks
in the content? might be interesting to find
Kevin Kinsey wrote:
Pretty good thoughts, there. Some years ago, Tim Perdue
(of PHPBuilder and SourceForge fame) had a popular
article on Search Engine Friendly URL's (or some such),
in which he described use of the Apache ForceLocal
directive to make a site just One Big Script, parsing
the
Hi all and thanks for the answers.
On my server, the building of some webpages with url like the one below
produces a loop
and crashes the server.
(http://myurl.mydomain/path/index.php/path/index.php).
As I never heard about the PATH_INFO before, I'm not sure the site uses
this value.
On 4/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
redirects to:
http://www.example.com/index.php?action=edittype=customerid=1234adminaccess=1
and you put admin access flags (read, determine roles) in URL parameters?
-ahmed
On Mon, April 24, 2006 1:58 am, nicolas figaro wrote:
On my server, the building of some webpages with url like the one
below
produces a loop
and crashes the server.
(http://myurl.mydomain/path/index.php/path/index.php).
Odds are VERY GOOD that you have some kind of bad regex in your
On Mon, April 24, 2006 8:10 am, Ahmed Saad wrote:
On 4/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
redirects to:
http://www.example.com/index.php?action=edittype=customerid=1234adminaccess=1
and you put admin access flags (read, determine roles) in URL
parameters?
Hopefully that's
Hi,
could anyone tell me why the following url doesn't generate a page not
found ?
http://www.php.net/manual/en/function.checkdnsrr.php/manual/
you can try with a longer url after the last .php.
I tried with ../manual instead of manual and this produces a 404.
I checked with www.php.net
Not sure about php.net specifically, but two things to note here:
If you leave off a filename at the end of the URL, the web server will look for
a 'default' document. On apache and unix systems I believe the default is
index.html and on IIS systems it's something like Default.htm. Most of
Hi,
could anyone tell me why the following url doesn't
generate a page not found ?
http://www.php.net/manual/en/function.checkdnsrr.php/manual/
you can try with a longer url after the last .php.
I tried with ../manual instead of manual and this produces a 404.
I checked with www.php.net
I believe Kevin is on the right track there. To expand a bit, you can use
$_SERVER['PATH_INFO'] with these urls instead of $_GET to make use of the
data it contains
example for url http://www.example.com/index.php/foo/bar
?php
echo $_SERVER['PATH_INFO'];
?
produces:
/foo/bar
You can then parse
You could do that... a poor man's mod_rewrite might involve something like
this and making the main PHP parsing script your 404 page.. so no matter where
you went on a page, the 404 redirect to your PHP script would parse the request
(or would you get the post-redirected URL? in which case
No arguments here ;-). For what it's worth, I've used this technique just to
simply clean up the url's a bit. With that in mind, I usually don't need to
do a terrible amount of scrubbing because I'm using the variables in the url
more for navigation. So
All depends on how the data is used after it's interpreted/split:
http://www.example.com/index.php/edit/customer/1234
$action = edit;
$type = customer;
$id = 1234;
header(Location:
http://www.example.com/index.php?action=$actiontype=$typeid=$id;);
In this case, what happens if someone does:
On Fri, April 21, 2006 10:04 am, nicolas figaro wrote:
could anyone tell me why the following url doesn't generate a page
not
found ?
http://www.php.net/manual/en/function.checkdnsrr.php/manual/
you can try with a longer url after the last .php.
I tried with ../manual instead of manual and
On Fri, April 21, 2006 1:11 pm, [EMAIL PROTECTED] wrote:
You could do that... a poor man's mod_rewrite might involve
something like this and making the main PHP parsing script your 404
page.. so no matter where you went on a page, the 404 redirect to your
PHP script would parse the request (or
Here is the url
http://pastebin.com/579621
Greetings PHP folks,
Which PHP function do I use if I want to achieve the following :
http://www.somesite.com/gallery/pics.php is the url...how do I get it to
read only http://www.somesite.com in the browser address bar without the
rest of the directory and filename appearing ?
Regards
--
Chris wrote:
Greetings PHP folks,
Which PHP function do I use if I want to achieve the following :
http://www.somesite.com/gallery/pics.php is the url...how do I get it to
read only http://www.somesite.com in the browser address bar without the
rest of the directory and filename appearing ?
I have a following directory:
- folder (site)
index.php
- folder (example)
index.php
the url to this directory will be: http://www.example.com/site/index.php
but I need redirect with: header() function to the index.php inside the folder
example without the url change
I mean, I want to
.
-Original Message-
From: Jesús Alain Rodríguez Santos [mailto:[EMAIL PROTECTED]
Sent: Friday, February 17, 2006 2:49 PM
To: php-general@lists.php.net
Subject: [PHP] URL problem
I have a following directory:
- folder (site)
index.php
- folder (example)
index.php
the url to this directory
I think you need to create a stream context resource with:
http://www.php.net/manual/en/function.stream-context-create.php
set the options you need on it with:
http://www.php.net/manual/en/function.stream-context-set-option.php
then pass the resource as the 4th arg to fopen() (rather passing
On Thu, January 19, 2006 6:49 pm, Geoff wrote:
Richard, have you seen this:
http://bugs.php.net/bug.php?id=5153edit=1
This bug goes back to June 2000. And it's closed even though it is
clearly not fixed. Doesn't seem like they'll get to it anytime soon.
You might have to do it the long way,
On Fri, January 20, 2006 7:10 am, Jochem Maas wrote:
I think you need to create a stream context resource with:
http://www.php.net/manual/en/function.stream-context-create.php
set the options you need on it with:
http://www.php.net/manual/en/function.stream-context-set-option.php
then pass
Richard Lynch wrote:
So I've been poring over the docs for the new stream stuff, and it
looks pretty nifty, except...
I'd really like to be able to just hand a URL to PHP like:
http://php.net/manual/en/ref.stream.php
er you can if allow_url_fopen ini setting is set to 1 (can't you?)
$fh =
On Thu, January 19, 2006 5:17 am, Jochem Maas wrote:
Richard Lynch wrote:
So I've been poring over the docs for the new stream stuff, and it
looks pretty nifty, except...
I'd really like to be able to just hand a URL to PHP like:
http://php.net/manual/en/ref.stream.php
er you can if
3 suggestions:
I honestly have no idea if this would work, but maybe fopen supports
non-blocking connections? Or creation of context-based connections
(for which you can use stream_set_blocking). If so, you could take a
stamp of the current time plus a timeout value, make the fopen call
On Thu, January 19, 2006 4:08 pm, Geoff wrote:
I honestly have no idea if this would work, but maybe fopen supports
non-blocking connections?
Not as far as I can tell...
You can call stream_set_blocking after it's open, but that doesn't
help a slow connection in the first place.
Or creation
Richard, have you seen this:
http://bugs.php.net/bug.php?id=5153edit=1
This bug goes back to June 2000. And it's closed even though it is
clearly not fixed. Doesn't seem like they'll get to it anytime soon.
You might have to do it the long way, building your own protocol
handlers. Or, you might
So I've been poring over the docs for the new stream stuff, and it
looks pretty nifty, except...
I'd really like to be able to just hand a URL to PHP like:
http://php.net/manual/en/ref.stream.php
And let PHP figure out how to create a stream context out of that, and
which port to use, and how to
I trying to create an absolute path to include scripts and images in another
directory. For includes, I have found $path = dirname(__FILE__)
./mydir/myscript.php;
However, I am unable to reference an image using this path, like
echo img src= . dirname(__FILE__) . /mydir/myimage.gif;
To
Chris wrote:
I trying to create an absolute path to include scripts and images
in another directory.
These are two different things, but there is a relationship in the sense
that URLs are translated to filesystem paths using document root:
http://host/path/to/script.php = [document
On Fri, November 11, 2005 9:12 pm, Imroz wrote:
Hi PHP Gurus
Am new to the php world, I need help to do something. PlZz help
I have this link HYPERLINK
http://www.taximauritius.mu/link1.phphttp://www.taximauritius.mu/link1
..php.
What I want to do :
When clicking on the link above,
Hi PHP Gurus
Am new to the php world, I need
help to do something. PlZz help
I have this link http://www.taximauritius.mu/link1.php.
What I want to do :
When clicking on the link above, that would bring me to a
page
You've tried accessing $_GET in reservation.php?
Like
$_GET['client'] would return apartment1 in reservation.php if you
clicked on
http://www.taximauritius.mu/reservation.php?client=apartment1
-Minuk
Imroz wrote:
Hi PHP Gurus
Am new to the php world, I need help to do something.
I know that referrer is an ENV variable carried by web browsers but I
am wondering if any of you guru's have figured out a way to track any
referrer al information from a link pasted into an instant messenger
(AIM) window.
Anyone have any ideas on this?
Much Thanks,
Mike D
Havn't done it myself, but why not try pasting a link in IM and have it go to a
php script that does a var_dump (or print_r) of $_SERVER. Think that's where
the referrer data is.
It may not show any referrer information since it's coming from an IM, but who
knows.. would be interesting to
Thanks for the thoughts -- some good points! I will let you know if I
come up with anything that works, please let me you know if you do
the same :)
Best,
Mike D
...
Mike Dunlop
Director of Technology Development
[ e ] [EMAIL
On Thu, July 7, 2005 6:40 pm, timothy johnson said:
This should be pretty simple but I cant find any info on it at the
site. I am writing a function that will create a anchor, but I want it
to call the same page it is on. Is there a way to get the current php
page I am on so that when I output
Hi all
I have a value like: %u0394%u0397%u03A4%u039C%u039B
Is there a way to decode to normal characters (like javascript's unescape()
function)
Thanks in advance
Mario
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mario netMines wrote:
I have a value like: %u0394%u0397%u03A4%u039C%u039B
Is there a way to decode to normal characters (like javascript's
unescape() function)
I think you might want to try mb_parse_str(), although I can't run a
quick test for you, because I don't have the multibyte
This should be pretty simple but I cant find any info on it at the
site. I am writing a function that will create a anchor, but I want it
to call the same page it is on. Is there a way to get the current php
page I am on so that when I output my anchor for that correct page.
so if I call it from
how can i send a webpage by mail ?
i'v tryed something like that
$fd = fopen ($url, r);
$contents = fread($fd, 102400);
print $contents;
fclose ($fd);
mail($adr,$url,$contents);
but the message is blank :(
what's the problem ?
PROTECTED]
To: php-general php-general@lists.php.net
Sent: Saturday, June 04, 2005 1:54 PM
Subject: [PHP] url by mail
how can i send a webpage by mail ?
i'v tryed something like that
$fd = fopen ($url, r);
$contents = fread($fd, 102400);
print $contents;
fclose ($fd);
mail($adr,$url,$contents
Hi, ho,
I have a problem; something which works locally is complaining on the
BSD Unix server I use:
The Code: (somewhere else I define $image_dir)
!-- If there's an image, get it, get its height and width and slap it
into an image tag, otherwise, move on --
?php if (!empty($article['image']))
$image_dir is an url (begins with http:// or similar) and
allow_url_fopen is off on your BSD.
Do you need to access it using url wrappers? If the images are local you
can access them using plain filesystem access
Jackson Linux wrote:
Hi, ho,
I have a problem; something which works locally is
My provider has provided me the solution: adding
php_flag allow_url_fopen on
to the .htaccess
Apologies to the list for wasting time and bandwidth.
Jack
On 31 Mar 2005, at 17:47, Jackson Linux wrote:
Hi, ho,
I have a problem; something which works locally is complaining on the
BSD Unix server I
That's because the character data is split on the borders of the
entities, so for
http://feeds.example.com/?rid=318045f7e13e0b66amp;cat=48cba686fe041718amp;f=1
characterData() will be called 5 times:
http://feeds.example.com/?rid=318045f7e13e0b66
cat=48cba686fe041718
f=1
Solution is inlined
Hi Marek,
Thank you for the solution.
--
Roger
Quoting Marek Kilimajer [EMAIL PROTECTED]:
That's because the character data is split on the borders of the
entities, so for
http://feeds.example.com/?rid=318045f7e13e0b66amp;cat=48cba686fe041718amp;f=1
characterData() will be called 5
I have a short script to parse my XML file. The parsing produces no error and
all output looks good EXCEPT url-links were truncated IF it contain the 'amp;'
characters.
My XML file looks like this:
--- start of XML ---
?xml version=1.0 encoding=iso-8859-1?
rss version=2.0
channel
titleTest News
Hello.
Im having some trouble when getting a query from a $_GET method
the problem is, when using $_GET, i get some charaters decoded as html
entities.
if i submit the word %sara% (example), is ok
but, if i submi the word %carlos%, i get Êrlos, witch is the translation
of html entity %ca
how
Bruno Santos wrote:
Hello.
Im having some trouble when getting a query from a $_GET method
the problem is, when using $_GET, i get some charaters decoded as html
entities.
if i submit the word %sara% (example), is ok
but, if i submi the word %carlos%, i get Êrlos, witch is the translation
of
Bruno Santos wrote:
Hello.
Im having some trouble when getting a query from a $_GET method
the problem is, when using $_GET, i get some charaters decoded as html
entities.
if i submit the word %sara% (example), is ok
but, if i submi the word %carlos%, i get Êrlos, witch is the translation
Hi there!
I'm a total newbie at connecting to diffrent servers, and b2b and such stuff
, so I guess this is a simple question for you guys...
Another company wants me to access their productinfo thorugh URL, something
like this:
https://www.anothercompany.com/returnValueOfProductID=1043
If I
u can try fopen
On Wed, 12 Jan 2005 09:40:26 +0100, Wiberg [EMAIL PROTECTED] wrote:
Hi there!
I'm a total newbie at connecting to diffrent servers, and b2b and such stuff
, so I guess this is a simple question for you guys...
Another company wants me to access their productinfo thorugh
Hello Wiberg,
Wednesday, January 12, 2005, 1:40:26 AM, you wrote:
W Another company wants me to access their productinfo thorugh URL, something
W like this:
W https://www.anothercompany.com/returnValueOfProductID=1043
Oddly enough I just happened to run across something that might be
useful
Hello!
I'm solving one problem and I'd like to ask you for hints/advices or
'RTFM at link' answers.
Problem is:
I need special type of URL to be 'rewritten' in the way how the Apache
does the URL rewritting.
example:
fopen('chrome://myfile.txt', 'r');
to have be internaly resolved for eaxample
I have a dynamically created image labeled:
stories critiques.jpg
I have use url encode on it when saving it, and it is stored on the server
as:
stories+%26+crtitiques.jpg
[snip]
If I just put the path into the browser directly it also 404's
If I rename the file in any way that removes the % it
Hello all
I have a dynamically created image labeled:
stories critiques.jpg
I have use url encode on it when saving it, and it is stored on the server
as:
stories+%26+crtitiques.jpg
I have an html block that calls the image
img src=stories+%26+crtitiques.jpg
I get a 404
I know the path
How can I get the URL in the address bar in any variable?
If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
to store it in any variable in my code.
$PHP_SELF gives only page name.
Can any one help me?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To
On Wednesday 03 November 2004 08:13, Kevin Javia wrote:
How can I get the URL in the address bar in any variable?
If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
to store it in any variable in my code.
print_r($_SERVER) and pick the one most suitable.
--
Jason Wong
Hi,
You may use $_SERVER['REQUEST_URI'];
Zareef ahmed
-Original Message-
From: Kevin Javia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 1:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] URL thing
How can I get the URL in the address bar in any variable?
If URL
$_GET[var1] and $_GET[var2]
On Wed, 3 Nov 2004 13:43:16 +0530, Kevin Javia [EMAIL PROTECTED] wrote:
How can I get the URL in the address bar in any variable?
If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
to store it in any variable in my code.
$PHP_SELF gives
I'm moving hosts for a freelance site I do...
They have an events section, and it's sortable by date, name and category
etc...
To achieve this, I passed the search/sort variables via the URL...
However, I'm testing the new server, and those variables are not being
detected?
I've put this code
On Thu, 21 Oct 2004 14:08:28 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I'm moving hosts for a freelance site I do...
They have an events section, and it's sortable by date, name and category
etc...
To achieve this, I passed the search/sort variables via the URL...
However, I'm
Hi Trisan,
Quoting [EMAIL PROTECTED]:
I've put this code at teh top of the code on events page '$sort_by =
$_GET[sort_by];' etc...
And while that sorts out the problem, I'm curious as to why I need to do
that, and if those changes will cause me probs elsewhere?
Perhaps on your old server,
I have this old script I wrote 2-3 years back. I gets arguments from the url.
index.php?area=blah
The client moved the code to another server and some odd happened. Nothing seems to
be parsing from the URL anymore.
The top code is
? if (!isset($area)) { ?
HTML
THis code no longer
Dan McCullough wrote:
I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah
The client moved the code to another server and some odd happened. Nothing seems to be parsing from the URL anymore.
The top code is
? if (!isset($area)) { ?
HTML
, October 20, 2004 11:08 AM
To: PHP General List
Subject: [PHP] url
I have this old script I wrote 2-3 years back. I gets arguments from the
url. index.php?area=blah
The client moved the code to another server and some odd happened. Nothing
seems to be parsing from the URL anymore.
The top code
On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McCullough
[EMAIL PROTECTED] wrote:
I have this old script I wrote 2-3 years back. I gets arguments from the url.
index.php?area=blah
The client moved the code to another server and some odd happened. Nothing seems to
be parsing from the URL
My guess is your client has the latest version of PHP (4.2.0) whiile
the old server had an older version (pre 4.2.0).
register_globals = off in the php.ini
http://us2.php.net/manual/en/ini.sect.data-handling.php#ini.register-globals
Change
? if (!isset($area)) { ?
to
? if (!isset($_GET['area']))
Dan McCullough wrote:
I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah
The client moved the code to another server and some odd happened. Nothing seems to be parsing from the URL anymore.
The top code is
? if (!isset($area)) { ?
HTML
-Original Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 10:38 PM
To: PHP General List
Subject: [PHP] url
I have this old script I wrote 2-3 years back. I gets arguments from
the url. index.php?area=blah
Dear, you forgot to update
Hello all.
I have a login page where users have to authenticate themselves to
access some site areas.
Apache is configured to use https.
the user when is typing the URL in the browser, i know that it will not
put the https protocol.
how can i check in the page if the user is accessing the the
how can i check in the page if the user is accessing the the site via SSL ??
or i have to put a redirect in the page anyway, whether the user is
alredy accessing the page via SSL?
if it has to be https, why not just use mod_rewrite to make sure it is.
With php you could check
On Fri, 08 Oct 2004 15:48:52 +0100, Bruno Santos
[EMAIL PROTECTED] wrote:
how can i check in the page if the user is accessing the the site via SSL ??
or i have to put a redirect in the page anyway, whether the user is
alredy accessing the page via SSL?
parse_url()
--
Greg Donald
Zend
Bruno Santos wrote:
Hello all.
I have a login page where users have to authenticate themselves to
access some site areas.
Apache is configured to use https.
the user when is typing the URL in the browser, i know that it will not
put the https protocol.
how can i check in the page if the user
PROTECTED]
Sent: Friday, October 08, 2004 7:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP] URL verification
Hello all.
I have a login page where users have to authenticate themselves to
access some site areas.
Apache is configured to use https.
the user when is typing the URL in the browser, i know
Hi,
Check the port number: 80 for http and 443 for https (standard
defaults). You can check it with $_SERVER['SERVER_PORT']
i.e.:
if ($_SERVER['SERVER_PORT'] != 443) {
header('Location: https://some.location.here');
}
Also, there is not important if the login form is displayed in SSL
mode
Hi,
I have follow problem: One form whitch send some text fields to my PHP
script. But before send data, the form makes
javascript command escape for text fields. The text fields may contain
characters +, quotes, etc.
The form post data with GET method. And then I can't get correctly posted
data
On Mon, 13 Sep 2004 16:51:59 +0300, Rosen [EMAIL PROTECTED] wrote:
I have follow problem: One form whitch send some text fields to my PHP
script. But before send data, the form makes
javascript command escape for text fields. The text fields may contain
characters +, quotes, etc.
The form
It will not work - Javascript function escape() return string as unicode
data - something like %u0431%u043E%u044F.
And I don't know how to decode these data as normal chars.
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Mon, 13 Sep 2004 16:51:59 +0300, Rosen [EMAIL
On Mon, 13 Sep 2004 17:21:48 +0300, Rosen [EMAIL PROTECTED] wrote:
It will not work - Javascript function escape() return string as unicode
data - something like %u0431%u043E%u044F.
Well, normally I'd say urldecode() but I don't think it handles
unicode, so you may wanna check out the
I changed the JScript to encode data not as unicode - now it code data as
%20%2B%20.
But when I get data with $_REQUEST[var] - I loose symbol + - with code
%2B.
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Mon, 13 Sep 2004 17:21:48 +0300, Rosen [EMAIL PROTECTED]
101 - 200 of 420 matches
Mail list logo