[PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Lars Kristiansson
Hi! This is probably the wrong forum. Please redirect me if im out of place. I would like to find out what IP address my visitor uses when visiting a php script page on my domain. This page would contain a form in which the visitor would state his/her message. My goal is to create purchase-o

RE: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Jason
That would be in one of the $_SERVER[] variables. Look here for more info: http://uk.php.net/manual/en/reserved.variables.server.php HTH J -Original Message- From: Lars Kristiansson [mailto:la...@naturbilden.se] Sent: 30 November 2009 23:47 To: php-general@lists.php.net Subject: [PHP] C

Re: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Lester Caine
Lars Kristiansson wrote: Hi! This is probably the wrong forum. Please redirect me if im out of place. I would like to find out what IP address my visitor uses when visiting a php script page on my domain. This page would contain a form in which the visitor would state his/her message. My go

Re: [PHP] Can I get the IP address from a visitor?

2009-12-01 Thread Ali Asghar Toraby Parizy
It is very simple: $ip=$_SERVER['REMOTE_ADDR']; On Tue, Dec 1, 2009 at 1:47 PM, Lester Caine wrote: > Lars Kristiansson wrote: >> >> Hi! >> >> This is probably the wrong forum. Please redirect me if im out of place. >> >> I would like to find out what IP address my visitor uses when visiting a >>

[PHP] Re: Can I get the IP address from a visitor?

2009-12-01 Thread Olav
Lars Kristiansson wrote: [..] > My goal is to create purchase-orders written on unique files, and to > separate them my idea was to baptize files with the IP addresses, which > would ive each visitor an unique purchase-order... > > Any hints to a newbie? Yes. Do NOT use IP adresses as identifie

[PHP] mod_rewrite...https index page -> http index page

2009-12-01 Thread John Corry
My apologies, this is not strictly PHP...but it is relevant to a great number of PHP application frameworks that many of us use or will use. I have a Magento installation that relies heavily on mod_rewrite. For the most part, I have all of my canonical URLs worked out, minus one issue. How do I m

Re: [PHP] mod_rewrite...https index page -> http index page

2009-12-01 Thread Kim Emax
Hey John 2009/12/1 John Corry > My apologies, this is not strictly PHP...but it is relevant to a great > number of PHP application frameworks that many of us use or will use. > Well, still, you should ask in an apache forum :-) I have a Magento installation that relies heavily on mod_rewrite.

[PHP] Download and Install 64bit php into 64bit Windows

2009-12-01 Thread Edward S.P. Leung
Dear All, Where can we download the 64bit php package for running on 64bit Windows platform ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] REpost of weird error

2009-12-01 Thread The Doctor
I needed this up like last week, but no reply. So a repost: Why is the below happening? Script started on Tue Dec 1 12:42:59 2009 doctor.nl2k.ab.ca//usr/source/php-5.3.1$ less configphpdso [?1h=./configure \ --prefix=/usr/contrib \ --localstatedir=/var \ --with-apxs2=/usr/con

RE: [PHP] REpost of weird error

2009-12-01 Thread Bob McConnell
From: The Doctor > I needed this up like last week, but no reply. > > So a repost: > > Why is the below happening? > Just a guess, but it looks like you updated the ssh library but not the ldap libraries which depend on them. So ldap is looking for the older version. There may be others that n

[PHP] Disabling button onclick in IE

2009-12-01 Thread Skip Evans
Hey all, You probably remember me asking about disabling a submit button when it is clicked to prevent double clicks submitting a form for CC processing. I put the following code into the submit button and it works fine on FireFox, but... hold your breath... not on IE. The button gets dis

Re: [PHP] Disabling button onclick in IE

2009-12-01 Thread Ashley Sheridan
On Tue, 2009-12-01 at 15:06 -0600, Skip Evans wrote: > Hey all, > > You probably remember me asking about disabling a submit > button when it is clicked to prevent double clicks submitting > a form for CC processing. > > I put the following code into the submit button and it works > fine on

Re: [PHP] Disabling button onclick in IE

2009-12-01 Thread Andrew Ballard
On Tue, Dec 1, 2009 at 4:06 PM, Skip Evans wrote: > Hey all, > > You probably remember me asking about disabling a submit button when it is > clicked to prevent double clicks submitting  a form for CC processing. > > I put the following code into the submit button and it works fine on > FireFox, b

Re: [PHP] Disabling button onclick in IE

