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');
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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=[55;1H[K./configure \
--prefix=/usr/contrib \
--localstatedir=/var \
--with-apxs2=/usr/con
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
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.
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
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
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
>>
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
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
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
27 matches
Mail list logo