Re: [PHP] url obfuscation

2006-07-13 Thread Dan McCullough
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

Re: [PHP] url obfuscation

2006-07-07 Thread Richard Lynch
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

Re: [PHP] url obfuscation

2006-07-07 Thread Richard Lynch
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

Re: [PHP] url obfuscation

2006-07-07 Thread Anas Mughal
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

[PHP] url obfuscation

2006-07-06 Thread Dan McCullough
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

Re: [PHP] url obfuscation

2006-07-06 Thread Anas Mughal
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

[PHP] URL Rewrite???

2006-06-13 Thread Keith
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

Re: [PHP] URL Rewrite???

2006-06-13 Thread Jochem Maas
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

Re: [PHP] PHP URL query

2006-05-11 Thread tedd
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 :

[PHP] PHP URL query

2006-05-10 Thread IraqiGeek
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

Re: [PHP] PHP URL query

2006-05-10 Thread Jason Gerfen
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

Re: [PHP] PHP URL query

2006-05-10 Thread Brad Bonkoski
?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

Re: [PHP] PHP URL query

2006-05-10 Thread Eric Butera
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

Re: [PHP] PHP URL query

2006-05-10 Thread Dave Goodchild
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

Re: [PHP] PHP URL query

2006-05-10 Thread John Nichel
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

Re: [PHP] PHP URL query

2006-05-10 Thread IraqiGeek
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

RE: [PHP] PHP URL query

2006-05-10 Thread Vedanta Barooah
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

Re: [PHP] PHP URL query

2006-05-10 Thread Jochem Maas
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

Re: [PHP] strange php url (CORRECTION)

2006-04-28 Thread Kevin Kinsey
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

Re: [PHP] strange php url

2006-04-24 Thread nicolas figaro
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.

Re: [PHP] strange php url

2006-04-24 Thread Ahmed Saad
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

Re: [PHP] strange php url

2006-04-24 Thread Richard Lynch
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

Re: [PHP] strange php url

2006-04-24 Thread Richard Lynch
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

[PHP] strange php url

2006-04-21 Thread nicolas figaro
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

Re: [PHP] strange php url

2006-04-21 Thread tg-php
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

Re: [PHP] strange php url

2006-04-21 Thread Kevin Kinsey
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

Re: [PHP] strange php url

2006-04-21 Thread Joe Wollard
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

Re: [PHP] strange php url

2006-04-21 Thread tg-php
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

Re: [PHP] strange php url

2006-04-21 Thread Joe Wollard
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

Re: [PHP] strange php url

2006-04-21 Thread tg-php
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:

Re: [PHP] strange php url

2006-04-21 Thread Richard Lynch
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

Re: [PHP] strange php url

2006-04-21 Thread Richard Lynch
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

[PHP] url of code pasted

2006-03-01 Thread Remember14a
Here is the url http://pastebin.com/579621

[PHP] URL output query

2006-02-27 Thread Chris
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 --

Re: [PHP] URL output query

2006-02-27 Thread Chris
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 ?

[PHP] URL problem

2006-02-17 Thread Jesús Alain Rodríguez Santos
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

RE: [PHP] URL problem

2006-02-17 Thread Shaunak Kashyap
. -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

Re: [PHP] URL - stream context

2006-01-20 Thread Jochem Maas
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

Re: [PHP] URL - stream context

2006-01-20 Thread Richard Lynch
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,

Re: [PHP] URL - stream context

2006-01-20 Thread Richard Lynch
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

Re: [PHP] URL - stream context

2006-01-19 Thread Jochem Maas
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 =

Re: [PHP] URL - stream context

2006-01-19 Thread Richard Lynch
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

Re: [PHP] URL - stream context

2006-01-19 Thread Geoff
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

Re: [PHP] URL - stream context

2006-01-19 Thread Richard Lynch
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

Re: [PHP] URL - stream context

2006-01-19 Thread Geoff
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

[PHP] URL - stream context

2006-01-18 Thread Richard Lynch
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

[PHP] url vs dirname(__FILE__)

2005-11-29 Thread Chris
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

Re: [PHP] url vs dirname(__FILE__)

2005-11-29 Thread Chris Shiflett
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