2009-12-01 Thread tedd
At 9:16 PM + 12/1/09, Ashley Sheridan wrote: On Tue, 2009-12-01 at 15:06 -0600, Skip Evans wrote: wow, i really think you're going about this all the wrong way. Ash: I thought the same thing considering that I went through the exact same problem and provided a solution, which he never men

Re: [PHP] REpost of weird error

2009-12-01 Thread The Doctor
On Tue, Dec 01, 2009 at 03:25:47PM -0500, Bob McConnell wrote: > From: The Doctor > > > I needed this up like last week, but no reply. > > > > So a repost: > > > > Why is the below happening? > > > > Just a guess, but it looks like you updated the ssh library but not the > ldap libraries which

Re: [PHP] Disabling button onclick in IE

2009-12-01 Thread Ryan Sun
Andrew is right, another solution is to move your code from onclick to onsubmit event, On Tue, Dec 1, 2009 at 4:06 PM, Skip Evans wrote: > Hey all, > > You probably remember me asking about disabling a submit button when it is > clicked to prevent double clicks submitting a form for CC process

[PHP] Emergency! Performance downloading big files

2009-12-01 Thread Brian Dunning
This is a holiday-crunch emergency. I'm dealing with a client from whom we need to download many large PDF docs 24x7, several thousand per hour, all between a few hundred K and about 50 MB. Their security process requires the files to be downloaded via https using a big long URL with lots of cr

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread Brian Dunning
Oops, it's several hundred per hour, several thousand per day. Sorry for the accidental superlative. > I'm dealing with a client from whom we need to download many large PDF docs > 24x7, several thousand per hour, all between a few hundred K and about 50 MB. -- PHP General Mailing List (http

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread Ashley Sheridan
On Tue, 2009-12-01 at 14:51 -0800, Brian Dunning wrote: > Oops, it's several hundred per hour, several thousand per day. Sorry for the > accidental superlative. > > > I'm dealing with a client from whom we need to download many large PDF docs > > 24x7, several thousand per hour, all between a f

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread Mari Masuda
On Dec 1, 2009, at 2:48 PM, Brian Dunning wrote: > This is a holiday-crunch emergency. [snip] > Is there a SUBSTANTIALLY faster way to download and save these files? Keep in > mind the client's requirements cannot be changed. Thanks for any suggestions. Could you just put the URLs of the files

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread James McLean
On Wed, Dec 2, 2009 at 9:18 AM, Brian Dunning wrote: > This is a holiday-crunch emergency. Aren't they all! :) > It's WAY TOO SLOW. I can paste the URL into a browser and download even the > largest files quite quickly, but the PHP method bottlenecks and cannot keep > up. Are you certain you

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread Michael Shadle
On Tue, Dec 1, 2009 at 3:21 PM, James McLean wrote: > The suggestion from other users of off-loading the PDF downloading to > Apache (or another webserver) is a good idea also. ^ I never allow PHP to be [ab]used and kept open to spoonfeed clients with fopen/readfile/etc. in nginx: header("X-A

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread LinuxManMikeC
On Tue, Dec 1, 2009 at 3:48 PM, Brian Dunning wrote: > > This is a holiday-crunch emergency. > > I'm dealing with a client from whom we need to download many large PDF docs > 24x7, several thousand per hour, all between a few hundred K and about 50 MB. > Their security process requires the files

[PHP] SOAP CLIENT and HEADER

2009-12-01 Thread Augusto Flavio
hi All, I'm trying to access a SOAP service but i have one doubt. I paste a sample SOAP request for you know the problem: // START SOAP REQUEST POST /wbm/shopping/script/CalcPrecoPrazo.asmx HTTP/1.1 Host: shopping.correios.com.br Content-Type: text/xml; charset=utf-8 Content-Le

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread Brian Dunning
Can someone explain how this would work? It's a Windows web server running IIS and the files are saved to a drive that is outside the web root. PHP is grabbing each filename from a MySQL database, along with the URL and credentials for it, and ends up with a url something like this: https://serv

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread Nathan Nobbe
On Tue, Dec 1, 2009 at 4:56 PM, LinuxManMikeC wrote: > On Tue, Dec 1, 2009 at 3:48 PM, Brian Dunning > wrote: > > > > This is a holiday-crunch emergency. > > > > I'm dealing with a client from whom we need to download many large PDF > docs 24x7, several thousand per hour, all between a few hundre

[PHP] Re: Can I get the IP address from a visitor?

2009-12-01 Thread Ben
I happen to have grabbed this function from php.net a while back, and have been using it since: // by "fr600 at hotmail dot com" at http://us2.php.net/getenv function getip() { if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) $ip = getenv('HTTP_CLIENT_IP');