php-general Digest 21 Sep 2012 19:41:16 -0000 Issue 7974

Topics (messages 319168 through 319185):

Bounce messages
        319168 by: Lester Caine
        319169 by: Matijn Woudt
        319178 by: Paul M Foster
        319182 by: Jim Lucas
        319183 by: Ashley Sheridan
        319184 by: Jeff Burcher
        319185 by: Jim Lucas

Re: about PHP's filter_var function
        319170 by: Sebastian Krebs

Re: PHP Bounce messages
        319171 by: Tim Streater

Risks involved in MyISAM to Innodb
        319172 by: Girish Talluru
        319174 by: Samuel Lopes Grigolato
        319175 by: Girish Talluru
        319176 by: Samuel Lopes Grigolato
        319177 by: Girish Talluru
        319180 by: Ashley Sheridan
        319181 by: shiplu

Re: Warning at PDO:Firebird driver manual page removed.
        319173 by: Davi Marcondes Moreira

output compression when host has disabled mod_deflate, mod_gzip and php_value 
auto_prepend_file
        319179 by: edward eric pedersson

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message --- I know that the php list are one of the 'reply to sender' email handling camp rather than reply to list. I can cope with that now and handle the multiple reply address problem this end so I ONLY reply to list. BUT is there no way of cleaning up the bounce emails we all get when posting to the list(s)?

( Waits to delete all the bounce messages for this post :) )

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

--- End Message ---
--- Begin Message ---
Op 21 sep. 2012 09:41 schreef "Lester Caine" <les...@lsces.co.uk> het
volgende:
>
> I know that the php list are one of the 'reply to sender' email handling
camp rather than reply to list. I can cope with that now and handle the
multiple reply address problem this end so I ONLY reply to list. BUT is
there no way of cleaning up the bounce emails we all get when posting to
the list(s)?
>

What exactly is your problem? I don't get it and I still don't see a
problem here..

--- End Message ---
--- Begin Message ---
On Fri, Sep 21, 2012 at 08:40:23AM +0100, Lester Caine wrote:

> I know that the php list are one of the 'reply to sender' email
> handling camp rather than reply to list. I can cope with that now
> and handle the multiple reply address problem this end so I ONLY
> reply to list. BUT is there no way of cleaning up the bounce emails
> we all get when posting to the list(s)?
> 
> ( Waits to delete all the bounce messages for this post :) )

Not seeing bounce messages here.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

--- End Message ---
--- Begin Message ---
On 09/21/2012 12:40 AM, Lester Caine wrote:
I know that the php list are one of the 'reply to sender' email handling
camp rather than reply to list. I can cope with that now and handle the
multiple reply address problem this end so I ONLY reply to list. BUT is
there no way of cleaning up the bounce emails we all get when posting to
the list(s)?

( Waits to delete all the bounce messages for this post :) )


Doing a little checking on your IP address, I have found that your mail server IP is listed on a black list. Check the link below.

http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a213.123.20.127

This could be the source of your bounce messages.

--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/

--- End Message ---
--- Begin Message ---
On Fri, 2012-09-21 at 09:56 -0700, Jim Lucas wrote:

> On 09/21/2012 12:40 AM, Lester Caine wrote:
> > I know that the php list are one of the 'reply to sender' email handling
> > camp rather than reply to list. I can cope with that now and handle the
> > multiple reply address problem this end so I ONLY reply to list. BUT is
> > there no way of cleaning up the bounce emails we all get when posting to
> > the list(s)?
> >
> > ( Waits to delete all the bounce messages for this post :) )
> >
> 
> Doing a little checking on your IP address, I have found that your mail 
> server IP is listed on a black list.  Check the link below.
> 
> http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a213.123.20.127
> 
> This could be the source of your bounce messages.
> 
> -- 
> Jim Lucas
> 
> http://www.cmsws.com/
> http://www.cmsws.com/examples/
> 


I sporadically get a lot of messages that appear as bounces where people
on the list filter out replies and make you sign up to some web service
to prove you're a real person. Is that the sort of bounce you're talking
about?

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
Hi,

