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 string being split

2012-04-27 Thread Chris Stinemetz
On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie wrote: > On 04/27/2012 10:56 AM, Chris Stinemetz wrote: >> I still haven't been able to find a solution. Is there anyone out >> there that knows how to keep the query string intact? >> >> Thank you, >> >> Chris > > urlencode($storerow['store_subject

Re: [PHP] url string being split

2012-04-27 Thread Tim Streater
On 27 Apr 2012 at 16:56, Chris Stinemetz wrote: > On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas wrote: >> On 26 Apr 2012, at 18:37, Jim Giner wrote: >> >>> I"m no expert, but why would you expose a query to the world thru the use of >>> a GET?  Why not just collect the params and build the st

Re: [PHP] url string being split

2012-04-27 Thread Shawn McKenzie
On 04/27/2012 10:56 AM, Chris Stinemetz wrote: > I still haven't been able to find a solution. Is there anyone out > there that knows how to keep the query string intact? > > Thank you, > > Chris urlencode($storerow['store_subject']) -- Thanks! -Shawn http://www.spidean.com -- PHP General Ma

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas wrote: > On 26 Apr 2012, at 18:37, Jim Giner wrote: > >> I"m no expert, but why would you expose a query to the world thru the use of >> a GET?  Why not just collect the params and build the string in your code? >> That is how people hack into your d

Re: [PHP] url string being split

2012-04-26 Thread Stuart Dallas
On 26 Apr 2012, at 18:37, Jim Giner wrote: > I"m no expert, but why would you expose a query to the world thru the use of > a GET? Why not just collect the params and build the string in your code? > That is how people hack into your database - via a re-formed query. You're > giving someone a

Re: [PHP] url string being split

2012-04-26 Thread Jim Giner
I"m no expert, but why would you expose a query to the world thru the use of a GET? Why not just collect the params and build the string in your code? That is how people hack into your database - via a re-formed query. You're giving someone an open invitation. -- PHP General Mailing List

Re: [PHP] url string being split

2012-04-26 Thread Vikash Kumar
On 26 April 2012 22:27, Chris Stinemetz wrote: > Hello list, > > I'm trying to pass a query string through $_GET but for some reason > the array is being split on '&'. How may I avoid this so it stays > intacted? > > user selection portion: > > while($storerow = mysql_fetch_assoc($storesresult))

[PHP] url string being split

2012-04-26 Thread Chris Stinemetz
Hello list, I'm trying to pass a query string through $_GET but for some reason the array is being split on '&'. How may I avoid this so it stays intacted? user selection portion: while($storerow = mysql_fetch_assoc($storesresult)) echo '' . $storerow['store_subject'] . ' at ' . date('m-d-Y h:i:

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

[PHP] URL Rewriting

2011-06-22 Thread Silvio Siefke
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 in google for Examples or Tutorials i only found mod_rewriting. Has

Re: [PHP] URL injection

2009-06-10 Thread Simon
> https://www.xxx.co.uk/register.php";| grep "123" I wonder what kind of browser could make this, probably a hacker-made one! This URL will have to be translated into its equivalent URI, if using GET the HTTP message's start line would look like: GET /register.php"| grep "123" HTTP/1.1 First of

Re: [PHP] URL injection

2009-06-04 Thread Matty Sarro
Is there more to the register.php file that we're not seeing? It has to have some sort of action... On Thu, Jun 4, 2009 at 3:28 PM, Stuart wrote: > 2009/6/4 Morris : > > Hi > > > > The register.php has only a form > > > > > > > > > > > > > ?> > > > > Does this help ? > > 1) That is not vali

Re: [PHP] URL injection

2009-06-04 Thread Stuart
2009/6/4 Morris : > Hi > > The register.php has only a form > > > > > > ?> > > Does this help ? 1) That is not valid PHP code. 2) Even if it were there's nothing in there that would be exploitable through the URL you sent in your first email. -Stuart -- http://stut.net/ > 2009/6/4 Stuart

