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

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

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

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

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

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

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,

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

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

Re: [PHP] url obfuscation

2006-07-13 Thread Dan McCullough
For me it doesnt matter I dont want Google in the section that I'm obfuscation. On 7/13/06, Richard Lynch <[EMAIL PROTECTED]> wrote: 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 t

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 >

Re: [PHP] url obfuscation

2006-07-07 Thread Anas Mughal
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 identifier of a resource in a URL, would not work. Here is ex

Re: [PHP] url obfuscation

2006-07-07 Thread Richard Lynch
On Thu, July 6, 2006 12:00 pm, Anas Mughal wrote: > I have encrypted the values -- not the keys. With this approach, I > presume I > have made it harder for anyone trying to screen scrap my data. (It is > not > possible to write a script that would loop over my pages.) Unless you are using an alwa

Re: [PHP] url obfuscation

2006-07-07 Thread Richard Lynch
On Thu, July 6, 2006 11:49 am, Dan McCullough wrote: > Looking for a good way to obfuscation the name value pairs in a URL, > so it might be something like > http://www.domain.com/page=fjdsaflkjdsafkfjdsakfjdsalkfjsda983dsf or > something like that, I was looking at base64_encode, but was wondering

Re: [PHP] url obfuscation

2006-07-06 Thread Anas Mughal
I have encrypted the values -- not the keys. With this approach, I presume I have made it harder for anyone trying to screen scrap my data. (It is not possible to write a script that would loop over my pages.) Why do you need to encrypt the keys? -- Anas Mughal On 7/6/06, Dan McCullough <[EM

Re: [PHP] URL Rewrite???

2006-06-13 Thread Jochem Maas
Keith wrote: > Hi all > > Not really a php issue per se - sorry. > But I'm sure someone here is bound to know the answer. :-) > > I have a main site that is accessible at say > "http://www.somedomain.com/somedir/"; but I want visitors to be able to > access the site using simply "http://www.som

Re: [PHP] URL output query

2006-02-27 Thread Chris
Chris wrote: Greetings PHP folks, Which PHP function do I use if I want to achieve the following : http://www.somesite.com/gallery/pics.php is the url...how do I get it to read only http://www.somesite.com in the browser address bar without the rest of the directory and filename appearing ? I

RE: [PHP] URL problem

2006-02-17 Thread Shaunak Kashyap
If you are in a *nix environment, make a symlink from site_folder/index.php -> site_folder/example_folder/index.php and that should do it. Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Main: 323.330.9900 www.worldpokertour.co

Re: [PHP] URL -> stream context

2006-01-20 Thread Richard Lynch
On Fri, January 20, 2006 7:10 am, Jochem Maas wrote: > I think you need to create a stream context resource with: > > http://www.php.net/manual/en/function.stream-context-create.php > > set the options you need on it with: > http://www.php.net/manual/en/function.stream-context-set-option.php > > th

Re: [PHP] URL -> stream context

2006-01-20 Thread Richard Lynch
On Thu, January 19, 2006 6:49 pm, Geoff wrote: > Richard, have you seen this: > http://bugs.php.net/bug.php?id=5153&edit=1 > This bug goes back to June 2000. And it's closed even though it is > clearly not fixed. Doesn't seem like they'll get to it anytime soon. > You might have to do it the long w

Re: [PHP] URL -> stream context

2006-01-20 Thread Jochem Maas
I think you need to create a stream context resource with: http://www.php.net/manual/en/function.stream-context-create.php set the options you need on it with: http://www.php.net/manual/en/function.stream-context-set-option.php then pass the resource as the 4th arg to fopen() (rather passing in

Re: [PHP] URL -> stream context

2006-01-19 Thread Geoff
Richard, have you seen this: http://bugs.php.net/bug.php?id=5153&edit=1 This bug goes back to June 2000. And it's closed even though it is clearly not fixed. Doesn't seem like they'll get to it anytime soon. You might have to do it the long way, building your own protocol handlers. Or, you might

Re: [PHP] URL -> stream context

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 4:08 pm, Geoff wrote: > I honestly have no idea if this would work, but maybe fopen supports > non-blocking connections? Not as far as I can tell... You can call stream_set_blocking after it's open, but that doesn't help a slow connection in the first place. > Or creatio

Re: [PHP] URL -> stream context

2006-01-19 Thread Geoff
3 suggestions: I honestly have no idea if this would work, but maybe fopen supports non-blocking connections? Or creation of context-based connections (for which you can use stream_set_blocking). If so, you could take a stamp of the current time plus a timeout value, make the fopen call (which

Re: [PHP] URL -> stream context

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 5:17 am, Jochem Maas wrote: > Richard Lynch wrote: >> So I've been poring over the docs for the new stream stuff, and it >> looks pretty nifty, except... >> >> I'd really like to be able to just hand a URL to PHP like: >> http://php.net/manual/en/ref.stream.php > > er you c

Re: [PHP] URL -> stream context

2006-01-19 Thread Jochem Maas
Richard Lynch wrote: So I've been poring over the docs for the new stream stuff, and it looks pretty nifty, except... I'd really like to be able to just hand a URL to PHP like: http://php.net/manual/en/ref.stream.php er you can if allow_url_fopen ini setting is set to 1 (can't you?) $fh = fo

Re: [PHP] url vs dirname(__FILE__)

2005-11-29 Thread Chris Shiflett
Chris wrote: I trying to create an absolute path to include scripts and images in another directory. These are two different things, but there is a relationship in the sense that URLs are translated to filesystem paths using document root: http://host/path/to/script.php => [document root]/pa

Re: [PHP] url query problem

2005-11-14 Thread Richard Lynch
On Fri, November 11, 2005 9:12 pm, Imroz wrote: > Hi PHP Gurus > Am new to the php world, I need help to do something. PlZz help > > I have this link HYPERLINK > "http://www.taximauritius.mu/link1.php"http://www.taximauritius.mu/link1 > ..php. > > What I want to do : > > When clicking on the li

Re: [PHP] url query problem

2005-11-11 Thread Minuk Choi
You've tried accessing $_GET in reservation.php? Like $_GET['client'] would return "apartment1" in reservation.php if you clicked on http://www.taximauritius.mu/reservation.php?client=apartment1 -Minuk Imroz wrote: Hi PHP Gurus Am new to the php world, I need help to do something. PlZzz

Re: [PHP] URL Referral Tracking with AIM

2005-09-27 Thread Mike Dunlop
Thanks for the thoughts -- some good points! I will let you know if I come up with anything that works, please let me you know if you do the same :) Best, Mike D ... Mike Dunlop Director of Technology Development [ e ] [EMAIL PR

Re: [PHP] URL Referral Tracking with AIM

2005-09-27 Thread tg-php
Havn't done it myself, but why not try pasting a link in IM and have it go to a php script that does a var_dump (or print_r) of $_SERVER. Think that's where the referrer data is. It may not show any referrer information since it's coming from an IM, but who knows.. would be interesting to tr

Re: [PHP] url reload

2005-07-11 Thread Richard Lynch
On Thu, July 7, 2005 6:40 pm, timothy johnson said: > This should be pretty simple but I cant find any info on it at the > site. I am writing a function that will create a anchor, but I want it > to call the same page it is on. Is there a way to get the current php > page I am on so that when I out

Re: [PHP] URL decode

2005-07-10 Thread Chris Shiflett
Mario netMines wrote: I have a value like: %u0394%u0397%u03A4%u039C%u039B Is there a way to decode to normal characters (like javascript's unescape() function) I think you might want to try mb_parse_str(), although I can't run a quick test for you, because I don't have the multibyte extensio

Re: [PHP] url by mail

2005-06-04 Thread Mark Cain
$lines = file('http://www.example.com/'); foreach ($lines as $line) { echo $line . "\n"; } This ought to do it. Try it and see. But be aware that if the "allow_url_fopen" was not enable at the compile time, this won't work. Mark Cain - Original Message - From: "vlad georgescu" <[E

Re: [PHP] URL file-access disabled

2005-03-31 Thread Jackson Linux
My provider has provided me the solution: adding php_flag allow_url_fopen on to the .htaccess Apologies to the list for wasting time and bandwidth. Jack On 31 Mar 2005, at 17:47, Jackson Linux wrote: Hi, ho, I have a problem; something which works locally is complaining on the BSD Unix server I us

Re: [PHP] URL file-access disabled

2005-03-31 Thread Marek Kilimajer
$image_dir is an url (begins with http:// or similar) and allow_url_fopen is off on your BSD. Do you need to access it using url wrappers? If the images are local you can access them using plain filesystem access Jackson Linux wrote: Hi, ho, I have a problem; something which works locally is co

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Roger Thomas
Hi Marek, Thank you for the solution. -- Roger Quoting Marek Kilimajer <[EMAIL PROTECTED]>: > That's because the character data is split on the borders of the > entities, so for > > http://feeds.example.com/?rid=318045f7e13e0b66&cat=48cba686fe041718&f=1 > > characterData() will be called 5 ti

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Marek Kilimajer
That's because the character data is split on the borders of the entities, so for http://feeds.example.com/?rid=318045f7e13e0b66&cat=48cba686fe041718&f=1 characterData() will be called 5 times: http://feeds.example.com/?rid=318045f7e13e0b66 & cat=48cba686fe041718 & f=1 Solution is inlined below R

Re: [PHP] URL encode

2005-02-23 Thread Richard Lynch
Bruno Santos wrote: > Hello. > > Im having some trouble when getting a query from a $_GET method > > the problem is, when using $_GET, i get some charaters decoded as html > entities. > > if i submit the word %sara% (example), is ok > but, if i submi the word %carlos%, i get Êrlos, witch is the tra

Re: [PHP] URL encode

2005-02-23 Thread Jochem Maas
Bruno Santos wrote: Hello. Im having some trouble when getting a query from a $_GET method the problem is, when using $_GET, i get some charaters decoded as html entities. if i submit the word %sara% (example), is ok but, if i submi the word %carlos%, i get Êrlos, witch is the translation of htm

Re: [PHP] URL-funtion - returnvalue into variable...?

2005-01-12 Thread Leif Gregory
Hello Wiberg, Wednesday, January 12, 2005, 1:40:26 AM, you wrote: W> Another company wants me to access their productinfo thorugh URL, something W> like this: W> https://www.anothercompany.com/returnValueOfProductID=1043 Oddly enough I just happened to run across something that might be useful wh

  1   2   3   >