php-general Digest 14 Dec 2013 13:03:52 -0000 Issue 8448

2013-12-14 Thread php-general-digest-help
php-general Digest 14 Dec 2013 13:03:52 - Issue 8448 Topics (messages 322570 through 322570): Re: Array + php 322570 by: marco.behnke.biz Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail:

php-general Digest 28 Nov 2013 19:11:08 -0000 Issue 8440

2013-11-29 Thread php-general-digest-help
php-general Digest 28 Nov 2013 19:11:08 - Issue 8440 Topics (messages 322515 through 322527): Re: echo count(false); == 1 ?! 322515 by: Camilo Sperberg 322516 by: Tsvetan Nikolov 322517 by: Aziz Saleh 322518 by: Tim Behrendsen 322519 by: Daevid

php-general Digest 24 Nov 2013 20:39:26 -0000 Issue 8435

2013-11-24 Thread php-general-digest-help
php-general Digest 24 Nov 2013 20:39:26 - Issue 8435 Topics (messages 322493 through 322495): Re: DSN for MS SQL Server Express 2005 322493 by: marco.behnke.biz 322494 by: Tomás Corrales Lemoine PHP tutorial 322495 by: Martin Christian Administrivia: To subscribe

php-general Digest 21 Nov 2013 07:23:33 -0000 Issue 8431

2013-11-21 Thread php-general-digest-help
php-general Digest 21 Nov 2013 07:23:33 - Issue 8431 Topics (messages 322475 through 322478): Re: form submit send SMS 322475 by: Camilo Sperberg 322476 by: Bálint Horváth 322477 by: Jonathan Sundquist An upload that was, but now isn't... 322478 by: PHP

php-general Digest 17 Nov 2013 22:02:38 -0000 Issue 8428

2013-11-18 Thread php-general-digest-help
php-general Digest 17 Nov 2013 22:02:38 - Issue 8428 Topics (messages 322467 through 322468): Re: save $_GLOBALS to a database field 322467 by: Robert Cummings 322468 by: marco.behnke.biz Administrivia: To subscribe to the digest, e-mail:

php-general Digest 14 Nov 2013 10:44:41 -0000 Issue 8425

2013-11-15 Thread php-general-digest-help
php-general Digest 14 Nov 2013 10:44:41 - Issue 8425 Topics (messages 322447 through 322454): Re: regarding print_r() 322447 by: George Wilson 322448 by: Shawn McKenzie 322452 by: Tamara Temple 322453 by: Sachin Raut Date sequence calculating 322449

[PHP] Re: How to download a multi-part file at the server side?

2013-11-02 Thread Ajay Garg
I just came across http://www.w3schools.com/php/php_file_upload.asp, and tested it.. It works fine, when the file is uploaded via a form. It does seem that the client-method might indeed play a role. Here is my Java code for uploading the file ::

Re: [PHP] How to download a multi-part file at the server side?

2013-11-02 Thread Ajay Garg
Hi Aziz. Thanks for the reply. Unfortunately, making the change suggested by you does not make any difference :( Sorry, Thanks and Regards On Sat, Nov 2, 2013 at 10:51 PM, Aziz Saleh azizsa...@gmail.com wrote: On Sat, Nov 2, 2013 at 1:03 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi

Re: [PHP] How to download a multi-part file at the server side?

2013-11-02 Thread Aziz Saleh
On Sat, Nov 2, 2013 at 1:03 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. 1. I could have the proper $_FILES[userfile][name] been echoed back, by replacing ContentBody cbFile = new FileBody(file, image/png); with

php-general Digest 31 Oct 2013 07:14:27 -0000 Issue 8414

2013-11-01 Thread php-general-digest-help
php-general Digest 31 Oct 2013 07:14:27 - Issue 8414 Topics (messages 322393 through 322396): Re: Starting with XML 322393 by: Stuart Dallas Re: Apache/PHP exploit 322394 by: Tamara Temple 322395 by: Joshua Kehn 322396 by: Camilo Sperberg Administrivia: To

Re: [PHP] preg_replace

2013-11-01 Thread Adam Szewczyk
Hi, On Fri, Nov 01, 2013 at 11:06:29AM -0400, leam hall wrote: Despite my best efforts to ignore preg_replace... Why? :) PHP Warning: preg_replace(): Delimiter must not be alphanumeric or backslash Thoughts? You are just using it wrong.