Re: [PHP] URL injection

2009-06-04 Thread Morris
Hi The register.php has only a form ?> Does this help ? Thanks for reply 2009/6/4 Stuart > 2009/6/4 Morris : > > Hi > > > > Can anyone help me handel this URL injection ? > > > > https://www.xxx.co.uk/register.php";| grep "123" > > > > I want to detect it and header back to my index pag

Re: [PHP] URL injection

2009-06-04 Thread Stuart
2009/6/4 Morris : > Hi > > Can anyone help me handel this URL injection ? > > https://www.xxx.co.uk/register.php";| grep "123" > > I want to detect it and header back to my index page. > > It's quite urgent What the smeg is register.php doing that makes it execute that?? Show us the code. -Stuart

[PHP] URL injection

2009-06-04 Thread Morris
Hi Can anyone help me handel this URL injection ? https://www.xxx.co.uk/register.php";| grep "123" I want to detect it and header back to my index page. It's quite urgent Thanks for help M.

SV: [PHP] URL data decoding problem

2009-04-21 Thread Anders Norrbring
> On Tue, 2009-04-21 at 08:39 +0200, Anders Norrbring wrote: > > I'm working on a PayPal IPN module, and PayPal returns a lot of data > in a > > GET call. > > The problem is that international characters entered by a user on the > PayPal > > site gets encoded really weird, and I don't see an obviou

Re: [PHP] URL data decoding problem

2009-04-20 Thread Ashley Sheridan
On Tue, 2009-04-21 at 08:39 +0200, Anders Norrbring wrote: > I'm working on a PayPal IPN module, and PayPal returns a lot of data in a > GET call. > The problem is that international characters entered by a user on the PayPal > site gets encoded really weird, and I don't see an obvious way to decod

[PHP] URL data decoding problem

2009-04-20 Thread Anders Norrbring
I'm working on a PayPal IPN module, and PayPal returns a lot of data in a GET call. The problem is that international characters entered by a user on the PayPal site gets encoded really weird, and I don't see an obvious way to decode them, can someone please assist? My website is running utf-8 all

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 3:59 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > > However, Don's question was of the kind that is easily overlooked on the > apache list, where topics tend to be a little less basic. I tend to > think that basic apache/php questions are sometimes better asked here, > even

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Per Jessen
Daniel Brown wrote: > Per's answer is probably exactly what you're looking for, Don. > Keep in mind, though, that this isn't a PHP question. Future > questions of this nature would be better suited for the Apache list. Couldn't agree more. > You may find sometimes that asking a question on the

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 6:00 AM, Don Don <[EMAIL PROTECTED]> wrote: > Hi all, > > I've set up a url rewrite code below. > > Options +FollowSymLinks > RewriteEngine on > > RewriteRule profile/username/(.*) profile.php?username=$1 > > It only works when I type in this url > http://www.example.com/pr

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Per Jessen
Don Don wrote: > Hi Per, > changed the rewrite to this > > Options +FollowSymLinks > RewriteEngine on > > RewriteRule profile/username/(.*) profile.php?username=$1 [r] > > but sill does not work the way i want. Entering this url > http://example.com/profiles/profile.php?username=baller does n

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Raman .
Hi!! For Internal redirection: RewriteRule profile/username/([^/]+) profile.php?username=$1 [PT] On Fri, Jul 25, 2008 at 3:00 AM, Don Don <[EMAIL PROTECTED]> wrote: > Hi all, > > I've set up a url rewrite code below. > > Options +FollowSymLinks > RewriteEngine on > > RewriteRule profile/username

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Don Don
/profiles/profile/username/baller --- On Fri, 7/25/08, Per Jessen <[EMAIL PROTECTED]> wrote: > From: Per Jessen <[EMAIL PROTECTED]> > Subject: Re: [PHP] URL Rewrite not working for me > To: php-general@lists.php.net > Date: Friday, July 25, 2008, 3:15 AM > Don Don wrote: &

Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Per Jessen
Don Don wrote: > Hi all, > > I've set up a url rewrite code below. > > Options +FollowSymLinks > RewriteEngine on > > RewriteRule profile/username/(.*) profile.php?username=$1 > > It only works when I type in this url > http://www.example.com/profiles/profile/username/baller/ > > If i do not

