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 “

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

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

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 http://josephkeeler.com/2009/04/php-upload-securi

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

Re: [PHP] Images can execute php script?

2012-09-23 Thread shiplu
On Sun, Sep 23, 2012 at 9:57 PM, admin 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 5.2.17 +? > How do y

Re: [PHP] Images can execute php script?

2012-09-23 Thread Bastien
Bastien Koert On 2012-09-23, at 11:57 AM, "admin" 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 5.2.17

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

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 i

Re: [PHP] Day after Friday

2012-09-23 Thread tamouse mailing lists
On Sun, Sep 23, 2012 at 8:33 AM, Tedd Sperling wrote: > On Sep 22, 2012, at 3:59 PM, Paul M Foster 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. >>> >>> N

Re: [PHP] Day after Friday

2012-09-23 Thread Tedd Sperling
On Sep 22, 2012, at 3:59 PM, Paul M Foster 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, but it got