php-general Digest 23 Sep 2012 13:33:44 -0000 Issue 7976

2012-09-23 Thread php-general-digest-help
php-general Digest 23 Sep 2012 13:33:44 - Issue 7976 Topics (messages 319192 through 319207): Need help to understand a code 319192 by: Ashickur Rahman Noor 319193 by: Stefan Wixfort 319194 by: Maciek Sokolewicz 319195 by: Ashley Sheridan 319196 by:

Re: [PHP] Day after Friday

2012-09-23 Thread Tedd Sperling
On Sep 22, 2012, at 3:59 PM, Paul M Foster pa...@quillandmouse.com wrote: On Sat, Sep 22, 2012 at 01:05:51PM -0400, Tedd Sperling wrote: Hi gang: I know it's the Day after Friday, but I'm asking a off-topic question anyway -- sorry. Normally, I teach a PHP class at the local college,

Re: [PHP] Day after Friday

2012-09-23 Thread tamouse mailing lists
On Sun, Sep 23, 2012 at 8:33 AM, Tedd Sperling t...@sperling.com wrote: On Sep 22, 2012, at 3:59 PM, Paul M Foster pa...@quillandmouse.com wrote: On Sat, Sep 22, 2012 at 01:05:51PM -0400, Tedd Sperling wrote: Hi gang: I know it's the Day after Friday, but I'm asking a off-topic question

RES: [PHP] Day after Friday

2012-09-23 Thread Samuel Lopes Grigolato
Independent of programming language, good teaching skills will lead to self-taught developers with a bunch of best practices under the hood. I hope you are such a good teacher =). We need not PHP or Java developers, we need good and creative designers that can adapt to new tools. One language

[PHP] Images can execute php script?

2012-09-23 Thread admin
Today I seen a hack into php that has rocked me to my foundation. I seen a picture uploaded onto a server using php and when php displayed the image, phpinfo() was executed and displayed. Does this problem exist in PHP 5.2.17 +? How do you stop it? Sorry, I have never known of this before today.

Re: [PHP] Images can execute php script?

2012-09-23 Thread Bastien
Bastien Koert On 2012-09-23, at 11:57 AM, admin ad...@buskirkgraphics.com wrote: Today I seen a hack into php that has rocked me to my foundation. I seen a picture uploaded onto a server using php and when php displayed the image, phpinfo() was executed and displayed. Does this problem

Re: [PHP] Images can execute php script?

2012-09-23 Thread shiplu
On Sun, Sep 23, 2012 at 9:57 PM, admin ad...@buskirkgraphics.com wrote: Today I seen a hack into php that has rocked me to my foundation. I seen a picture uploaded onto a server using php and when php displayed the image, phpinfo() was executed and displayed. Does this problem exist in PHP

RE: [PHP] Images can execute php script?

2012-09-23 Thread admin
Jpgs can hold other data rather than image data One thing to try is to run strip_tags($image) to remove any php code http://stackoverflow.com/questions/3499173/my-php-site-was-hacked-by-codes-u ploaded-as-image http://josephkeeler.com/2009/04/php-upload-security-the-1x1-jpeg-hack/ Bastien

Re: [PHP] Images can execute php script?

2012-09-23 Thread Maciek Sokolewicz
On 23-09-2012 21:30, admin wrote: Jpgs can hold other data rather than image data One thing to try is to run strip_tags($image) to remove any php code http://stackoverflow.com/questions/3499173/my-php-site-was-hacked-by-codes-u ploaded-as-image

Re: [PHP] Day after Friday

2012-09-23 Thread Paul M Foster
On Sun, Sep 23, 2012 at 09:33:33AM -0400, Tedd Sperling wrote: On Sep 22, 2012, at 3:59 PM, Paul M Foster pa...@quillandmouse.com wrote: On Sat, Sep 22, 2012 at 01:05:51PM -0400, Tedd Sperling wrote: Hi gang: I know it's the Day after Friday, but I'm asking a off-topic question

[PHP] Array unset()

2012-09-23 Thread Ron Piggott
I am wondering if there is a way to remove from an array where the value is 0 (“zero”) Array example: $total_points_awarded = array( 1 = 17, 3 = 14, 4 = 0, 5 = 1, 6 = 0 ); In this example I would like to remove element # 4 and # 6. The “key” ( 1,3,4,5,6 ) represents the member’s account

Re: [PHP] Array unset()

2012-09-23 Thread Ken Robinson
At 08:50 PM 9/23/2012, Ron Piggott wrote: I am wondering if there is a way to remove from an array where the value is 0 (“zero”) Array example: $total_points_awarded = array( 1 = 17, 3 = 14, 4 = 0, 5 = 1, 6 = 0 ); In this example I would like to remove element # 4 and # 6. The