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 with

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 PROTECTED]

[PHP] URL String

2004-08-10 Thread Stephen Craton
Hello, I'm working on a site that cannot use PHP exactly, so I'm trying to work around that limitation with remotely hosted scripting by tricking the server into thinking the PHP content is actually javascript. I've been able to do this before, but this time I'm having a few issues. I need to be

[PHP] URL

2004-07-21 Thread Bruno Santos
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. 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 page.

RE: [PHP] URL

2004-07-21 Thread Robert Sossomon
SNIP -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. /SNIP

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]parameter2=$_GET[paramet er2]parameter3=$_GET[parameter3] etc... should also make sure to urlencode the data here is another thrread about it

[PHP] URL

2004-07-21 Thread Bruno Santos
Thx Robert. How could i miss that !! =:) by the way, is any function in PHP that i can use to capture the current URL thx Original Message Subject:RE: [PHP] URL Date: Wed, 21 Jul 2004 11:12:33 -0400 From: Robert Sossomon [EMAIL PROTECTED] To: [EMAIL

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

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 to another

[PHP] URL translation like mod_rewrite

2004-01-20 Thread Denzil Kruse
Hi all, 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. I don't know php and I'm looking over some php help files right now, but I found this list and was

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 enter a

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-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: ?php echo Ok,we are in tt.phpbr;

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: ?php echo Ok,we are in tt.phpbr; if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} print_r($_GET); print_r($_REQUEST);

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

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

2004-01-14 Thread Ryan A
Hi, I have a blog kind of app running on my site...presently it shows like this: show.php?category=Beginners%20Cornersid=1id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of tutorials on it, finally the one I understood and

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%20Cornersid=1id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of

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

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 values

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%20Cornersid=1id=1 and then if

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 simple values

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=poetrysid=$2id=$3 I even took out the space

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/(.*)/(.*)/(.*)

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=poetrysid=$2id=$3 I even took out the space which was in category.

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=poetrysid=1id=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 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=poetrysid=1id=2 you will see that its echoing that without a problem..so this is

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]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} and heres the output: No $_GET[id] No $_GET[sid] So the variables are not being passed Any idea why and what I

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]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} and heres the output: No $_GET[id] No $_GET[sid] So the

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.phpbr; if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} print_r($_GET); print_r($_GET['id']); print_r($_GET['sid']);

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 rule looks

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

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
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.phpbr;

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

2004-01-14 Thread Justin Patrin
RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2 -- paperCrane Justin Patrin -- 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
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=$1id=$2 Try:

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=$1id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2 The original ought to work just fine -- I have it working here. -- Jason Wong - Gremlins Associates -

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=$1b=$2c=$3 What version of Apache/PHP are you using?

[PHP] URL regex

2003-12-19 Thread Evan Nemerson
Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- Truth, like gold, is to be obtained not by its growth, but by washing away from it all that is not gold. -Leo Nikolaevich Tolstoy -- PHP

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]

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

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 the

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 forms

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

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 passed in

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

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: I

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

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

2003-12-10 Thread Peter Walter
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 forms and links to include the session identifier. My php pages

[PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
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 SQL statement up with a limit and add some Previous, Next commands,

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 SQL

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 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 current query

[PHP] URL variables parsing error?

2003-09-18 Thread hiaer
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=value1var2=value2 and this is my index.php ?php echo var1: $var1 ; echo var2: $var2 ; phpinfo(); ? Output of this page is without

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=value1var2=value2 and this is my index.php ?php echo var1: $var1 ; echo var2: $var2 ;

RE: [PHP] URL variables parsing error?

2003-09-18 Thread Jay Blanchard
[snip] and this is my index.php ?php echo var1: $var1 ; echo var2: $var2 ; phpinfo(); ? 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

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

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

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

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

2003-07-19 Thread Justin French
is considered invalid; } ? There's also plenty more here: http://www.google.com/search?q=PHP+URL+validationie=UTF-8oe=UTF-8 Seriously, I know it's great to learn everything from scratch, but the wheel has already been invented... you just need to make sure it's the right kind of wheel for your needs

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($host,

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

2003-07-18 Thread -{ Rene Brehmer }-
Hi gang Finally I've got the time to finish up my guestbook script ... so little left that I can actually see the light at the end of the tunnel now.. The guestbook data is stored in a text file. When opening the guestbook, this file is parsed and the named fields are used to construct

[PHP] URL problem

2003-07-07 Thread Sparky Kopetzky
Hi! I'm passing this url to the script: http://www.fttta.com/auction.php 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

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

[PHP] Url problem

2003-06-12 Thread Sparky Kopetzky
OK. I'm suffering from brain gas... 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 instantiate non-existent

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

[PHP] url rewrite

2003-03-28 Thread Sebastian
hello, i am not sure where to post this question, since it's partly related to PHP, so i'll ask here. I'd like to rewrite a url that looks like this: /news/articles/article.php?id=255 into /news/articles/255/ any help is appreciated. cheers, - Sebastian

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/ --

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 post

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] mailto:[EMAIL PROTECTED] Ask google or ask the archives. | On Friday 28 March 2003 16:38, Sebastian