Re: [PHP] url query problem

2005-11-14 Thread Richard Lynch
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,

[PHP] url query problem

2005-11-11 Thread Imroz
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

Re: [PHP] url query problem

2005-11-11 Thread Minuk Choi
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.

[PHP] URL Referral Tracking with AIM

2005-09-27 Thread Mike Dunlop
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

Re: [PHP] URL Referral Tracking with AIM

2005-09-27 Thread tg-php
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

Re: [PHP] URL Referral Tracking with AIM

2005-09-27 Thread Mike Dunlop
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

Re: [PHP] url reload

2005-07-11 Thread Richard Lynch
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

[PHP] URL decode

2005-07-10 Thread Mario netMines
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

Re: [PHP] URL decode

2005-07-10 Thread Chris Shiflett
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

[PHP] url reload

2005-07-07 Thread timothy johnson
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

[PHP] url by mail

2005-06-04 Thread vlad georgescu
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 ?

Re: [PHP] url by mail

2005-06-04 Thread Mark Cain
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

[PHP] URL file-access disabled

2005-03-31 Thread Jackson Linux
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']))

Re: [PHP] URL file-access disabled

2005-03-31 Thread Marek Kilimajer
$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

Re: [PHP] URL file-access disabled

2005-03-31 Thread Jackson Linux
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

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Marek Kilimajer
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

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Roger Thomas
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

[PHP] URL restriction on XML file

2005-03-29 Thread Roger Thomas
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

[PHP] URL encode

2005-02-23 Thread Bruno Santos
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

Re: [PHP] URL encode

2005-02-23 Thread Jochem Maas
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

Re: [PHP] URL encode

2005-02-23 Thread Richard Lynch
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

[PHP] URL-funtion - returnvalue into variable...?

2005-01-12 Thread Wiberg
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

Re: [PHP] URL-funtion - returnvalue into variable...?

2005-01-12 Thread Zouari Fourat
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

Re: [PHP] URL-funtion - returnvalue into variable...?

2005-01-12 Thread Leif Gregory
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

[PHP] url rewritting in php5

2004-12-13 Thread elixon
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

Re: [PHP] Url encoding awry

2004-11-11 Thread Rick Fletcher
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

[PHP] Url encoding awry

2004-11-11 Thread ydragon
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

[PHP] URL thing

2004-11-03 Thread Kevin Javia
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

Re: [PHP] URL thing

2004-11-03 Thread Jason Wong
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

RE: [PHP] URL thing

2004-11-03 Thread Zareef Ahmed
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

Re: [PHP] URL thing

2004-11-03 Thread T.Lensselink
$_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

[PHP] URL variables, and the $_GET[xxx] function...

2004-10-21 Thread Tristan . Pretty
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

Re: [PHP] URL variables, and the $_GET[xxx] function...

2004-10-21 Thread Greg Donald
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

Re: [PHP] URL variables, and the $_GET[xxx] function...

2004-10-21 Thread R'twick Niceorgaw
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,

[PHP] url

2004-10-20 Thread Dan McCullough
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

Re: [PHP] url

2004-10-20 Thread John Nichel
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

RE: [PHP] url

2004-10-20 Thread Neal Carmine
, 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

Re: [PHP] url

2004-10-20 Thread Greg Donald
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

Re: [PHP] url

2004-10-20 Thread Mike Smith
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']))

Re: [PHP] url

2004-10-20 Thread Janet Valade
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

RE: [PHP] url

2004-10-20 Thread Zareef Ahmed
-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

[PHP] URL verification

2004-10-08 Thread Bruno Santos
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

Re: [PHP] URL verification

2004-10-08 Thread Matt M.
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

Re: [PHP] URL verification

2004-10-08 Thread Greg Donald
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

Re: [PHP] URL verification

2004-10-08 Thread Marek Kilimajer
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

RE: [PHP] URL verification

2004-10-08 Thread Justin Palmer
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

Re: [PHP] URL verification

2004-10-08 Thread Jordi Canals
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

[PHP] URL encode/decode problem

2004-09-13 Thread Rosen
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

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
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

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
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

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
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

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
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]

<    1   2   3   4   5   >