I don't know if this is specifically what he is referring to when he says, "the 
'reply to sender' email handling camp ", but I know that when I just click 
Reply it goes to the individual whose post I am commenting on. I need to click 
on Reply All and several emails are in the blanks and I need to delete them all 
and move the list email address from the CC: box to the TO: box. If I am not 
paying attention and don't do this little email musical chairs process, 
sometimes I will get out of office replies from some of the email addresses in 
the reply. Is this 'bouncing'?

Jeff

> -----Original Message-----
> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
> Sent: Friday, September 21, 2012 2:56 PM
> To: Jim Lucas
> Cc: Lester Caine; php-gene...@lists.php.net
> Subject: Re: [PHP] Bounce messages
> 
> On Fri, 2012-09-21 at 09:56 -0700, Jim Lucas wrote:
> 
> > On 09/21/2012 12:40 AM, Lester Caine wrote:
> > > I know that the php list are one of the 'reply to sender' email
> > > handling camp rather than reply to list. I can cope with that now
> > > and handle the multiple reply address problem this end so I ONLY
> > > reply to list. BUT is there no way of cleaning up the bounce emails
> > > we all get when posting to the list(s)?
> > >
> > > ( Waits to delete all the bounce messages for this post :) )
> > >
> >
> > Doing a little checking on your IP address, I have found that your
> > mail server IP is listed on a black list.  Check the link below.
> >
> > http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a213.123.20.127
> >
> > This could be the source of your bounce messages.
> >
> > --
> > Jim Lucas
> >
> > http://www.cmsws.com/
> > http://www.cmsws.com/examples/
> >
> 
> 
> I sporadically get a lot of messages that appear as bounces where people on
> the list filter out replies and make you sign up to some web service to prove
> you're a real person. Is that the sort of bounce you're talking about?
> 
> --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
> 





--- End Message ---
--- Begin Message ---
On 09/21/2012 12:22 PM, Jeff Burcher wrote:
Hi,

I don't know if this is specifically what he is referring to when he
 says, "the 'reply to sender' email handling camp ", but I know that
when I just click Reply it goes to the individual whose post I am
commenting on. I need to click on Reply All and several emails are
in the blanks and I need to delete them all and move the list email
address from the CC: box to the TO: box. If I am not paying attention
and don't do this little email musical chairs process, sometimes I
will get out of office replies from some of the email addresses in
the reply. Is this 'bouncing'?

Technically, it is called back scatter. And SPAMers can use it to send SPAM to unsuspecting servers. And http://www.backscatterer.org loves to block mail servers that have auto responders turned on.


Jeff

-----Original Message-----
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Friday, September 21, 2012 2:56 PM
To: Jim Lucas
Cc: Lester Caine; php-gene...@lists.php.net
Subject: Re: [PHP] Bounce messages

On Fri, 2012-09-21 at 09:56 -0700, Jim Lucas wrote:

On 09/21/2012 12:40 AM, Lester Caine wrote:
I know that the php list are one of the 'reply to sender' email
handling camp rather than reply to list. I can cope with that now
and handle the multiple reply address problem this end so I ONLY
reply to list. BUT is there no way of cleaning up the bounce emails
we all get when posting to the list(s)?

( Waits to delete all the bounce messages for this post :) )


Doing a little checking on your IP address, I have found that your
mail server IP is listed on a black list.  Check the link below.

http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a213.123.20.127

This could be the source of your bounce messages.

--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/



I sporadically get a lot of messages that appear as bounces where people on
the list filter out replies and make you sign up to some web service to prove
you're a real person. Is that the sort of bounce you're talking about?

--
Thanks,
Ash
http://www.ashleysheridan.co.uk








--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/

--- End Message ---
--- Begin Message ---
Am 20.09.2012 19:54, schrieb Jim Lucas:
On 09/20/2012 10:00 AM, Matijn Woudt wrote:
On Thu, Sep 20, 2012 at 6:03 PM, Jim Lucas<li...@cmsws.com>  wrote:
On 09/20/2012 02:35 AM, Sebastian Krebs wrote:

Plaseplease update... 5.1.6 is from 2006! I read the "it's required",
but I can't imagine _anything_ that it's worth it to use such an
extremely outdated, unsupported and therefore insecure and inefficient
version... You know: There are 3 (!) new minor versions available right
now (5.2, 5.3 and 5.4).


