Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread Daniel Fenn
Thank you for the heads up. On 9/26/12, tamouse mailing lists wrote: > On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown wrote: >> Just a three-list cross-post to bring it to everyone's attention >> at once, in case you weren't already aware. It was announced today >> that a compromised SourceF

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread tamouse mailing lists
On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown wrote: > Just a three-list cross-post to bring it to everyone's attention > at once, in case you weren't already aware. It was announced today > that a compromised SourceForge mirror was distributing a malicious > file with the phpMyAdmin package

[PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread Daniel Brown
Afternoon, folks; Just a three-list cross-post to bring it to everyone's attention at once, in case you weren't already aware. It was announced today that a compromised SourceForge mirror was distributing a malicious file with the phpMyAdmin package that allows an attacker to arbitrarily

[PHP] Re: memory allocation

2012-09-25 Thread Maciek Sokolewicz
On 25-09-2012 12:49, Marcelo Bianchi wrote: Dear list, I developed a script that have to create considerable array of integer numbers in memory. Currently my script has to accommodate in memory two arrays of around 120.000 numbers (for one year of data, I would like to reach a 2 years per query)

[PHP] SOAP problem

2012-09-25 Thread George Pitcher
Hi, My first post for several years. Using PHP 5.2.6 on Debian. I'm trying to connect to an external SOAP server where no WSDL file exists. I've been unsuccessful in getting a response which I've put down to the message being sent. My code is: $params = array(

Re: [PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
On 09/25/2012 02:40 PM, shiplu wrote: Also if the final data on presentation layer is very small you can calculate it in mysql using stored procedure. okay, also something to try. thank you ! regards, marcelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] memory allocation

2012-09-25 Thread shiplu
I would like to see how you are reading data from database? There are many ways to reduce memory usage. Here is a very common way reduce memory. instead of $res = mysql_query("select * from table1 limit 1000"); while($row = mysql_fetch_assoc($res)){ /// process row. } Do this, for($x = 0

Re: [PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
Uhm, Okay, I get it ... I am loading all at once, will try this out. Here is what I do: -- begin code $network = "IA"; $station = "BJI"; $channel = "BHZ"; $year = 2011; $top = NULL; $result = mysql_query('select '.$year.' as year, net, station, loc, channel, start_day, start_time, end_day, e

Re: [PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
Hi Matijn, That is good test, to install php 32bit side to side with the 64bit to test. Will see how hard is to accomplish that. regards, Marcelo On 09/25/2012 01:58 PM, Matijn Woudt wrote: On Tue, Sep 25, 2012 at 12:49 PM, Marcelo Bianchi wrote: Dear list, I developed a script that have

Re: [PHP] install PHP 5.4 by RPM

2012-09-25 Thread Matijn Woudt
On Tue, Sep 25, 2012 at 1:48 PM, Jonathan Sundquist wrote: > What version of centso are you running? > > - "The cold winds are rising" > On Sep 24, 2012 10:28 PM, "lx" wrote: > >> Hello: >>I have installed the PHP and Apache by RPM, and the version of rpm >> packets is: >> >> httpd-2.2.3-

Re: [PHP] memory allocation

2012-09-25 Thread Matijn Woudt
On Tue, Sep 25, 2012 at 12:49 PM, Marcelo Bianchi wrote: > Dear list, > > I developed a script that have to create considerable array of integer > numbers in memory. Currently my script has to accommodate in memory two > arrays of around 120.000 numbers (for one year of data, I would like to > rea

Re: [PHP] install PHP 5.4 by RPM

2012-09-25 Thread Jonathan Sundquist
What version of centso are you running? - "The cold winds are rising" On Sep 24, 2012 10:28 PM, "lx" wrote: > Hello: >I have installed the PHP and Apache by RPM, and the version of rpm > packets is: > > httpd-2.2.3-63.el5.centos.1.x86_64.rpm > apr-1.2.7-11.el5_3.1.x86_64.rpm > apr-util-1

[PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
Dear list, I developed a script that have to create considerable array of integer numbers in memory. Currently my script has to accommodate in memory two arrays of around 120.000 numbers (for one year of data, I would like to reach a 2 years per query) that are loaded from a mysql server. I

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-25 Thread AmirBehzad Eslami
Wow. David. That was a great help with every detail ! Thanks for sharing that with us. One side question: Without OOP, how do you handle Unit Tests? Do you know a Testing framework for procedural code?