Re: [PHP] URL Rewriting

2013-06-02 Thread Tamara Temple
Daniel Brown wrote: > Studying archaeology now, Tam? ;-P Always been a huge fan. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL Rewriting

2013-06-02 Thread Daniel Brown
Studying archaeology now, Tam? ;-P On Sat, Jun 1, 2013 at 8:22 PM, Tamara Temple wrote: > Silvio Siefke wrote: >> On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: >> > > Has someone a Link with Tutorials or other Information? >> > >> > Not entirely sure what you're asking here

Re: [PHP] URL Rewriting

2013-06-01 Thread Tamara Temple
Silvio Siefke wrote: > On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: > > > Has someone a Link with Tutorials or other Information? > > > > Not entirely sure what you're asking here, or how you (or the > > nginx folks) expect it to relate to PHP. Do you mean that you want to > > u

Re: [PHP] URL Rewriting

2011-06-23 Thread Ashley Sheridan
Silvio Siefke wrote: >On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: >> > Has someone a Link with Tutorials or other Information? >> >> Not entirely sure what you're asking here, or how you (or the >> nginx folks) expect it to relate to PHP. Do you mean that you want >to >> use

Re: [PHP] URL Rewriting

2011-06-22 Thread Silvio Siefke
On Wed, 22 Jun 2011 23:32:10 +0200 Fatih P. wrote: > try > > RewriteEngine on > RewriteRule ^theme([0-9]+).php$ /index.php?theme=$1 [L] That is rule for Apache i think. I have nginx, and there i have try much rules but nothing want work. And on the list from nginx the maintainer write, i should

Re: [PHP] URL Rewriting

2011-06-22 Thread Silvio Siefke
On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: > > Has someone a Link with Tutorials or other Information? > > Not entirely sure what you're asking here, or how you (or the > nginx folks) expect it to relate to PHP. Do you mean that you want to > use PHP to have theme2.php act as i

Re: [PHP] URL Rewriting

2011-06-22 Thread Daniel P. Brown
On Wed, Jun 22, 2011 at 17:22, Silvio Siefke wrote: > Hello, > > is there a chance with php to use rewriting? > > Like Example: > > mysite.com/theme.php?id=1 to theme.php theme2.php etc. > > I have ask on the nginx list, but there they say i should use the power > language php. > > When i search i

Re: [PHP] URL Rewriting

2011-06-22 Thread Daniel Brown
On Wed, Jun 22, 2011 at 17:32, Fatih P. wrote: > try > > RewriteEngine on > RewriteRule ^theme([0-9]+).php$  /index.php?theme=$1 [L] That's neither nginx nor PHP, so it's not really relevant to the OP's questions. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailin

Re: [PHP] URL Rewriting

2011-06-22 Thread Fatih P.
try RewriteEngine on RewriteRule ^theme([0-9]+).php$ /index.php?theme=$1 [L] On Wed, Jun 22, 2011 at 11:22 PM, Silvio Siefke wrote: > Hello, > > is there a chance with php to use rewriting? > > Like Example: > > mysite.com/theme.php?id=1 to theme.php theme2.php etc. > > I have ask on the n

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

2002-09-23 Thread Jon Haworth
Hi Bill, > I've been using PHP for a couple of years now and only > recently (since upgrading to RH7.3) began to > experience an odd problem. When navigating around my > site or when I run HT://Dig across it the links are > suddenly being rewritten back as > http://my.dom.com/some_page?PHPSESSID