Re: [PHP] FYI: Apache/PHP exploit

2013-10-31 Thread Camilo Sperberg
On 31 okt. 2013, at 01:55, Joshua Kehn j...@kehn.us wrote: Summary for those on phones? Best, -Josh ___ http://byjakt.com Currently mobile On Oct 30, 2013, at 8:37 PM, Tamara Temple tamouse.li...@gmail.com wrote: This info cruised by my screen from G+

php-general Digest 26 Oct 2013 08:44:06 -0000 Issue 8410

2013-10-26 Thread php-general-digest-help
php-general Digest 26 Oct 2013 08:44:06 - Issue 8410 Topics (messages 322376 through 322384): Re: framework or not 322376 by: Stuart Dallas 322378 by: Robert Cummings 322380 by: Stuart Dallas 322381 by: David Harkness News Regard Attack; Announcing Official

php-general Digest 25 Oct 2013 14:01:46 -0000 Issue 8409

2013-10-26 Thread php-general-digest-help
php-general Digest 25 Oct 2013 14:01:46 - Issue 8409 Topics (messages 322370 through 322375): Persistent connections 322370 by: Nibin V M 322371 by: Stuart Dallas 322372 by: Nibin V M 322373 by: Stuart Dallas 322374 by: Nibin V M Re: framework or not

Re: [PHP] Persistent connections

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 12:51, Nibin V M nibi...@gmail.com wrote: Thank you for the quick response Stuart...one more doubt..at http://php.net/manual/en/features.persistent-connections.php they states = This means that when the same client makes a second request to the server, it may

[PHP] Persistent connections

2013-10-26 Thread Nibin V M
Hello, I have been reading docs and many are telling that persistent connections are kept open indefinitely. But I found in PHP docs that it will not close after script execution like requesting a page; so should it close after the request is over? So when exactly a persistent connection should

Re: [PHP] I am puzzled. Error on one site, no error on the other

2013-10-26 Thread Aziz Saleh
On Fri, Oct 25, 2013 at 8:27 PM, Stephen stephe...@rogers.com wrote: Problem Situation I have two web sites on the same shared host. They share code for the control panel. When executed for one site I get a warning (reproducible always), but on the other there is no warning. One my home

Re: [PHP] framework or not

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 15:40, Robert Cummings rob...@interjinn.com wrote: On 13-10-25 10:17 AM, Stuart Dallas wrote: On 25 Oct 2013, at 15:01, Robert Cummings rob...@interjinn.com wrote: On 13-10-24 09:41 PM, Larry Garfield wrote: On 10/23/2013 08:51 AM, Jay Blanchard wrote: [snip] a

Re: [PHP] framework or not

2013-10-26 Thread Robert Cummings
On 13-10-24 09:41 PM, Larry Garfield wrote: On 10/23/2013 08:51 AM, Jay Blanchard wrote: [snip] a bitter rant[/snip] Dang Larry - bad night? That wasn't a bitter rant. You haven't seen me bitter. :-) That was tough love to the OP. I don't see a reason to pussyfoot around the

Re: [PHP] framework or not

2013-10-25 Thread Stuart Dallas
On 25 Oct 2013, at 15:01, Robert Cummings rob...@interjinn.com wrote: On 13-10-24 09:41 PM, Larry Garfield wrote: On 10/23/2013 08:51 AM, Jay Blanchard wrote: [snip] a bitter rant[/snip] Dang Larry - bad night? That wasn't a bitter rant. You haven't seen me bitter. :-) That was

Re: [PHP] Persistent connections

2013-10-25 Thread Stuart Dallas
On 25 Oct 2013, at 11:10, Nibin V M nibi...@gmail.com wrote: I have been reading docs and many are telling that persistent connections are kept open indefinitely. But I found in PHP docs that it will not close after script execution like requesting a page; so should it close after the

Re: [PHP] framework or not