However: Regarding your concrete problem I guess you can use ip2long()

if (ip2long($ip)) {


I would suggest a modification to this.

if ( ip2long($ip) !== false ) {


I suggest this because IP to long will return negative numbers for
half the
IP range.  Therefor 50% of your possible results would be considered
false
when in fact they are valid IPs.

See Example #2 on this page:
http://php.net/manual/en/function.ip2long.php



First of all, I agree with Maciek that inet_pton is the way to go
because of IPv6.
But, there seems to be some wrong information in your reply which
bothers me.
First of all, ip2long only returns negative numbers on 32bit systems,
not on 64bit (which most servers are nowadays).
Second, there's nothing wrong with the if, if(-5) is still true. The
only difference is that you can differentiate between IP 0.0.0.0 and
false. But IP 0.0.0.0 is not valid anyway.

- Matijn


After some testing, I stand corrected.  Wow, I wonder where I ran into
the issue of negative numbers equating to false.  while loops maybe...

Strange.  I must have ran into this issue years ago.  I have always
performed strict (===) comparisons because I thought PHP would equate
negative numbers as false.

Learn something new every day...


You can find the full matrix here: http://php.net/types.comparisons

--- End Message ---
--- Begin Message ---
On 21 Sep 2012 at 08:40, Lester Caine <les...@lsces.co.uk> wrote: 

> I know that the php list are one of the 'reply to sender' email handling camp
> rather than reply to list.

I don't understand this. I reply (not that I mail that often) just to the list, 
if possible. Why would I do anything else?

--
Cheers  --  Tim

--- End Message ---
--- Begin Message ---
Hi Guys,

I have requirement to change my production database tables which are using
myISAM and now bcoz of some changes we have to move to Innodb.

Can anyone suggest how the plan should be and risks involve?

Thanks,
Girish Talluru

--- End Message ---
--- Begin Message ---
I would start trying my DBMS user list. Or maybe you're afraid of impacts on
PHP code?

Cheers.

-----Mensagem original-----
De: Girish Talluru [mailto:girish.dev1...@gmail.com] 
Enviada em: sexta-feira, 21 de setembro de 2012 10:04
Para: php-gene...@lists.php.net
Assunto: [PHP] Risks involved in MyISAM to Innodb

Hi Guys,

I have requirement to change my production database tables which are using
myISAM and now bcoz of some changes we have to move to Innodb.

Can anyone suggest how the plan should be and risks involve?

Thanks,
Girish Talluru


--- End Message ---
--- Begin Message ---
Samuel, Can you please send the DBMS list address?

Thanks,
Girish

On Fri, Sep 21, 2012 at 6:08 AM, Samuel Lopes Grigolato <
samuel.grigol...@gmail.com> wrote:

> I would start trying my DBMS user list. Or maybe you're afraid of impacts
> on
> PHP code?
>
> Cheers.
>
> -----Mensagem original-----
> De: Girish Talluru [mailto:girish.dev1...@gmail.com]
> Enviada em: sexta-feira, 21 de setembro de 2012 10:04
> Para: php-gene...@lists.php.net
> Assunto: [PHP] Risks involved in MyISAM to Innodb
>
> Hi Guys,
>
> I have requirement to change my production database tables which are using
> myISAM and now bcoz of some changes we have to move to Innodb.
>
> Can anyone suggest how the plan should be and risks involve?
>
> Thanks,
> Girish Talluru
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Sure, the address you're looking for is:  <http://lists.mysql.com/>
http://lists.mysql.com/

 

Good hunting =)

 

De: Girish Talluru [mailto:girish.dev1...@gmail.com] 
Enviada em: sexta-feira, 21 de setembro de 2012 10:15
Para: Samuel Lopes Grigolato
Cc: php-gene...@lists.php.net
Assunto: Re: [PHP] Risks involved in MyISAM to Innodb

 

Samuel, Can you please send the DBMS list address?

 

Thanks,

Girish

On Fri, Sep 21, 2012 at 6:08 AM, Samuel Lopes Grigolato
<samuel.grigol...@gmail.com> wrote:

I would start trying my DBMS user list. Or maybe you're afraid of impacts on
PHP code?

Cheers.

-----Mensagem original-----
De: Girish Talluru [mailto:girish.dev1...@gmail.com]
Enviada em: sexta-feira, 21 de setembro de 2012 10:04
Para: php-gene...@lists.php.net
Assunto: [PHP] Risks involved in MyISAM to Innodb


Hi Guys,

I have requirement to change my production database tables which are using
myISAM and now bcoz of some changes we have to move to Innodb.

Can anyone suggest how the plan should be and risks involve?

Thanks,
Girish Talluru



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 


--- End Message ---
--- Begin Message ---
Thanks a lot Samuel. Appreciate your help.

On Fri, Sep 21, 2012 at 6:20 AM, Samuel Lopes Grigolato <
samuel.grigol...@gmail.com> wrote:

> Sure, the address you’re looking for is: http://lists.mysql.com/****
>
> ** **
>
> Good hunting =)****
>
> ** **
>
> *De:* Girish Talluru [mailto:girish.dev1...@gmail.com]
> *Enviada em:* sexta-feira, 21 de setembro de 2012 10:15
> *Para:* Samuel Lopes Grigolato
> *Cc:* php-gene...@lists.php.net
> *Assunto:* Re: [PHP] Risks involved in MyISAM to Innodb****
>
> ** **
>
> Samuel, Can you please send the DBMS list address?****
>
> ** **
>
> Thanks,****
>
> Girish****
>
> On Fri, Sep 21, 2012 at 6:08 AM, Samuel Lopes Grigolato <
> samuel.grigol...@gmail.com> wrote:****
>
> I would start trying my DBMS user list. Or maybe you're afraid of impacts
> on
> PHP code?
>
> Cheers.
>
> -----Mensagem original-----
> De: Girish Talluru [mailto:girish.dev1...@gmail.com]
> Enviada em: sexta-feira, 21 de setembro de 2012 10:04
> Para: php-gene...@lists.php.net
> Assunto: [PHP] Risks involved in MyISAM to Innodb****
>
>
> Hi Guys,
>
> I have requirement to change my production database tables which are using
> myISAM and now bcoz of some changes we have to move to Innodb.
>
> Can anyone suggest how the plan should be and risks involve?
>
> Thanks,
> Girish Talluru
>
> ****
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php****
>
> ** **
>