[PHP] URL Rewrite not working for me

2008-07-25 Thread Don Don
Hi all, I've set up a url rewrite code below. Options +FollowSymLinks RewriteEngine on RewriteRule profile/username/(.*) profile.php?username=$1 It only works when I type in this url http://www.example.com/profiles/profile/username/baller/ If i do not then the normal url http://www.example

Re: [PHP] URL Rewrite

2008-07-06 Thread Fabrice VIGNALS
Look at http://framework.zend.com/manual/en/zend.controller.router.html Apache configuration et framework methods to rout your files are there. "Subhranil" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] Hi All, I want to show one URL at browser and content of different

Re: [PHP] URL Rewrite

2008-07-02 Thread Børge Holen
On Wednesday 02 July 2008 13:34:32 Bastien Koert wrote: > On Wed, Jul 2, 2008 at 6:33 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > Subhranil wrote: > > > Hi All, > > > > > > I want to show one URL at browser and content of different URL. > > > > Take a look at apache url rewriting. > > > > > > /Pe

Re: [PHP] URL Rewrite

2008-07-02 Thread Bastien Koert
On Wed, Jul 2, 2008 at 6:33 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Subhranil wrote: > > > > > Hi All, > > > > I want to show one URL at browser and content of different URL. > > > > > Take a look at apache url rewriting. > > > /Per Jessen, Zürich > > > -- > PHP General Mailing List (http://ww

Re: [PHP] URL Rewrite

2008-07-02 Thread Per Jessen
Subhranil wrote: > > Hi All, > > I want to show one URL at browser and content of different URL. > Take a look at apache url rewriting. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] URL Rewrite

2008-07-02 Thread Subhranil
Hi All, I want to show one URL at browser and content of different URL. Like user can see the URL at address bar like http://localhost/test/home/ or http://localhost/test/tech/php/but content of page will be http://localhost/test/index.php The URL of the address bar will never change to

Re: [PHP] URL modification

2008-03-06 Thread Aschwin Wesselius
tedd wrote: At 4:46 PM + 2/25/08, Nathan Rixham wrote: It may be a good time to throw in this .htaccess which just palms eveything [not found] off to php [.htaccess] RewriteEngine On RewriteBase / DirectoryIndex handle.urls.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FI

Re: [PHP] URL modification

2008-03-06 Thread tedd
At 4:46 PM + 2/25/08, Nathan Rixham wrote: It may be a good time to throw in this .htaccess which just palms eveything [not found] off to php [.htaccess] RewriteEngine On RewriteBase / DirectoryIndex handle.urls.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d R

Re: [PHP] URL modification

2008-02-25 Thread Richard Heyes
I think this is a highly underused built-in feature. Agreed. I started to use it on my blog instead of a query string and pages reported by Google went up. -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] URL modification

2008-02-25 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: You could also forego the bit if you're willing to accept URLs like this: /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread. I t

RE: [PHP] URL modification

2008-02-25 Thread Andrés Robinet
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Monday, February 25, 2008 11:37 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] URL modification > > On Sat, Feb 23, 2008 at 6:27 A

Re: [PHP] URL modification

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > You could also forego the bit if you're willing to accept URLs > like this: > > /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread. I think this is a hi

RE: [PHP] URL modification

2008-02-24 Thread Xavier de Lapeyre
thnks Xavier Please consider the environment before printing this mail note. -Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: vendredi 22 février 2008 18:58 To: php-general@lists.php.net Subject: Re: [PHP] URL modification Richard Heyes wrote: >> H..

Re: [PHP] URL modification