2013-10-24 Thread Marc Guay
I'm looking forward to the day that I'll know everything and can stop all this learning nonsense. Sounds like the attitude most people take when they sit down to a keyboard. (Ref: http://xkcd.com/386/) Off-topic is the new on-topic Marc -- PHP General Mailing List (http://www.php.net/) To

php-general Digest 23 Oct 2013 13:51:13 -0000 Issue 8406

2013-10-23 Thread php-general-digest-help
php-general Digest 23 Oct 2013 13:51:13 - Issue 8406 Topics (messages 322351 through 322352): Re: framework or not 322351 by: Robert Cummings 322352 by: Jay Blanchard Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To

Re: [PHP] framework or not

2013-10-23 Thread Robert Cummings
On 13-10-22 05:38 PM, Larry Garfield wrote: If you need more convincing, I will cite Fred Brooks: http://www.cs.nott.ac.uk/~cah/G51ISS/Documents/NoSilverBullet.html Excellent article, thanks for the pointer. So many assertions have stood the test of time thus far. Cheers, Rob. -- E-Mail

Re: [PHP] framework or not

2013-10-23 Thread Larry Martell
On Wed, Oct 23, 2013 at 10:26 AM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Oct 23, 2013, at 12:04 AM, Robert Cummings rob...@interjinn.com wrote: On 13-10-22 05:38 PM, Larry Garfield wrote: If you need more convincing, I will cite Fred Brooks:

Re: [PHP] framework or not

2013-10-23 Thread Larry Martell
On Wed, Oct 23, 2013 at 11:08 AM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Oct 23, 2013, at 12:34 PM, Larry Martell la...@software-horizons.com wrote: Was it Brian Kernighan who said the 3 rules of programming are: 1. Keep it simple. 2. Build it in stages. 3. Let someone else do

php-general Digest 20 Oct 2013 15:50:29 -0000 Issue 8402

2013-10-20 Thread php-general-digest-help
php-general Digest 20 Oct 2013 15:50:29 - Issue 8402 Topics (messages 322325 through 322339): Re: Best Secure practice for uploading a csv file to import 322325 by: Ashley Sheridan 322326 by: Joshua Kehn Re: Algorithm Help 322327 by: German Geek 322334 by:

Re: [PHP] If date is greater than

2013-10-20 Thread Ashley Sheridan
On Sun, 2013-10-20 at 00:00 -0400, Bastien wrote: Thanks, Bastien On Oct 19, 2013, at 10:44 PM, John Taylor-Johnston jt.johns...@usherbrooke.ca wrote: I have date strings in my mysql db. -mm-dd. I want to parse to see if the date is greater than november 2011 and less

Re: [PHP] Algorithm Help

2013-10-20 Thread Ayush Ladia
Hi, Indeed making and maintaining the graph looks like the best approach here to tackle this problem , but what does not seem clear to me is this -- Suppose a family can host 5 children , then you need to find the set of 5 such nodes out of the total no. of nodes(assume 10) such that the total

Re: [PHP] Algorithm Help

2013-10-20 Thread German Geek
You don't need to maintain the history of which kids stay where unless you want to for other reasons. You just need to find the children that have staid the least amount of time together, which this approach would do for you. So, when 4 children stay together you say 1 together with 2 1 together

Re: [PHP] If date is greater than

2013-10-20 Thread Tedd Sperling
On Oct 20, 2013, at 4:01 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Yes, I was going to ask, why are you storing your dates as strings? MySQL has a perfectly good DATE type. It's also generally faster comparing dates within a MySQL query than PHP code. Thanks, Ash

Re: [PHP] Trying to understand what is happening in this code

2013-10-11 Thread Stuart Dallas
On 11 Oct 2013, at 16:20, Nathan Grey grey...@gmail.com wrote: Stuart, Jose - Thanks for your quick response. Are you saying that the processor echos all the html tags it sees. Is it doing something like this to the script: echo body echo h1The first twenty Fibonacci numbers:/h1 echo ul

php-general Digest 9 Oct 2013 07:14:21 -0000 Issue 8390

2013-10-09 Thread php-general-digest-help
php-general Digest 9 Oct 2013 07:14:21 - Issue 8390 Topics (messages 322263 through 322268): Re: php.ini 322263 by: Simon Schick 322264 by: Jim Giner 322265 by: Jim Giner 322266 by: Simon Schick 322267 by: Jim Giner 322268 by: Simon Schick

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
On 10/8/2013 11:13 AM, Simon Schick wrote: Hi, Jim I suggest to read this page of the tutorial. It seems, that it solves the questions, you posted here: http://www.php.net/manual/en/configuration.file.per-user.php Please be aware, that the ini-file is not re-read on every request, but after a

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
re: changing ini settings. If my running script modifies an ini setting I currently believe that that changed setting will apply to that specific process and any others that run after that from that same folder (since i have an ini file in each folder currently). Correct? And if I do make

Re: [PHP] php.ini

2013-10-09 Thread Simon Schick
Hi, Jim I suggest to read this page of the tutorial. It seems, that it solves the questions, you posted here: http://www.php.net/manual/en/configuration.file.per-user.php Please be aware, that the ini-file is not re-read on every request, but after a defined time. Neither are all settings

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
On 10/9/2013 3:14 AM, Simon Schick wrote: On Tue, Oct 8, 2013 at 9:50 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 10/8/2013 2:42 PM, Simon Schick wrote: On Tue, Oct 8, 2013 at 5:25 PM, Jim Giner jim.gi...@albanyhandball.com* *wrote: re: changing ini settings. If my running

php-general Digest 8 Oct 2013 14:48:05 -0000 Issue 8389

2013-10-08 Thread php-general-digest-help
php-general Digest 8 Oct 2013 14:48:05 - Issue 8389 Topics (messages 322258 through 322262): Re: PHP Fatal error: Call to undefined function () 322258 by: Stuart Dallas 322259 by: Michael Alaimo 322260 by: Stuart Dallas Re: date time problem 322261 by: Jim

[PHP] php.ini

2013-10-08 Thread Jim Giner
Can someone give me an understanding of how the .ini settings are located and combined? I am under the impression that there is a full settings .ini file somewhere up high in my host's server tree and that any settings I create in .ini files in each of my domain folders are appended/updated

php-general Digest 7 Oct 2013 13:24:41 -0000 Issue 8388

2013-10-07 Thread php-general-digest-help
php-general Digest 7 Oct 2013 13:24:41 - Issue 8388 Topics (messages 322243 through 322257): Re: date time problem 322243 by: Farzan Dalaee 322244 by: Jim Giner 322245 by: Farzan Dalaee 322247 by: Jim Giner 322248 by: Farzan Dalaee 322249 by:

[PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Michael Alaimo
We have a server that gets a large number of requests each month. After a period of time I began to see this error in our error logs this weekend. PHP Fatal error: Call to undefined function () It does not reference a function, so I found it odd. It did give a line to a function with

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Stuart Dallas
On 7 Oct 2013, at 14:24, Michael Alaimo malaimo...@gmail.com wrote: We have a server that gets a large number of requests each month. After a period of time I began to see this error in our error logs this weekend. PHP Fatal error: Call to undefined function () It does not reference a

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Michael Alaimo
public static function getInfo($params = array()) { $results = array(); $url = 'http://google.com'; $props = array ( 'key'= Yii::app()-params['param1'], 's'= Yii::app()-params['param2'] );

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Stuart Dallas
On 7 Oct 2013, at 14:34, Michael Alaimo malaimo...@gmail.com wrote: On Mon, Oct 7, 2013 at 9:29 AM, Stuart Dallas stu...@3ft9.com wrote: On 7 Oct 2013, at 14:24, Michael Alaimo malaimo...@gmail.com wrote: We have a server that gets a large number of requests each month. After a period

Re: [PHP] date time problem

2013-10-07 Thread Jim Giner
On 10/6/2013 11:21 PM, Romain CIACCAFAVA wrote: An easier way to do that would be using the diff() method of a DateTime object on another. Regards Romain Ciaccafava Romain - you were so right. A little less calculating to be done and I got the result I wished. For anyone interested here's

php-general Digest 6 Oct 2013 22:19:43 -0000 Issue 8387

2013-10-06 Thread php-general-digest-help
php-general Digest 6 Oct 2013 22:19:43 - Issue 8387 Topics (messages 322241 through 322242): Re: Algorithm Help 322241 by: Nickolas Whiting date time problem 322242 by: Jim Giner Administrivia: To subscribe to the digest, e-mail:

[PHP] date time problem

2013-10-06 Thread Jim Giner
I always hate dealing with date/time stuff in php - never get it even close until an hour or two goes by anyway I have this: // get two timestamp values $exp_time = $_COOKIE[$applid.expire]; $curr_time = time(); // get the difference $diff = $exp_time - $curr_time; // produce a display

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
You should use gmdate() if you want to how many hours left to expire $time_left = gmdate(H:i:s,$diff); Best Regards Farzan Dalaee On Oct 7, 2013, at 1:49, Jim Giner jim.gi...@albanyhandball.com wrote: I always hate dealing with date/time stuff in php - never get it even close until an

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire $time_left = gmdate(H:i:s,$diff); Best Regards Farzan Dalaee On Oct 7, 2013, at 1:49, Jim Giner jim.gi...@albanyhandball.com wrote: I always hate dealing with date/time stuff in

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
Try this please gmdate(H:i:s, $diff%86400) Best Regards Farzan Dalaee On Oct 7, 2013, at 2:12, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire $time_left = gmdate(H:i:s,$diff);

[PHP] After a PHP script timeout, Apache logs the error but may not cleanly exit the script

2013-10-06 Thread Meta Seller Admin
Hi. I'm wondering if anyone can help with this. We're using PHP and Apache, hosted on a dedicated server running Debian Linux. The specific versions in each case are mostly immaterial, as this problem has been around since Debian 6, and is still present in Debian 7; in the meantime we've been

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 6:49 PM, Farzan Dalaee wrote: Try this please gmdate(H:i:s, $diff%86400) Best Regards Farzan Dalaee On Oct 7, 2013, at 2:12, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
Its so freaky Best Regards Farzan Dalaee On Oct 7, 2013, at 2:29, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/6/2013 6:49 PM, Farzan Dalaee wrote: Try this please gmdate(H:i:s, $diff%86400) Best Regards Farzan Dalaee On Oct 7, 2013, at 2:12, Jim Giner

Re: [PHP] date time problem

2013-10-06 Thread Jonathan Sundquist
This should help you out http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php On Oct 6, 2013 6:07 PM, Farzan Dalaee farzan.dal...@gmail.com wrote: Its so freaky Best Regards Farzan Dalaee On Oct 7, 2013, at 2:29, Jim Giner jim.gi...@albanyhandball.com

Re: [PHP] date time problem

2013-10-06 Thread Aziz Saleh
Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes / 60), etc.. Aziz On Sun, Oct 6, 2013 at 7:07 PM, Farzan Dalaee farzan.dal...@gmail.comwrote: Its

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
Look at my code. The inputs are all timestamps so date should work, no? My question why am i getting an hour value in this case? jg On Oct 6, 2013, at 7:14 PM, Aziz Saleh azizsa...@gmail.com wrote: Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you

Re: [PHP] date time problem

2013-10-06 Thread Aziz Saleh
The resulting subtraction is not a valid timestamp, but rather the difference between the two timestamps in seconds . The resulting diff can be 1 if the timestamps are 1 seconds apart. The linkhttp://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-phpJonathan sent out

Re: [PHP] date time problem

2013-10-06 Thread Ashley Sheridan
On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes / 60), etc.. Aziz On Sun, Oct 6,

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 7:40 PM, Aziz Saleh wrote: The resulting subtraction is not a valid timestamp, but rather the difference between the two timestamps in seconds . The resulting diff can be 1 if the timestamps are 1 seconds apart. The

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 7:55 PM, Ashley Sheridan wrote: On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes

Re: [PHP] date time problem

2013-10-06 Thread Romain CIACCAFAVA
An easier way to do that would be using the diff() method of a DateTime object on another. Regards Romain Ciaccafava Le 7 oct. 2013 à 03:10, Jim Giner jim.gi...@albanyhandball.com a écrit : On 10/6/2013 7:55 PM, Ashley Sheridan wrote: On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote:

php-general Digest 3 Oct 2013 12:47:41 -0000 Issue 8386

2013-10-03 Thread php-general-digest-help
php-general Digest 3 Oct 2013 12:47:41 - Issue 8386 Topics (messages 322235 through 322240): Re: Algorithm Help 322235 by: Stuart Dallas 322236 by: Serge Fonville 322237 by: Floyd Resler 322238 by: Marc Guay 322239 by: Tamara Temple 322240 by:

Re: [PHP] Algorithm Help

2013-10-03 Thread Floyd Resler
On Oct 2, 2013, at 6:23 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Oct 2, 2013, at 9:05 AM, Marc Guay marc.g...@gmail.com wrote: If you have the technology handy, it could also just be easier to wipe the children's memories after each stay. Marc -- PHP General Mailing

Re: [PHP] Algorithm Help

2013-10-03 Thread Nickolas Whiting
Round Robin algorithm should solve this and is a fairly quick alogrithm ... http://en.wikipedia.org/wiki/Round-robin An example can be found http://forrst.com/posts/PHP_Round_Robin_Algorithm-2zm On Tue, Oct 1, 2013 at 2:51 PM, Floyd Resler fres...@adex-intl.com wrote: Here's my task: A group

php-general Digest 2 Oct 2013 13:52:00 -0000 Issue 8385

2013-10-02 Thread php-general-digest-help
php-general Digest 2 Oct 2013 13:52:00 - Issue 8385 Topics (messages 38 through 322234): Re: delete S3 bucket with AWS PHP SDK 38 by: Aziz Saleh Re: Algorithm Help 39 by: John Meyer 322230 by: Aziz Saleh 322231 by: Ashley Sheridan 322232

Re: [PHP] Algorithm Help

2013-10-02 Thread Tamara Temple
On Oct 1, 2013, at 1:51 PM, Floyd Resler fres...@adex-intl.com wrote: Here's my task: A group of kids is going to be staying with different host families throughout the next 8 months. The number of kids staying with a host family can range from 2 to 10. When deciding which kids should

Re: [PHP] Algorithm Help

2013-10-02 Thread Stuart Dallas
On 1 Oct 2013, at 19:51, Floyd Resler fres...@adex-intl.com wrote: Here's my task: A group of kids is going to be staying with different host families throughout the next 8 months. The number of kids staying with a host family can range from 2 to 10. When deciding which kids should stay

Re: [PHP] Algorithm Help

2013-10-02 Thread Serge Fonville
It also depends on the amount of kids, families and stays. If the numbers are low, by hand may be a lot easier and faster Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl 2013/10/2 Tamara Temple tamouse.li...@gmail.com On Oct 1, 2013, at 1:51 PM, Floyd

Re: [PHP] Algorithm Help

2013-10-02 Thread Floyd Resler
On Oct 2, 2013, at 9:51 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Oct 1, 2013, at 1:51 PM, Floyd Resler fres...@adex-intl.com wrote: Here's my task: A group of kids is going to be staying with different host families throughout the next 8 months. The number of kids staying

Re: [PHP] Algorithm Help

2013-10-02 Thread Marc Guay
If you have the technology handy, it could also just be easier to wipe the children's memories after each stay. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Algorithm Help

2013-10-02 Thread Tamara Temple
On Oct 2, 2013, at 9:05 AM, Marc Guay marc.g...@gmail.com wrote: If you have the technology handy, it could also just be easier to wipe the children's memories after each stay. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 1 Oct 2013 18:51:44 -0000 Issue 8384

2013-10-01 Thread php-general-digest-help
php-general Digest 1 Oct 2013 18:51:44 - Issue 8384 Topics (messages 37 through 37): Algorithm Help 37 by: Floyd Resler Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail:

[PHP] Algorithm Help

2013-10-01 Thread Floyd Resler
Here's my task: A group of kids is going to be staying with different host families throughout the next 8 months. The number of kids staying with a host family can range from 2 to 10. When deciding which kids should stay together at a host family, the idea is for the system to put together

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-10-01 Thread Aziz Saleh
Hey Tim, It seems that deleteObject takes in 2 params, and you are sending it 1 param. I would recommend you look at the documentation and make sure you are sending the right params. Aziz On Sun, Sep 29, 2013 at 10:29 PM, Tim Dunphy bluethu...@gmail.com wrote: Hi Aziz, Thank you for

Re: [PHP] Algorithm Help

2013-10-01 Thread John Meyer
On 10/1/2013 12:51 PM, Floyd Resler wrote: Here's my task: A group of kids is going to be staying with different host families throughout the next 8 months. The number of kids staying with a host family can range from 2 to 10. When deciding which kids should stay together at a host family,

Re: [PHP] Algorithm Help

2013-10-01 Thread Aziz Saleh
DB or flatfile? I would create a matrix of all kids crossed with every kid. Everytime a kid is put in a home with another kid, ++ that index. When dispatching kids, sort by index ASC. Aziz On Tue, Oct 1, 2013 at 3:01 PM, John Meyer johnme...@pueblocomputing.comwrote: On 10/1/2013 12:51 PM,

Re: [PHP] Algorithm Help

2013-10-01 Thread Ashley Sheridan
On Tue, 2013-10-01 at 15:09 -0400, Aziz Saleh wrote: DB or flatfile? I would create a matrix of all kids crossed with every kid. Everytime a kid is put in a home with another kid, ++ that index. When dispatching kids, sort by index ASC. Aziz On Tue, Oct 1, 2013 at 3:01 PM, John

Re: [PHP] Algorithm Help

2013-10-01 Thread Floyd Resler
m 1375 GLENDALE MILFORD RD., CINCINNATI, OH 45215 On Oct 1, 2013, at 3:14 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2013-10-01 at 15:09 -0400, Aziz Saleh wrote: DB or flatfile? I would create a matrix of all kids crossed with every kid. Everytime a kid is put in a

Re: [PHP] Algorithm Help

2013-10-01 Thread Serge Fonville
Assuming you don't have to be exact, somthing similar to this might work. Assign each kid to a host family randomly for each kid, check how frequently it has been combined with the kids in its assigned family. if it is too close, swap with a different family when all kids in that family are

php-general Digest 30 Sep 2013 18:03:46 -0000 Issue 8383

2013-09-30 Thread php-general-digest-help
php-general Digest 30 Sep 2013 18:03:46 - Issue 8383 Topics (messages 322219 through 36): Re: delete S3 bucket with AWS PHP SDK 322219 by: Ashley Sheridan 31 by: Aziz Saleh 32 by: Tim Dunphy 33 by: Aziz Saleh 35 by: Tim Dunphy Re:

[PHP] SOAP: Is correct to override XML standards?

2013-09-30 Thread buzon
I am working with some WSDL call for a provider. The strange thing is that the SOAP used (for me, as client) should include an 'xml' element, and it is supported by the Php constructor, even that is not correct under XML syntaxis. Why? Is somekind of not validation? This works: ?php

php-general Digest 29 Sep 2013 16:30:23 -0000 Issue 8382

2013-09-29 Thread php-general-digest-help
php-general Digest 29 Sep 2013 16:30:23 - Issue 8382 Topics (messages 322207 through 322218): Re: Switch Statement 322207 by: Aziz Saleh 322209 by: Jim Giner 322210 by: Jim Giner 322212 by: Ethan Rosenberg 322213 by: Ethan Rosenberg 322214 by:

[PHP] Running a command without shell

2013-09-29 Thread vitalif
Hi! Is it possible to run a command and capture its output via an FD (like in proc_open()), but without using the shell? As far as I can see now there is no way to do it. I think that's a simple feature, maybe just add it to proc_open()? (for example run command directly using exec() if the

Re: [PHP] Switch Statement

2013-09-29 Thread Aziz Saleh
What is the output? On Sun, Sep 29, 2013 at 1:34 AM, Ethan Rosenberg erosenb...@hygeiabiomedical.com wrote: On 09/28/2013 10:53 PM, Aziz Saleh wrote: Ethan, can you do a var_dump instead of print_r. It might be that next_step has spaces in it causing the switch to not match. Aziz

[PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
Hi All, I am attempting to delete an empty S3 bucket using the AWS PHP SDK. Here's how they describe the process in the docs: $result = $client-deleteBucket(array( // Bucket is required 'Bucket' = 'string', )); You can find the full entry here: AWS PHP SDK Delete Bucket

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Ashley Sheridan
On Sun, 2013-09-29 at 12:30 -0400, Tim Dunphy wrote: Hi All, I am attempting to delete an empty S3 bucket using the AWS PHP SDK. Here's how they describe the process in the docs: $result = $client-deleteBucket(array( // Bucket is required 'Bucket' = 'string', )); You

Re: [PHP] Switch Statement

2013-09-29 Thread mrfroasty
Hello, I suggest you put default in that switch statement and var_dump the $_POST.That should be enough for a programmer to pin point what goes wrong. P:S **You might want to consider versioning your codes to go back into its history to see what has changed. Muhsin On 09/29/2013 04:33 AM,

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Aziz Saleh
Hi Tim, Is the call working? Does it actually get deleted? This could just be an issue (which I see alot) where developers do not check for variables or preset them before usage, causing those notices to come up (pretty harmless most of the times). Aziz On Sun, Sep 29, 2013 at 12:30 PM, Tim

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
Hey guys, Sorry about that i should have posted the full code to give you some idea of context. Anyway, here it is: ?php require_once 'sdk.class.php'; if (isset($_POST['submit'])) { * $bucket_name = $_POST['$bucket_name'];* // Create the S3 Object from the SDK *$s3 = new AmazonS3();* *

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Aziz Saleh
No Problem, the issue is that you referring to the invalid post element $bucket_name as opposed to the correct on bucket_name. *$bucket_name = $_POST['$bucket_name'];* Should be *$bucket_name = $_POST['bucket_name'];* Aziz On Sun, Sep 29, 2013 at 3:28 PM, Tim Dunphy bluethu...@gmail.com

Re: [PHP] Re: Sending PHP mail with Authentication

2013-09-29 Thread Paul M Foster
On Fri, Sep 27, 2013 at 12:06:30AM +0200, Maciek Sokolewicz wrote: [snip] I'm sure I'm going to annoy people with this, but I would advise to never use PEAR. It's the biggest load of extremely badly coded PHP you'll ever find. Creating an SMTP client (with the purpose of just sending mail)

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
Hi Aziz, Thank you for getting back to me! I appreciate you spotting that error. So I corrected that ?php require_once 'sdk.class.php'; if (isset($_POST['submit'])) { * $bucket_name = $_POST['bucket_name'];* // Create the S3 Object from the SDK $s3 = new AmazonS3(); * $result =

php-general Digest 28 Sep 2013 12:26:53 -0000 Issue 8380

2013-09-28 Thread php-general-digest-help
php-general Digest 28 Sep 2013 12:26:53 - Issue 8380 Topics (messages 322200 through 322200): Re: How to capture uploaded file data 322200 by: Bastien Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the

php-general Digest 29 Sep 2013 02:33:32 -0000 Issue 8381

2013-09-28 Thread php-general-digest-help
php-general Digest 29 Sep 2013 02:33:32 - Issue 8381 Topics (messages 322201 through 322206): create a local temp table in local machine 322201 by: iccsi 322202 by: Bastien 322203 by: iccsi 322204 by: Bastien 322205 by: iccsi Switch Statement

Re: [PHP] How to capture uploaded file data

2013-09-28 Thread Bastien
Thanks, Bastien On Sep 27, 2013, at 12:56 AM, Mariusz Drozdowski scheme...@wp.pl wrote: Hi all php experts, I would like to ask you all a question, I hope this is the right place to ask it. I'm writing a PHP extension now in c/c++. User uploads a file (could be POST or PUT method,

[PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
I need create a local table on the local machine. I would like to know is it possible to down on server side or client side or jQuery to do the work. Your information and help is great appreciated, regards, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread Bastien
Thanks, Bastien On Sep 28, 2013, at 3:24 PM, iccsi inu...@gmail.com wrote: I need create a local table on the local machine. I would like to know is it possible to down on server side or client side or jQuery to do the work. Your information and help is great appreciated, regards,

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
Thanks for the message and help, because I use jQuery autocomplete which has performance issue for thousands records due to network load data. I want to load the data to local table to resolve performance issue, if it possible I can load to an array in the memory. Thanks again for helping,

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread Bastien
On Sep 28, 2013, at 6:00 PM, iccsi inu...@gmail.com wrote: Thanks for the message and help, because I use jQuery autocomplete which has performance issue for thousands records due to network load data. I want to load the data to local table to resolve performance issue, if it possible

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
Thanks for the information and help, Yes, my data is pretty much static, Can you please give me some link for the solution? It is the solution I am looking for my current situation, Thanks a million for helping, Regards, Iccsi, Bastien wrote in message

  1   2   3   4   5   6   7   8   9   10   >