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 th

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

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=12&var2=hello+world";, I want > to store it in any variable in my code. > > $

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 is "htt

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=12&var2=hello+world";, I want > to store it in any variable in my code. print_r($_SERVER) and pick the one most suitable. -- Jaso

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

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'

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 yourself

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 HTML THis code no longer seems to

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 to On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McC

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 t

RE: [PHP] url

2004-10-20 Thread Neal Carmine
register_globals is most likely turned off on the new server (as it should be). do a phpinfo() to see. Or change the code to to use the super global arrays. neal -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 11:08 AM To: PHP Gener

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 HTML THis code no longer seems to

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 o

RE: [PHP] URL verification

2004-10-08 Thread Justin Palmer
>how can i check in the page if the user is accessing the the site via SSL ?? if(!$_server['https']) { //redirect to secure page. } There are probably better ways, maybe through apache, but I think that will work. -Justin -Original Message- From: Bruno Santos [mailto:[EMAIL PROT

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 i

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 C

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 $_SERVER['SERV

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
The sending form works with JavaScript. When enter on some field combination "+ " plus sign and space - JScript encode it - I see it with alert - "%2B%20" , but when new window opens on url bar shows "+%20" - thath means space only. "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 18:35:58 +0300, Rosen <[EMAIL PROTECTED]> wrote: > 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". Can you change it back before you decode it? Maybe

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

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 mu

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, R

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. > Th

Re: [PHP] URL

2004-07-21 Thread zareef ahmed
Hi You can user $_SERVER['REQUEST_URI']; Thanks Zareef Ahmed --- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Bruno Santos wrote: > > > Im developing a couple of pages and i need to do > some redirecting to > > another page depending > > on the choice of a user. > > The problem is, to go t

Re: [PHP] URL

2004-07-21 Thread John W. Holmes
Bruno Santos wrote: Im developing a couple of pages and i need to do some redirecting to another page depending on the choice of a user. The problem is, to go to another page, i need to send some parameters in the URL that are alredy present, but i need to make the redirecting independent of the

Re: [PHP] URL

2004-07-21 Thread Matt M.
> Since you are getting the information from the page anyways, just simply > do: > > $_SERVER[PHP_SELF]?parameter1=$_GET[parameter1]¶meter2=$_GET[paramet > er2]¶meter3=$_GET[parameter3] etc... should also make sure to urlencode the data here is another thrread about it http://marc.theaimsgroup.

RE: [PHP] URL

2004-07-21 Thread Robert Sossomon
-Original Message- From: Bruno Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] URL Hello All. Im developing a couple of pages and i need to do some redirecting to another page depending on the choice of a user. Since you a

Re: [PHP] URL translation like mod_rewrite

2004-01-20 Thread Chris Shiflett
--- Denzil Kruse <[EMAIL PROTECTED]> wrote: > My hosting company won't let me use rewrite rules in my Apache > configuration files, and told me to use "the php header() functions > and a .htaccess file" instead of the rewrite rules. [snip] > What I want to do is have a visitor to my web site ente

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Ryan A
Hey Justin, Ok, tried this with differient tests and directives for the past 2 days, on 3 differient servers, on 5 differient domains. I updated the directives more times than I care to remember and restarted apache so many times I dont think it knows if its coming or goingbut you sir...are a

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Justin French
On Friday, January 16, 2004, at 11:04 AM, Ryan A wrote: RewriteEngine On Options +FollowSymlinks RewriteRule ^tt/(.*).php tt.php?id=$1 This is my php page: "; if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No \$_GET[id]";} print_r($_GET); print_r($_REQUEST); print_r($_GET['id']); ?> Rya

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Ryan A
Hey, Thanks for replying. Globals are on heres my phpinfo page: http://cheap-php-web-hosting.com/phpinfo.php this is my .htaccess file: RewriteEngine On Options +FollowSymlinks RewriteRule ^tt/(.*).php tt.php?id=$1 This is my php page: "; if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{e

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Peter Vertes
I had the same problem with PHP after I've upgraded to 4.3.3 from 4.3.1.  I was tearing my hair out but couldn't figure out what was wrong.  I ended up editing my php.ini file and turning REGISTER GLOBALS = On.  It works fine now and since this is on my development box I don't really care about

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:42, Ryan A wrote: > Nope, does not work. > > Looks like I got a problem that finally stumped the whole listlucky me This works fine for me: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?a=$1&b=$2&c=$3 What version of Apache/PHP are you us

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:28, Justin Patrin wrote: > > RewriteEngine On > > RewriteRule ^show/(.*)/(.*) /show.php?sid=$1&id=$2 > > Try: > RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1&id=$2 The original ought to work just fine -- I have it working here. -- Jason Wong -> Gremlins Associ

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. Nope, does not work. Looks like I got a problem that finally stumped the whole listlucky me :-p Cheers, -Ryan On 1/15/2004 2:28:33 AM, Justin Patrin ([EMAIL PROTECTED]) wrote: > > RewriteEngine On > > RewriteRule ^show/(.*)/(.*) /show.php?sid=$1&id=$2 > > Try: > Re

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Justin Patrin
RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1&id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1&id=$2 -- paperCrane -- Question Everything, Reject Nothing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi again, I did a little pokeing around and installed this on 3 differient serversand the results were identical... so its not the servers fault but something with the directives... got some interesting results with my testing am using this: echo "Ok,we are in show.php"; if(isset($_GET["i

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Matt Matijevich
I am a little late but I have used the method described on a list apart http://www.alistapart.com/articles/succeed/ and it works really well. You might want to give it a try, I think it works a little bit different than the way you are trying. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, At least you remember what it used to look like, I dont! Soo many modificatios in both .htaccess and httpd.conf and restarts...have just lost track. Will try your example one at a time and see what happens. Thanks again. Cheers, -Ryan > Seems like you are getting closer. You are going to t

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 15:11, Ryan A wrote: [snip] > and heres the output: > > Ok,we are in show.php > No $_GET[id] > No $_GET[sid] > Array ( ) > > > Ideas? Seems like you are getting closer. You are going to the right place, but none of your variables are making it. I am not sure what your ru

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Oops sorry, missed that. Heres whats on top of the page: echo "Ok,we are in show.php"; if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No \$_GET[id]";} if(isset($_GET["sid"])){echo "Got \$_GET[sid]";}else{echo "No \$_GET[sid]";} print_r($_GET); print_r($_GET['id']); print_r($_GET['sid'])

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 05:01, Ryan A wrote: > I put this in for testing: > > if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No > \$_GET[id]";} > if(isset($_GET["sid"])){echo "Got \$_GET[sid]";}else{echo "No > \$_GET[sid]";} > > and heres the output: > No $_GET[id] > No $_GET[sid] >

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, I put this in for testing: if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No \$_GET[id]";} if(isset($_GET["sid"])){echo "Got \$_GET[sid]";}else{echo "No \$_GET[sid]";} and heres the output: No $_GET[id] No $_GET[sid] So the variables are not being passed Any idea why and what

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 13:14, Ryan A wrote: > Hey, > Ok, have added "echo "Ok,we are in show.php";" and if you go to > http://rizkhan.net/articles/show/category/1/2 or > http://rizkhan.net/articles/show.php?category=poetry&sid=1&id=2 > > you will see that its echoing that without a problem..so

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Ok, have added "echo "Ok,we are in show.php";" and if you go to http://rizkhan.net/articles/show/category/1/2 or http://rizkhan.net/articles/show.php?category=poetry&sid=1&id=2 you will see that its echoing that without a problem..so this is partly working. now what to do about the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
[snip] > > I took out the .php part...and even tried it with [L] tacked to the end of > the second linenot working > Heres how my .htaccess looks now: > > RewriteEngine On > RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetry&sid=$2&id=$3 > > I even took out the space which was in cat

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 12:41, Ryan A wrote: > Hey Jason, Brad, > Thanks for replying. > > I took out the .php part...and even tried it with [L] tacked to the end of > the second linenot working > Heres how my .htaccess looks now: > > RewriteEngine On > RewriteRule ^show/(.*)/(.*)/(.*) /show.ph

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetry&sid=$2&id=$3 I even took out the space whi

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
> On Thursday 15 January 2004 02:44, Ryan A wrote: > >> It seems to be partly working. >> >> /* >> How isn't it working? What happens? I would try one variable first, get >> that working, then add the others. Also, I am not sure how it will >> handle the space in "Beginners Corner". Try passing s

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:44, Ryan A wrote: [snip] > Its a bit hard to explain what happens so see for yourself: > Heres the index page: > http://www.rizkhan.net/articles/articles.php > Heres the actual page: > http://www.rizkhan.net/articles/show.php?category=Beginners%20Corner&sid=1&id=1 > and t

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 02:44, Ryan A wrote: > It seems to be partly working. > > /* > How isn't it working? What happens? I would try one variable first, get > that working, then add the others. Also, I am not sure how it will > handle the space in "Beginners Corner". Try passing simple value

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in "Beginners Corner". Try passing simple values first. */ Its a bit hard to expl

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:14, Ryan A wrote: > Hi, > I have a blog kind of app running on my site...presently it shows like this: > show.php?category=Beginners%20Corner&sid=1&id=1 > > After searching on google on how to make my blog my search engine friendly I > came accorss > mod_rewrite and couple

Re: [PHP] URL regex

2003-12-19 Thread Rolf Brusletto
Evan Nemerson wrote: On Friday 19 December 2003 11:22 am, Evan Nemerson wrote: Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. Okay finally found this: http://www.regexp.org/msg.php?uid=512 wow. Seriously- wow. -- Evan Nemerson [EMAIL PROTECTED]

Re: [PHP] URL regex

2003-12-19 Thread Evan Nemerson
On Friday 19 December 2003 11:22 am, Evan Nemerson wrote: > Hey does anyone have a good regex laying around for URLs? ereg or preg, > doesn't matter. Okay finally found this: http://www.regexp.org/msg.php?uid=512 wow. Seriously- wow. > > > > -- > Evan Nemerson > [EMAIL PROTECTED] > http://coeusg

Re: [PHP] url rewriting within sessions - confused newbie needs help - [FIXED]

2003-12-14 Thread Peter Walter
I finally discovered the problem. There was extra whitespace after the php closing tag ?> that was being interpreted as part of the header. Removing the whitespace fixed the problem. Peter Peter Walter wrote: Mike, I hope you mean session_start(). Yes, I did. Getting a bit dyslexic nowadays.

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-12 Thread Ford, Mike [LSS]
On 11 December 2003 19:58, Peter Walter wrote: > I hope you mean session_start(). > > Yes, I did. Getting a bit dyslexic nowadays. > > > Well, you would, because PHP would use the value from the PHPSESSID= > URL parameter. > > ... except that on the second call, the url (as displayed by > th

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
Mike, I hope you mean session_start(). Yes, I did. Getting a bit dyslexic nowadays. Well, you would, because PHP would use the value from the PHPSESSID= URL parameter. ... except that on the second call, the url (as displayed by the browser) does not contain the PHPSESSID parameter, yet I am

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 18:01, Peter Walter wrote: > Mike, > > Thanks for the additional explanation, and I understand the > sequence of events as you described. However, please bear > with me a bit - the results I am getting do not quite match > your explanation. Let me clarify what I am doing: >

Re: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Peter Walter
Mike, Thanks for the additional explanation, and I understand the sequence of events as you described. However, please bear with me a bit - the results I am getting do not quite match your explanation. Let me clarify what I am doing: I have a page (index.php) which starts out by calling start

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 16:54, Peter Walter wrote: > Jason, > > Thanks for your help. It is a little clearer to me now. > However, I have > visited php sites that *claim* to be using session management > but where > the links do not have the session id appended, and there are no > variables being pas

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
Jason, Thanks for your help. It is a little clearer to me now. However, I have visited php sites that *claim* to be using session management but where the links do not have the session id appended, and there are no variables being passed in the url for links. The url is always in the form "www

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Jason Wong
On Thursday 11 December 2003 14:16, Peter Walter wrote: > From the book "Core PHP programming", 3ed ; > > "As stated earlier, PHP sends session identifiers with cookies, but a > browser may refuse them. PHP can detect when a browser does not accept > cookies, and in this situation it modifies all

Re: [PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Thanks! "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > > Is there a way to preserve URL variables and have a link simply add > > a new variable to the end? > > Sure, just use $_SERVER['QUERY_STRING'], which is the c

Re: [PHP] URL Variables

2003-10-28 Thread Chris Shiflett
--- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > Is there a way to preserve URL variables and have a link simply add > a new variable to the end? Sure, just use $_SERVER['QUERY_STRING'], which is the current query string, and append whatever new URL variables you want. Chris = My Blog

RE: [PHP] URL Variables

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:57 AM Jed R. Brubaker wrote: > Is there a way to preserve URL variables and have a link simply add a new > variable to the end? > I am tabulating data and I have URL variables defining which dataset to > view and in what way to view it. I would now like to set the S

RE: [PHP] URL variables parsing error?

2003-09-18 Thread Jay Blanchard
[snip] and this is my index.php Output of this page is without expansion of my variables var1, var2 at section "echo" but phpinfo expand this: _GET["var1"]value1 _GET["var2"]value2 [/snip] This is not an error. Register globals is off (which is a Good Thing TM). var1 and var2 are in t

Re: [PHP] URL variables parsing error?

2003-09-18 Thread - Edwin -
Hi, [EMAIL PROTECTED] wrote: > Hi all, > > I use RedHat9.0 with Apache 2.0.40 & PHP 4.2.2 > and I have problem with parsing URL variables... > > I use this URL: http://my.domain.mine/index.php?var1=value1&var2=value2 > > and this is my index.php > >echo "var1: $var1" ; > echo "var2: $va

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > btw, the above code is copyrighted so dont use it. Sorry, i shouldn't and try and make jokes in the furture... I was a little tired last night and kinda needed to lighten up my email a little (but it backfired on me).. Again, sorry for the con

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Mike Morton
Tell me Curt, where is it copyrighted? US/Canada/Worldwide? Where is it registered? What do you intended to do to protect your copyright? What makes this code unique that it can be copyrighted to you? Do you understand copyrighting and intellectual property? You just made that code public on

RE: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Randum Ian
And even if it is copyrighted as soon as you change variable names and so on that copyright does not apply. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: 20 July 2003 14:00 To: Curt Zirzow Cc: php Subject: Re: [PHP] URL correctimizer ... how to make one? On

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Justin French
On Sunday, July 20, 2003, at 03:26 PM, Curt Zirzow wrote: I know this isn't your code but... yes, it wasn't mine, but i should have checked it out more thoroughly regardless. btw, the above code is copyrighted so dont use it. *sigh*... so why contribute it to the list? Just to prove your skil

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Curt Zirzow
I know this isn't your code but... * Thus wrote Justin French ([EMAIL PROTECTED]): > [...] > > // test the URL > // it's important that you dont put http:// or it will not work > // the 2nd paramater is how long to test the URL b4 timing out > $found = fsockopen($url, 10); $found = fsockopen($ho

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Justin French
I think you should attempt to detect a VALID url, rather than attempting to correct human errors. You're guaranteed not to think of every possible mistake, so IMHO, you're approaching it the wrong way. Put the responsibility back on the user to write a valid URL, and alert them to invalid URLs

Re: [PHP] URL problem

2003-07-07 Thread Brad Pauly
Sparky Kopetzky wrote: and intercepting it with: if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); } However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so this should work. Anyone know why this doesn't work?? Yes. You are using an assignment operator where you

Re: [PHP] Url problem

2003-06-12 Thread Jason Wong
On Friday 13 June 2003 04:55, Sparky Kopetzky wrote: > I'm trying this, it doesn't work and I can't figure out why: > > include_once $SYSTEM_URL . "/classes/category.php"; where $SYSTEM_URL = > "http://www.example.com"; is the url to the web site. and I get this error: > > Fatal error: Cannot

Re: [PHP] url rewrite

2003-03-28 Thread Chris Hewitt
Sebastian wrote: if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Seb

Re: [PHP] url rewrite

2003-03-28 Thread Sebastian
if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Sebastian wrote: | | > i am not sure where to po

Re: [PHP] url rewrite

2003-03-28 Thread Jason Wong
On Friday 28 March 2003 16:38, Sebastian wrote: > i am not sure where to post this question, since it's partly related to > PHP, so i'll ask here. Ask google or ask the archives. > I'd like to rewrite a url > that looks like this: /news/articles/article.php?id=255 > > into /news/articles/255/ -

[PHP] Re: PHP url variables

2003-03-14 Thread Cranky Kong
Have a look at the parameter register_global in your php.ini By default in the recent version of PHP, this parameter is set by default to off for security reason. So if you want to use $id, you just have to set this parameter to on "Stephen" <[EMAIL PROTECTED]> a écrit dans le message de news: [E

[PHP] Re: PHP url variables

2003-03-13 Thread Ron Rudman
Try: parse_str( $_SERVER['QUERY_STRING']); "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I have just installed PHP 4 and Apache 2 but when I pass a variable in a url > eg ?id=1 > I can't get the variable value by $id, I have to use $_GET['id'] or > $_POST['id'] > >

Re: [PHP] URL of calling page

2003-02-16 Thread Justin French
on 17/02/03 9:25 AM, Kevin Waterson ([EMAIL PROTECTED]) wrote: > This one time, at band camp, > acleave <[EMAIL PROTECTED]> wrote: > >> I believe there's a way in PHP to get the URL of the page that called the >> current page but can't find it. Is there such a function? Or would I have >> to >

Re: [PHP] URL of calling page

2003-02-16 Thread Kevin Waterson
This one time, at band camp, acleave <[EMAIL PROTECTED]> wrote: > I believe there's a way in PHP to get the URL of the page that called the > current page but can't find it. Is there such a function? Or would I have to > use another script (like Javascript)? $_SERVER['HTTP_REFERER'] Kevin -

Re: [PHP] URL of calling page

2003-02-16 Thread Ernest E Vogelsinger
At 22:58 16.02.2003, acleave said: [snip] >I believe there's a way in PHP to get the URL of the page that called the >current page but can't find it. Is there such a function? Or would I >have to >use another script (like Javascript)?

RE: [PHP] [url] to html

2003-01-24 Thread John W. Holmes
> how to chang [url=%link%]%descr%[/url] in %descr% $new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","$2",$old_str); should work... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (h

Re: [PHP] [url] to html

2003-01-24 Thread Leif K-Brooks
Take a look at my BBCode class, http://www.phpclasses.org/browse.html/package/951.html. Niels Uhlendorf wrote: hi, how to chang [url=%link%]%descr%[/url] in %descr% thx 4 help. Niels -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

Re: [PHP] URL path problems

2002-12-20 Thread ªüYam
Thx for your help, butis there any instructions that let me follow? I'm not familiar with those settings, thx a lot "Peter Houchin" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] > if ur using apache using .htaccess in the directory .. and you can also set > it in the httpd.conf > > > --

Re: [PHP] URL path problems

2002-12-19 Thread Wee Keat
> Suppose my web domain is http://abc.com > There is a administration directory in my wwwroot which is used to store the > administrative control pages. > > However, from now on, everyone can access the administrative pages through > the addictive path to the domain such as: > http://abc.com/admini

RE: [PHP] URL path problems

2002-12-19 Thread Peter Houchin
if ur using apache using .htaccess in the directory .. and you can also set it in the httpd.conf > -Original Message- > From: ªüYam [mailto:[EMAIL PROTECTED]] > Sent: Friday, 20 December 2002 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] URL path problems > > > Suppose my web domain is

Re: [PHP] URL parsing

2002-12-18 Thread 1LT John W. Holmes
> http://www.php.net/manual/en/function.parse-url.php If you're going to help, at least read the question. The poster already said they tried that and it's not even a solution, anyhow. The "username" it refers to in parse_url() is for URLs in the format of http://username:[EMAIL PROTECTED]. > >ht

Re: [PHP] URL parsing

2002-12-18 Thread Tim Ward
you could use a combination of the string functions (strstr(), substr(), strpos()) or you could work out something with regular expressions. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Mako Shark <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] URL parsing

2002-12-18 Thread Wico de Leeuw
http://www.php.net/manual/en/function.parse-url.php At 06:39 18-12-02 -0800, Mako Shark wrote: I've got a URL like this: http://www.naturalist.com/~fungae/index.php which is stored in $http_referer (as parse_url from $HTTP_REFERER). I'm trying to extract the username (~fungae). I've read the do

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
I don't know. You need to show your code. - Original Message - From: <[EMAIL PROTECTED]> To: "Joseph W. Goff" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Monday, December 16, 2002 12:01 PM Subject: Re: [PHP] URL field receivin

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread rw
But what could the user be typing into the field to return an array? I'm completely at a loss. Quoting "Joseph W. Goff" <[EMAIL PROTECTED]>: ### Whatever variable that is suppose to contain the URL is an array. If you ### try to print a variable that is an array the value you get is 'Array'.

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
Whatever variable that is suppose to contain the URL is an array. If you try to print a variable that is an array the value you get is 'Array'. You will either have to step through it, or implode it, or something of that nature to get what the array contains. - Original Message - From: <[

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
Great thanks! Since I'm doing this from an anchor or in the browser location bar, I just replaced the & in the url var with %26. Works great! -Shawn "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.php.net/manual/en/function.urlencode.php

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Adam Voigt
http://www.php.net/manual/en/function.urlencode.php Pass it through that function (or one of the others) on: http://www.php.net/manual/en/ref.url.php On Tue, 2002-12-03 at 12:01, Shawn McKenzie wrote: I'm trying to pass a URL as a var in a URL: The url var s

Re: [PHP] URL hiding

2002-11-26 Thread John Nichel
Have you index.php page as a frameset, and load all pages into the frameset. No matter where the user is on your site, they'll just see http://www.whatever.com Kris wrote: Hi When I pass variables to a new page in the address bare of the browser it looks like www.whatever.com/index.php?uName=

Re: [PHP] URL hiding

2002-11-26 Thread Bob Irwin
gt; Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 10:39 AM Subject: Re: [PHP] URL hiding > I already use POST as the form method. > I know > www.whatever.com/index.php?uName=Kris can be the same as > www.whatever.com?uName=Kris > > I just

<    1   2   3   >