--- End Message ---
--- Begin Message ---

Girish Talluru <girish.dev1...@gmail.com> wrote:

>Thanks a lot Samuel. Appreciate your help.
>
>On Fri, Sep 21, 2012 at 6:20 AM, Samuel Lopes Grigolato <
>samuel.grigol...@gmail.com> wrote:
>
>> Sure, the address you’re looking for is: http://lists.mysql.com/****
>>
>> ** **
>>
>> Good hunting =)****
>>
>> ** **
>>
>> *De:* Girish Talluru [mailto:girish.dev1...@gmail.com]
>> *Enviada em:* sexta-feira, 21 de setembro de 2012 10:15
>> *Para:* Samuel Lopes Grigolato
>> *Cc:* php-gene...@lists.php.net
>> *Assunto:* Re: [PHP] Risks involved in MyISAM to Innodb****
>>
>> ** **
>>
>> Samuel, Can you please send the DBMS list address?****
>>
>> ** **
>>
>> Thanks,****
>>
>> Girish****
>>
>> On Fri, Sep 21, 2012 at 6:08 AM, Samuel Lopes Grigolato <
>> samuel.grigol...@gmail.com> wrote:****
>>
>> I would start trying my DBMS user list. Or maybe you're afraid of
>impacts
>> on
>> PHP code?
>>
>> Cheers.
>>
>> -----Mensagem original-----
>> De: Girish Talluru [mailto:girish.dev1...@gmail.com]
>> Enviada em: sexta-feira, 21 de setembro de 2012 10:04
>> Para: php-gene...@lists.php.net
>> Assunto: [PHP] Risks involved in MyISAM to Innodb****
>>
>>
>> Hi Guys,
>>
>> I have requirement to change my production database tables which are
>using
>> myISAM and now bcoz of some changes we have to move to Innodb.
>>
>> Can anyone suggest how the plan should be and risks involve?
>>
>> Thanks,
>> Girish Talluru
>>
>> ****
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php****
>>
>> ** **
>>