2008-02-23 Thread Richard Heyes
/rental/property/23425 to: /index.php?mod=property§ion=rentals&propertyid=23425 Thinking about this a little, you still don't need mod_rewrite. "rental" could be a PHP script, forced through PHP with: ForceType application/x-httpd-php In either a .htaccess file or, if performance is an

Re: [PHP] URL modification

2008-02-23 Thread Richard Heyes
Let's say we've got 2.5 million users :: weight up 2.5 million files vs 1 rewrite rule map: /rental/property/23425 to: /index.php?mod=property§ion=rentals&propertyid=23425 You never mentioned this many users. Hence you're moving the boundaries somewhat. finally, do you honestly not use mod

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Nathan Rixham wrote: > + rewrite is overkill for this, but long term it's worth implementing > and getting used to Completely agree. You've got to get to know url rewriting. I don't know how you can manage without it, even if it's far from always the right answer. /Per Jessen, Zürich -- PH

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Richard Heyes wrote: + rewrite is overkill for this, but long term it's worth implementing and getting used to - think of the post as a pre-emptive strike on the inevitable question in a couple of weeks: "how can i make /profile/adam instead of profile.php?user=adam" Have a directory in your

Re: [PHP] URL modification

2008-02-22 Thread Richard Heyes
+ rewrite is overkill for this, but long term it's worth implementing and getting used to - think of the post as a pre-emptive strike on the inevitable question in a couple of weeks: "how can i make /profile/adam instead of profile.php?user=adam" Have a directory in your htdocs called /profile

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Per Jessen wrote: Daniel Brown wrote: On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: Nathan Rixham wrote: > To use url's like http://domain.com/login/ as opposed to > http://domain.com/login.php you can take multiple approaches. > [big snip] > Seriously, this i

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Daniel Brown wrote: > On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: >> Nathan Rixham wrote: >> >> > To use url's like http://domain.com/login/ as opposed to >> > http://domain.com/login.php you can take multiple approaches. >> > >> [big snip] >> > >> >> Seriously, t

Re: [PHP] URL modification

2008-02-22 Thread Daniel Brown
On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Nathan Rixham wrote: > > > To use url's like http://domain.com/login/ as opposed to > > http://domain.com/login.php you can take multiple approaches. > > > [big snip] > > > > Seriously, this is all overkill. Apache con

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Nathan Rixham wrote: > To use url's like http://domain.com/login/ as opposed to > http://domain.com/login.php you can take multiple approaches. > [big snip] > Seriously, this is all overkill. Apache content negotiation does it all automagically and with minimal effort. /Per Jessen, Zürich

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Richard Heyes wrote: H... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there? On IIS I belive the default document is default.htm Though you should be able to modify this to whatever you please. On Apache

Re: [PHP] URL modification

2008-02-22 Thread Jason Pruim
On Feb 22, 2008, at 2:09 AM, Xavier de Lapeyre wrote: Hi all, I saw on some websites that modifies the links to access the webpages. Something like: http://www.example.com/login/ instead of http://www.example.com/login.php Does anyone knows how this works or how its call / which PHP library

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Xavier de Lapeyre wrote: > Hi all, > > I saw on some websites that modifies the links to access the webpages. > > Something like: > http://www.example.com/login/ > instead of > http://www.example.com/login.php > > Does anyone knows how this works or how its call / which PHP library > performs t

Re: [PHP] URL modification

2008-02-22 Thread Richard Heyes
H... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there? On IIS I belive the default document is default.htm Though you should be able to modify this to whatever you please. On Apache it is index.html or

RE: [PHP] URL modification

