Re: [PHP] securing a script that exec()s

2012-03-30 Thread tamouse mailing lists
On Fri, Mar 30, 2012 at 7:05 AM, David OBrien wrote: > Find a way to do it using PHP's imagemagick extensions > > http://php.net/manual/en/book.imagick.php > > On Fri, Mar 30, 2012 at 5:56 AM, rene7705 wrote: > >> Hi. >> >> I have a script that uses imagemagick's convert command on the commandlin

[PHP] Could apc_fetch return a pointer to data in shared memory ?

2012-03-30 Thread Simon
Or: Why doesn't PHP have Applications variables like ASP.NET (and node.js) ? Hi, I'm working on optimising a php application (Drupal). The best optimisation I've found so far is to use APC to store various bits of Drupal data in RAM. The problem with this is that with Drupal requiring say 50Mb

Re: [PHP] Node.PHP

2012-03-30 Thread Michael Save
Because "normal" PHP is not asynchronous. Also, I kind of doubt you can outperform node.js with standard PHP. On Sat, Mar 31, 2012 at 11:56 AM, German Geek wrote: > Maybe stupid question, but is node.php really necessary? If you can program > PHP and it performs better than node.js, why would yo

Re: [PHP] Node.PHP

2012-03-30 Thread German Geek
Maybe stupid question, but is node.php really necessary? If you can program PHP and it performs better than node.js, why would you need to have another wrapper around things. Why not just program "normal" PHP? twitter: geekdenz Blog: http://www.thheuer.com On Sat, Mar 31, 2012 at 10:39 AM, Hiyarl

Re: [PHP] Node.PHP

2012-03-30 Thread Hiyarli Baba
As like Micheal's said said just keep up alive the project I was preferes node.js to pho only when i needed send millions of ssl api requests. nodejs sends 1k https request in onky 2 second including parsing required elements from database , check the returned source write to file if you want deve

Re: [PHP] Thinking out loud - a continuation...

2012-03-30 Thread Robert Cummings
On 12-03-27 11:11 AM, Jay Blanchard wrote: [snip]On 3/27/2012 12:21 AM, Robert Cummings wrote: >> [-- SNIP --] Essentially, entries at the root and entries for the children are just auto indexed array items but the actual entries in those arrays retain the associative index structure for retrie

[PHP] PHP preg_replace_callback with unicode

2012-03-30 Thread Jimmy Chen
I wrote a simple script below to simulate my problem. Both my string and pattern contain unicode characters. Basically, if I run it from command line (php -f test.php), it prints "match" as expected. But if I run it through web server (apache, http://localhost/test.php), it prints "no match". I

Re: [PHP] securing a script that exec()s

2012-03-30 Thread Mike Mackintosh
On Mar 30, 2012, at 9:25 AM, rene7705 wrote: > On Fri, Mar 30, 2012 at 3:16 PM, Peter Bauer wrote: > >> On Fri, Mar 30, 2012 at 11:56:41AM +0200, rene7705 wrote: >>> ... >>> But unfortunately, $_SERVER['REMOTE_ADDR'] is my external IP, and >>> $_SERVER['SERVER_ADDR'] is my internal IP. >>> >>>

[PHP] Surge 2012 CFP is Open!

2012-03-30 Thread Katherine Jeschke
Surge 2012, the scalability conference, September 27-28, Baltimore, MD has opened its CFP. Please visit http://omniti.com/surge/2012/cfp for details. -- Katherine Jeschke Director of Marketing and Creative Services OmniTI Computer Consulting, Inc. 7070 Samuel Morse Drive, Ste.150 Columbia, MD 210

Re: [PHP] securing a script that exec()s

2012-03-30 Thread rene7705
On Fri, Mar 30, 2012 at 3:16 PM, Peter Bauer wrote: > On Fri, Mar 30, 2012 at 11:56:41AM +0200, rene7705 wrote: > > ... > > But unfortunately, $_SERVER['REMOTE_ADDR'] is my external IP, and > > $_SERVER['SERVER_ADDR'] is my internal IP. > > > > How would I best fix this? > > Simply log on your bo

Re: [PHP] securing a script that exec()s

2012-03-30 Thread David OBrien
Sender: dgobr...@gmail.com Subject: Re: [PHP] securing a script that exec()s Message-Id: Recipient: adam.nicho...@hl.co.uk __ This email has been scanned by the Symantec Email Security.cloud service. For more information please

Re: [PHP] securing a script that exec()s

2012-03-30 Thread Peter Bauer
On Fri, Mar 30, 2012 at 11:56:41AM +0200, rene7705 wrote: > ... > But unfortunately, $_SERVER['REMOTE_ADDR'] is my external IP, and > $_SERVER['SERVER_ADDR'] is my internal IP. > > How would I best fix this? Simply log on your box via ssh (if its a unix system) and run your script from console o

[PHP] Re: request for feedback on logAndHandler

2012-03-30 Thread rene7705
bit bad timing, but i've decided to try out ubuntu instead of windows on that skatescene.biz machine.. i'll try to have the test url up asap or move it to my hoster within a few hours.

Re: [PHP] securing a script that exec()s

2012-03-30 Thread David OBrien
Find a way to do it using PHP's imagemagick extensions http://php.net/manual/en/book.imagick.php On Fri, Mar 30, 2012 at 5:56 AM, rene7705 wrote: > Hi. > > I have a script that uses imagemagick's convert command on the commandline > to get it's work done. > These calls to exec('convert [params]

Re: [PHP] securing a script that exec()s

2012-03-30 Thread Bastien
Bastien Koert On 2012-03-30, at 5:56 AM, rene7705 wrote: > Hi. > > I have a script that uses imagemagick's convert command on the commandline > to get it's work done. > These calls to exec('convert [params]') take params from the end-user via a > html form, so is very unsecure. > > The inten

[PHP] Re: [PHP-DEV] PHP 5.4.1 RC1 Released

2012-03-30 Thread Nikita Popov
On Fri, Mar 30, 2012 at 8:23 AM, Stas Malyshev wrote: > Hi! > > We would like to announce the first RC of the 5.4.1 version. This will > be mainly a bugfix version, including all bugfixes that did not make the > cut for 5.4.0 and new issues since then. Please test it and notify us of > any problem

[PHP] securing a script that exec()s

2012-03-30 Thread rene7705
Hi. I have a script that uses imagemagick's convert command on the commandline to get it's work done. These calls to exec('convert [params]') take params from the end-user via a html form, so is very unsecure. The intention is that the end-user only runs this script on localhost, from localhost.

Re: [PHP] request for feedback on logAndHandler

2012-03-30 Thread ma...@behnke.biz
rene7705 hat am 30. März 2012 um 11:29 geschrieben: > I thought now would be a good time to get some early feedback on what else > I can improve for this component, at least from an end-user perspective (I > haven't yet updated the download zip on http://mediabeez.ws with these > latest changes

RE: [PHP] Watch out for automatic type casting

2012-03-30 Thread Arno Kuhl
-Original Message- From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 29 March 2012 07:19 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Watch out for automatic type casting Hi, Arno FYI: I found a page in the php-manual that's exactly for that: htt

[PHP] PHP 5.4.1 RC1 Released

2012-03-30 Thread Stas Malyshev
Hi! We would like to announce the first RC of the 5.4.1 version. This is mainly a bugfix release, including all fixes that did not make the cut for 5.4.0 and new issues since then. Please test it and notify us of any problems you may encounter. The full list of the fixes is as always in the NEWS f