As it's a Friday...

I would back the database up and convert each table one by one. I've not had 
any data problems ever doing this myself, even on large tables.

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

--- End Message ---
--- Begin Message ---
On Fri, Sep 21, 2012 at 7:03 PM, Girish Talluru
<girish.dev1...@gmail.com> wrote:
> Hi Guys,
>
> I have requirement to change my production database tables which are using
> myISAM and now bcoz of some changes we have to move to Innodb.
>
> Can anyone suggest how the plan should be and risks involve?
>
> Thanks,
> Girish Talluru

If you use full-text search, it'll not work in InnoDb engine.

-- 
Shiplu.Mokadd.im
ImgSign.com | A dynamic signature machine
Innovation distinguishes between follower and leader

--- End Message ---
--- Begin Message ---
Dear Lester,


Thank you very much for your attention. You gave me the exact explanation
which solved all my doubts about using PDO:Firebird.
Actually I'm building step by step a abstract layer file for general use on
these projects, and it works fine for us, using the php_interbase extension
functions. Unfortunately I can't share the code here, due to ethics
contract. But I'll stay in touch in the discussion group you've sent and
keep informed. Certainly I'll find more PHP/Firebird developers there.


Sincerely,


2012/9/21 Lester Caine <les...@lsces.co.uk>

> Davi Marcondes Moreira wrote:
>
>> The question is: why the warning message was removed, and now this
>> extension is safe for use, without risks of being discontinued or
>> depreciated?
>>
>
> Davi
> The current version of the extension is stable and a number of the initial
> bugs have been cleared up. If you use it you will find that it does work
> fine, but most PHP/Firebird users - like myself - stay with the
> php_interbase driver on it's own simply because some function are not
> available via the PDO driver. That only replaces the 'data' interface and
> does not address some of the control stuff. This is the case with many of
> the PDO drivers since it is not easy to provide a 'compatible' version of
> this across all database engines.
>
> I've still got FB1.5 on a number of sites mainly because of legacy apps
> that can no longer be recompiled, but PHP provides an additional interface
> to fill the gaps.
>
> http://groups.yahoo.com/group/**firebird-php/<http://groups.yahoo.com/group/firebird-php/>is
>  the home for a more in depth discussion and assistance :)
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact - 
> http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact>
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media - 
> http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
*Davi Marcondes Moreira*
+ Info: http://about.me/davi.m.moreira

--- End Message ---
--- Begin Message ---
Hi

My host, Host Papa (yes, they are rubbish) has disabled mod_deflate,
mod_gzip and php_value auto_prepend_file so can't use them in
.htaccess file. I would move host but I did not realise this was the
case until I wanted to make use of them. I am tied in for three years
so need to find a workaround or live with it.

The site is built using CMS Made Simple (a php based CMS) and I am
using ob_start ("ob_gzhandler"); to compress the html output from the
CMS.

I want to compress the css and javascript external files as well but
without the apache options available I am wondering what other options
I have. The files are not massive, all but one less than 20k. Not sure
how much of a performance gain I will get but I thought it is worth
while asking the question.

One solution I have on my mind is to call a php script that pulls in
the css and js files and compresses the output e.g

<link rel="stylesheet" type="text/css"
href="http://my.domain.com/stylesheet.php?file=/path/to/stylesheet.css";
/>

stylesheet.php
------------------
<?php

   // initialize ob_gzhandler function to send and compress data
   ob_start ("ob_gzhandler");

   // send the requisite header information and character set
   header ("content-type: text/css; charset: UTF-8");

   // check cached credentials and reprocess accordingly
   header ("cache-control: must-revalidate");

   // set variable for duration of cached content
   $offset = 60 * 60;

   // set variable specifying format of expiration header
   $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT";

   // send cache expiration header to the client broswer
   header ($expire);

   //read and echo the file
   $file = readfile($_GET["file"]);

   echo $file;

?>

------------------

Similar code for javascript with different content-type.


A few questions:

1) Will apache cache the full url or the url minus the query parameter?
2) Are there any performance benefits as there is an overhead in
calling the PHP file?
3) If the PHP call is cached is it cached with the file query parameter?

Many thanks for your help.


-- j

--- End Message ---

Reply via email to