2008-02-22 Thread Thijs Lensselink
sts.php.net Subject: RE: [PHP] URL modification -Original Message- From: Xavier de Lapeyre [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 2:09 AM To: php-general@lists.php.net Subject: [PHP] URL modification Importance: High Hi all, I saw on some websites that modifies the link

RE: [PHP] URL modification

2008-02-22 Thread Xavier de Lapeyre
29 00 Site: www.eds.mu Email: [EMAIL PROTECTED] Please consider the environment before printing this mail note. -Original Message- From: Andrés Robinet [mailto:[EMAIL PROTECTED] Sent: vendredi 22 février 2008 11:48 To: php-general@lists.php.net Subject: RE: [PHP] URL modific

RE: [PHP] URL modification

2008-02-21 Thread Andrés Robinet
> -Original Message- > From: Xavier de Lapeyre [mailto:[EMAIL PROTECTED] > Sent: Friday, February 22, 2008 2:09 AM > To: php-general@lists.php.net > Subject: [PHP] URL modification > Importance: High > > Hi all, > > I saw on some websites that modifies th

[PHP] URL modification

2008-02-21 Thread Xavier de Lapeyre
Hi all, I saw on some websites that modifies the links to access the webpages. Something like: http://www.example.com/login/ instead of http://www.example.com/login.php Does anyone knows how this works or how its call / which PHP library performs this action? Xavier de Lapeyre -- PHP General

Re: [PHP] URL Parsing...

2007-11-26 Thread Jochem Maas
Richard Heyes wrote: > Chris wrote: >> Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? >>> >>> How does this

Re: [PHP] URL Parsing...

2007-11-26 Thread Richard Heyes
Chris wrote: Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into account that? $ in regex's

Re: [PHP] URL Parsing...

2007-11-25 Thread Chris
Richard Heyes wrote: well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into account that? $ in regex's means 'end of

Re: [PHP] URL Parsing...

2007-11-25 Thread Jochem Maas
Richard Heyes wrote: >> well if you take a string (filename) and wish to change the end of it >> somone >> then I don't think str_replace() is the correct function. what's to >> say a script >> doesn't exist called 'my.cfm.php'? > > How does this: > > /\.cfm$/ > > take into account that? WTF >

Re: [PHP] URL Parsing...

2007-11-25 Thread Richard Heyes
well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'? How does this: /\.cfm$/ take into account that? -- Richard Heyes +44 (0)800 0213 172 http://www.webs

Re: [PHP] URL Parsing...

2007-11-25 Thread Jochem Maas
Richard Heyes wrote: >> one of these should give you something to go on: >> >> echo preg_replace('\.cfm$', '-meta.cfm', >> parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)), "\n"; >> echo preg_replace('\.cfm$', '-meta.cfm', $_SERVER['PATH_TRANSLATED']), >> "\n"; >> echo preg_replace('\.cfm$', '-met

Re: [PHP] URL Parsing...

2007-11-25 Thread Richard Heyes
one of these should give you something to go on: echo preg_replace('\.cfm$', '-meta.cfm', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)), "\n"; echo preg_replace('\.cfm$', '-meta.cfm', $_SERVER['PATH_TRANSLATED']), "\n"; echo preg_replace('\.cfm$', '-meta.cfm', $_SERVER['SCRIPT_FILENAME']), "

Re: [PHP] URL Parsing...

2007-11-24 Thread Jochem Maas
Amanda Loucks wrote: > Hi, > > I'm working on redesigning the backend of the website for work. It was > originally done in ColdFusion, but I'm switching it over to PHP - probably > going to transfer the website from where it's currently hosted to something > a lot cheaper, too, hence the switchin

Re: [PHP] URL Parsing...

2007-11-24 Thread tedd
At 12:18 PM -0600 11/24/07, Amanda Loucks wrote: Hi, I'm working on redesigning the backend of the website for work. It was originally done in ColdFusion, but I'm switching it over to PHP - probably going to transfer the website from where it's currently hosted to something a lot cheaper, too,

[PHP] URL Parsing...

2007-11-24 Thread Amanda Loucks
Hi, I'm working on redesigning the backend of the website for work. It was originally done in ColdFusion, but I'm switching it over to PHP - probably going to transfer the website from where it's currently hosted to something a lot cheaper, too, hence the switching to PHP. Anyway. Because we ar

Re: [PHP] [URL file-access is disabled]

2007-06-09 Thread Richard Lynch
On Sat, June 9, 2007 12:14 pm, Dave Howard Schiff wrote: > I have a problem, that I hope you can help me to solve: > > I'm writing a very simple PHP script to list a directory contents > based on a 'user' variable given by a login/password script. The > problem is, the webhosting i'm using don't

Re: [PHP] [URL file-access is disabled]

2007-06-09 Thread Tijnema
On 6/9/07, Dave Howard Schiff <[EMAIL PROTECTED]> wrote: Hello everyone, I have a problem, that I hope you can help me to solve: I'm writing a very simple PHP script to list a directory contents based on a 'user' variable given by a login/password script. The problem is, the webhosting i'm us

[PHP] [URL file-access is disabled]

2007-06-09 Thread Dave Howard Schiff
Hello everyone, I have a problem, that I hope you can help me to solve: I'm writing a very simple PHP script to list a directory contents based on a 'user' variable given by a login/password script. The problem is, the webhosting i'm using don't allow the so called "URL file-access" ( i'm

Re: [PHP] PHP URL issues

2007-03-14 Thread Jim Lucas
Steve wrote: I personally have not unfortunately. A good friend of mine is also a developer who initially told me about it when I first began coding. Because I don't want to stick with the he-said, she-said approach, I did a quick google search and came up with this link: http://spindrop.us/2

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 17:15 +0100, Satyam wrote: > - Original Message - > From: "Robert Cummings" <[EMAIL PROTECTED]> > To: "Satyam" <[EMAIL PROTECTED]> > Cc: > Sent: Wednesday, March 14, 2007 4:49 PM > Subject: Re: Fw: [PHP] PHP URL

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, March 14, 2007 4:49 PM Subject: Re: Fw: [PHP] PHP URL issues On Wed, 2007-03-14 at 16:31 +0100, Satyam wrote: One more example

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 16:31 +0100, Satyam wrote: > One more example of a questionable benchmark, not wrong but I wonder (as I > was doing in my previous) whether it is really representative. > > There are two main ways to handle strings, one is to malloc exactly the > required memory for each st

Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
ime() on output, variable interpolation is out of the question anyway. Satyam - Original Message - From: "Steve" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 14, 2007 3:25 PM Subject: Re: [PHP] PHP URL issues I personally have not unfortunately. A good friend of min

Re: [PHP] PHP URL issues

2007-03-14 Thread Steve
I personally have not unfortunately. A good friend of mine is also a developer who initially told me about it when I first began coding. Because I don't want to stick with the he-said, she-said approach, I did a quick google search and came up with this link: http://spindrop.us/2007/03/03/php-d

Re: [PHP] PHP URL issues

2007-03-14 Thread Satyam
gt; Cc: Sent: Wednesday, March 14, 2007 10:07 AM Subject: Re: [PHP] PHP URL issues On Tue, March 13, 2007 9:31 am, Steve wrote: This may or may not help, but here's a few things to note: 1) I would avoid placing variable output in double quoted strings. While not important for sm

Re: [PHP] PHP URL issues

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 9:31 am, Steve wrote: > This may or may not help, but here's a few things to note: > > 1) I would avoid placing variable output in double quoted strings. > While not > important for smaller scripts, doing a large number of outputs like > this > causes a decent performance hit

Re: [PHP] PHP URL issues

2007-03-14 Thread Richard Lynch
gt; > > > - Original Message - > From: "Don Don" <[EMAIL PROTECTED]> > To: "PHP List" > Sent: Tuesday, March 13, 2007 11:37 AM > Subject: Re: [PHP] PHP URL issues > > >> >> I've just noticed that if am passing only one

Re: [PHP] PHP URL issues

2007-03-13 Thread Tijnema !
are not > significant, you might want to use trim(). > > > > > - Original Message - > From: "Don Don" > > To: "PHP List" > > Sent: Tuesday, March 13, 2007 11:37 AM > Subject: Re: [PHP] PHP URL issues > > >> >> I've just

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
to use trim(). - Original Message - From: "Don Don" To: "PHP List" Sent: Tuesday, March 13, 2007 11:37 AM Subject: Re: [PHP] PHP URL issues > > I've just noticed that if am passing only one value it works fine, but

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
> > - Original Message - > From: "Don Don" > > To: "PHP List" > > Sent: Tuesday, March 13, 2007 11:37 AM > Subject: Re: [PHP] PHP URL issues > > >> >> I've just noticed that if am passing only one value it works fine, but

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
age - From: "Don Don" To: "PHP List" Sent: Tuesday, March 13, 2007 11:37 AM Subject: Re: [PHP] PHP URL issues > > I've just noticed that if am passing only one value it works fine, but > when am passing in more than one none works. > > Why is that o

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
This may or may not help, but here's a few things to note: 1) I would avoid placing variable output in double quoted strings. While not important for smaller scripts, doing a large number of outputs like this causes a decent performance hit. In fact, I wouldn't use double quotes ever in php. In

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
- From: "Don Don" <[EMAIL PROTECTED]> To: "PHP List" Sent: Tuesday, March 13, 2007 11:37 AM Subject: Re: [PHP] PHP URL issues I've just noticed that if am passing only one value it works fine, but when am passing in more than one none works. Why is that or wha

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
I've just noticed that if am passing only one value it works fine, but when am passing in more than one none works. Why is that or what could be wrong ? e.g. this works echo "$letter_value  "; on test.php i can display the value of term but with this echo "$letter_value  ";

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
I've just noticed that if am passing only one value it works fine, but when am passing in more than one none works. Why is that or what could be wrong ? e.g. this works echo "$letter_value  "; on test.php i can display the value of term but with this echo "$letter_value  ";

Re: [PHP] PHP URL issues

2007-03-12 Thread Richard Lynch
On Mon, March 12, 2007 7:50 am, Don Don wrote: > I've got the following url rewriting problem. > > on page 1 i've got this > > See > > > and on page 2 i've got this > > $messageID = $_REQUEST["messageId"]; > $userID = $_REQUEST["userId"]; You switched from Id to ID (capital 'D') and pro

Re: [PHP] PHP URL issues

2007-03-12 Thread Németh Zoltán
2007. 03. 12, hétfő keltezéssel 05.50-kor Don Don ezt írta: > I've got the following url rewriting problem. > > on page 1 i've got this > > See is this all within something like an echo statement with " marks? otherwise the values might not display correctly > > and on page 2

Re: [PHP] PHP URL issues

2007-03-12 Thread Tijnema !
On 3/12/07, Don Don <[EMAIL PROTECTED]> wrote: I've got the following url rewriting problem. on page 1 i've got this See and on page 2 i've got this $messageID = $_REQUEST["messageId"]; $userID = $_REQUEST["userId"]; when i check to see the values of these variables its says its empty,

[PHP] PHP URL issues

2007-03-12 Thread Don Don
I've got the following url rewriting problem. on page 1 i've got this See and on page 2 i've got this $messageID = $_REQUEST["messageId"]; $userID = $_REQUEST["userId"]; when i check to see the values of these variables its says its empty, but when i place my curs

Re: [PHP] url fopen() failed to open stream

2007-03-09 Thread Tijnema !
On 3/9/07, Michael Clayfield <[EMAIL PROTECTED]> wrote: when i open up a url with fopen(), i get this error message:* Warning*: fopen(http://sumurlhere.whatever/index.html) [function.fopen ]: failed to open stream: A connection attempt failed because the c

[PHP] url fopen() failed to open stream

2007-03-08 Thread Michael Clayfield
when i open up a url with fopen(), i get this error message:* Warning*: fopen(http://sumurlhere.whatever/index.html) [function.fopen ]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period

  1   2   3   4   5   >