[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:

[PHP] PHP url variables

2003-03-13 Thread Stephen
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'] Is there a setting I need to change to allow me to use the $id? If there is it will save a lot of additional coding. Thanks,

[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'] Is there a

[PHP] URL of calling page

2003-02-16 Thread acleave
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)? What I mean is if I click on a link on index.html to jeremiah.php I can call the function and find out

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 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 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 use

[PHP] Threads in PHP? URL call from PHp?

2003-02-14 Thread Steve Vernon
Hiya, Perhaps I don't mean threads! Basically I have a PHP script which is in a website, and runs when a certain input is recieved and it is quite complicated, and may take quite a time to finish, as it will be sending quite a few emails. The emails do not have to be sent straight away,

[PHP] [url] to html

2003-01-24 Thread Niels Uhlendorf
hi, how to chang [url=%link%]%descr%[/url] in a href=%link%%descr%/a thx 4 help. Niels -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 a href=%link%%descr%/a thx 4 help. Niels -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to

RE: [PHP] [url] to html

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

Re: [PHP] URL path problems

2002-12-20 Thread ªüYam
-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 http://abc.com There is a administration directory in my wwwroot which is used to store

[PHP] URL path problems

2002-12-19 Thread ªüYam
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:

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 http

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:

[PHP] URL parsing

2002-12-18 Thread Mako Shark
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 docs on parse_url(), and have tried to get $http_referer[user], but it comes up with zilch. I've

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

Re: [PHP] URL parsing

2002-12-18 Thread Tim Ward
: Wednesday, December 18, 2002 2:39 PM Subject: [PHP] URL parsing 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 docs on parse_url

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

[PHP] URL field receiving Array for others

2002-12-16 Thread rw
Hello All! I have a script which inserts a users info into mysql via PHP. Here is the code which does so: $sql = (INSERT INTO `business` (`id`, `bt_id`, `bus_name`, `bcity`, `phone`, `cell`, `email`, `url`, `details`, `duration`, `s_id`, `license`, `datime`,

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 16, 2002 11:50 AM Subject: [PHP] URL field receiving Array for others Hello All! I have a script which inserts a users info into mysql via PHP. Here is the code which does so: $sql = (INSERT INTO `business` (`id`, `bt_id

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread rw
'. ### 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: [EMAIL PROTECTED] ### To: [EMAIL PROTECTED] ### Sent: Monday, December 16, 2002 11:50 AM ### Subject: [PHP] URL field receiving

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 receiving Array for others But what could the user

[PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
I'm trying to pass a URL as a var in a URL: The url var should equal: http://www.someothersite.com/index.php?something=somethingx=100y=200 And I'm passing it to this URL: http://www.somesite.com/index.php?var=val So if I use:

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

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

[PHP] URL hiding

2002-11-26 Thread Kris
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=KrispassWd=1234 How can I hide this so it's just www.whatever.com/index.php or even better just www.whatever.com thanks Kris

Re: [PHP] URL hiding

2002-11-26 Thread Marco Tabini
If index.php is the index page of your website, then you do not need to specify it at all. i.e. www.whatever.com/index.php?uName=Kris is functionally equivalent to www.whatever.com?uName=Kris A way to get rid of the variables passed in the query string is to use POST instead of GET as the

Re: [PHP] URL hiding

2002-11-26 Thread Kris
help Kris - Original Message - From: Marco Tabini [EMAIL PROTECTED] To: Kris [EMAIL PROTECTED] Cc: PHP-General [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 9:12 AM Subject: Re: [PHP] URL hiding If index.php is the index page of your website, then you do not need to specify

<    1   2   3   4   5   >