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 tamouse.li...@gmail.com wrote: Silvio Siefke li...@silvio-siefke.de wrote: On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: Has someone a Link with Tutorials or other Information? Not

Re: [PHP] URL Rewriting

2013-06-02 Thread Tamara Temple
Daniel Brown danbr...@php.net 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-01 Thread Tamara Temple
Silvio Siefke li...@silvio-siefke.de 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

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas stu...@3ft9.com wrote: On 26 Apr 2012, at 18:37, Jim Giner wrote: Im 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

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 Mailing

Re: [PHP] url string being split

2012-04-27 Thread Tim Streater
On 27 Apr 2012 at 16:56, Chris Stinemetz chrisstinem...@gmail.com wrote: On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas stu...@3ft9.com wrote: On 26 Apr 2012, at 18:37, Jim Giner wrote: Im no expert, but why would you expose a query to the world thru the use of a GET?  Why not just collect

Re: [PHP] url string being split

2012-04-27 Thread Chris Stinemetz
On Fri, Apr 27, 2012 at 11:09 AM, Shawn McKenzie nos...@mckenzies.net 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

[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 'h4a href=store.php?id=' . $storerow['store_subject'] . ''

Re: [PHP] url string being split

2012-04-26 Thread Vikash Kumar
On 26 April 2012 22:27, Chris Stinemetz chrisstinem...@gmail.com 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 =

Re: [PHP] url string being split

2012-04-26 Thread Jim Giner
Im 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 Stuart Dallas
On 26 Apr 2012, at 18:37, Jim Giner wrote: Im 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

Re: [PHP] URL Rewriting

2011-06-23 Thread Ashley Sheridan
Silvio Siefke li...@silvio-siefke.de 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

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

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 li...@silvio-siefke.dewrote: 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

Re: [PHP] URL Rewriting

2011-06-22 Thread Daniel Brown
On Wed, Jun 22, 2011 at 17:32, Fatih P. fatihpirist...@gmail.com 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. -- /Daniel P. Brown Network Infrastructure Manager

Re: [PHP] URL Rewriting

2011-06-22 Thread Daniel P. Brown
On Wed, Jun 22, 2011 at 17:22, Silvio Siefke li...@silvio-siefke.de 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

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

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 use

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

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

Re: [PHP] URL injection

2009-06-04 Thread Stuart
2009/6/4 Morris morris...@gmail.com: 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.

Re: [PHP] URL injection

2009-06-04 Thread Morris
Hi The register.php has only a form ?php form name=registerUser action=register.php method=post input type=text name=username size=10 / input type=submit value=send / /form ? Does this help ? Thanks for reply 2009/6/4 Stuart stut...@gmail.com 2009/6/4 Morris morris...@gmail.com: Hi

Re: [PHP] URL injection

2009-06-04 Thread Stuart
2009/6/4 Morris morris...@gmail.com: Hi The register.php has only a form ?php form name=registerUser action=register.php method=post input type=text name=username size=10 / input type=submit value=send / /form ? Does this help ? 1) That is not valid PHP code. 2) Even if it were

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 stut...@gmail.com wrote: 2009/6/4 Morris morris...@gmail.com: Hi The register.php has only a form ?php form name=registerUser

[PHP] URL data decoding problem

2009-04-21 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 data decoding problem

2009-04-21 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 decode

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 obvious way to

[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

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

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: Hi all, I've set up a url

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

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

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

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

[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

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

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://www.php.net/) To

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. /Per Jessen, Zürich

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

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

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

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

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 AM, Richard Heyes [EMAIL PROTECTED

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,

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

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=propertysection=rentalspropertyid=23425 You never mentioned this many users. Hence you're moving the boundaries somewhat. finally, do you honestly not use

Re: [PHP] URL modification

2008-02-23 Thread Richard Heyes
/rental/property/23425 to: /index.php?mod=propertysection=rentalspropertyid=23425 Thinking about this a little, you still don't need mod_rewrite. rental could be a PHP script, forced through PHP with: Files rental ForceType application/x-httpd-php /Files In either a .htaccess file or,

RE: [PHP] URL modification

2008-02-22 Thread Xavier de Lapeyre
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 modification

RE: [PHP] URL modification

2008-02-22 Thread Thijs Lensselink
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 links to access

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

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

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

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, this is all overkill.

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

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

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

[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

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 the links to access the webpages

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-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: /\.cfm$/ take into

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']), \n;

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$', '-meta.cfm',

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

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

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

[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

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,

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

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

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] PHP URL issues

2007-03-14 Thread Richard Lynch
- From: Don Don [EMAIL PROTECTED] To: PHP List php-general@lists.php.net 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 what

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

Re: [PHP] PHP URL issues

2007-03-14 Thread Satyam
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 smaller scripts, doing a large number of outputs like this causes

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:

Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
interpolation is out of the question anyway. Satyam - Original Message - From: Steve [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, March 14, 2007 3:25 PM Subject: Re: [PHP] PHP URL issues I personally have not unfortunately. A good friend of mine is also

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 string

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: php-general@lists.php.net 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 of a questionable

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: php-general@lists.php.net Sent: Wednesday, March 14, 2007 4:49 PM Subject: Re: Fw: [PHP] PHP URL issues On Wed, 2007-03-14 at 16:31

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:

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 ba href='test.php?term=$letter_value'$letter_value nbsp;/a/b; on test.php i can display the value of term

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 ba href='test.php?term=$letter_value'$letter_value nbsp;/a/b; on test.php i can display the value of term

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
- From: Don Don [EMAIL PROTECTED] To: PHP List php-general@lists.php.net 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 what could

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.

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
- 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 or what could be wrong ? e.g. this works echo

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
: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 what could be wrong ? e.g. this works echo $letter_value ; on test.php i can display the value of term

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
] PHP URL issues $query_string = 'testId='. urlencode(trim($tmpTestId)) . 'userId=' . urlencode(trim($tmpUserId)); print 'pa href=viewpage.php?'. htmlentities($query_string) .' View Values /a/p'; on view page i am trying to display the values using $_GET[value] and it sill returns

[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 p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p and on page 2 i've got this $messageID = $_REQUEST[messageId]; $userID = $_REQUEST[userId]; when i check to see the values of these

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 p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p and on page 2 i've got this $messageID = $_REQUEST[messageId]; $userID = $_REQUEST[userId]; when i check to

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 p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p is this all within something like an echo statement with marks? otherwise the values

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 p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p and on page 2 i've got this $messageID = $_REQUEST[messageId]; $userID = $_REQUEST[userId]; You

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 http://127.0.0.1/bots2/function.fopen]: failed to open stream: A connection attempt failed because the

[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 http://127.0.0.1/bots2/function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period

Re: [PHP] url obfuscation

2006-07-13 Thread Richard Lynch
On Fri, July 7, 2006 10:56 pm, Anas Mughal wrote: My URLs are constant. They are not changing. All my dynamic pages are indexed nicely on Google. I agree that a computerized screen scrapper could still screen scrap most of my site. However, a simple script that attempts to bump up the

  1   2   3   4   5   >