[PHP] E-mail injection question

2010-11-21 Thread Gary
;)){$newlinecounter++;} } if ($newlinecounter >= 1){ die('die scum die'); } ?> Thank you, Gary __ Information from ESET Smart Security, version of virus signature database 5636 (20101121) __ The message was checked by ESET Smart Security. http://www.eset.c

Re: [PHP] MySQL Query Help

2010-11-21 Thread PW
SELECT * FROM products p LEFT JOIN criteria_values cv ON p.key=cv.key LEFT JOIN criteria c ON cv.key=c.key WHERE c.value IS NOT NULL Hard to answer without more detail, but I am guessing the answer will be something like the above. Your question makes it hard to understand whether c or cv is jo

Re: [PHP] E-mail injection question

2010-11-21 Thread Adam Richardson
On Sun, Nov 21, 2010 at 12:02 PM, Gary wrote: > I have been testing various scripts to kill email injection attacks. I > adapted this script and it seems to work well. Does anyone see any issues > with this? > > $newlinecounter = 0; > foreach($_POST as $key => $val_newline){ > if(stristr($val_

RE: [PHP] MySQL Query Help

2010-11-21 Thread Ben Miller
SELECT * FROM products p LEFT JOIN criteria_values cv ON p.key=cv.key LEFT JOIN criteria c ON cv.key=c.key WHERE c.value IS NOT NULL Hard to answer without more detail, but I am guessing the answer will be something like the above. Your question makes it hard to understand whether c or cv is joi

Re: [PHP] Problem with functions and arrays...

2010-11-21 Thread Tamara Temple
On Nov 20, 2010, at 5:31 PM, Jason Pruim wrote: Maybe it's just me, but using the name of a global as a function parameter just seems like a bad idea. Yes, you can do it. Should you? I think not. Especially, as, you are passing it a scalar below and treating it here like the global arra

[PHP] How to install ext/intl on Mac OSX (NumberFormatter and so on)

2010-11-21 Thread cimodev
Hallo Apple is shipping PHP 5.3.3 on Mac OSX Darwin without the PECL-Extension "ext/intl". So i tried to install ext/intl with "pecl install intl". The Error Message is: /private/var/tmp/apache_mod_php/apache_mod_php-53~1/Build/tmp/pear/temp/intl/collator/collator_class.c:92: error: duplicate ‘s

[PHP] range header in curl?

2010-11-21 Thread Tontonq Tontonq
hi im downloading files from h0tf1le as a premium user by curl i want to do something like streaming i want it resend to user what it got from server i couldnt find any resource about curl and streaming the executed source so i did by the Range header but sometimes i see files are corrupted i check

Re: [PHP] range header in curl?

2010-11-21 Thread Michael Shadle
Is range the right header to be sending? I thought it was something else. Also I believe there is a curl_setopt option for range... Look at php.net's predefined constants for the curl modul On Nov 21, 2010, at 3:05 PM, Tontonq Tontonq wrote: > hi im downloading files from h0tf1le as a premium

Re: [PHP] range header in curl?

2010-11-21 Thread shiplu
On Mon, Nov 22, 2010 at 5:05 AM, Tontonq Tontonq wrote: > hi im downloading files from h0tf1le as a premium user by curl i want to do > something like streaming i want it resend to user what it got from server > i couldnt find any resource about curl and streaming the executed source > so i did b

Re: [PHP] PHP Sockets, problem with remote execution (exec/system)

2010-11-21 Thread 惠新宸
Hi: is there a chance that there is a "Listen 8133" in your apache2 configure file? always no as "httpd.conf" or *.conf in the apache2/conf/extra folder. thanks Best regards 惠新宸 Xinchen Hui http://www.laruence.com/ On 2010/11/19 15:18, Ronny Tiebel wrote: Good Morning List ;) ive all

Re: [PHP] PHP Sockets, problem with remote execution (exec/system)

2010-11-21 Thread Ronny Tiebel
Hi Xinchen, thank you for your reply. Nope, Apache runs in its standard configuration and is listening on "*:80" and "*:443", quiet as normal. But after some tests yesterday and after checking the init scripts of apache2 and openvpn (where that problem occours) ive testet to invoke the "apache2c

Re: [PHP] My project requires creating office documents on PHP. Any recommendations on what to use?

2010-11-21 Thread Aman Singh
Not sure of all office documents, but for Excel, you may want to try out http://phpexcel.codeplex.com/?ocid=soc-c-in-loc--cfp. >From the page: "Project pr