Re: [PHP] Weird MySQL+Gearman issue - SOLVED

2012-12-14 Thread FeIn
On Fri, Dec 14, 2012 at 7:41 AM, FeIn aci...@gmail.com wrote: Hi all, I have a typical web application that does some basic CRUD operations. Operations that modify the database (inserts, updates, deletes) trigger a background gearman job to refresh the cache that is used for another

Re: [PHP] Exception Handling

2012-06-01 Thread FeIn
Maybe catch(Exception $e) should be catch(\Exception $e)? On Fri, Jun 1, 2012 at 5:25 PM, James Colannino crankycycl...@gmail.com wrote: Hey guys, Haven't posted in a long time...  Happy Memorial Day!  I have an issue with exception handling.  I'm using a framework that throws a

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread FeIn
http://www.php.net/manual/en/function.stream-context-create.php On Fri, Mar 2, 2012 at 4:44 PM, Nibin V M nibi...@gmail.com wrote: Thanks Marc. But that need to add the DOM parser to the server. What I am looking for something like iframe in html and that doesn't require any additional PHP

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-01 Thread FeIn
I don't how how you keep your data in your database but there is no need to issues that many queries to retrieve your data. From what I understand the data you want to display is hierarchical. Here's an article that will hopefully point you to a solution (there are more out there, some better than

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-01 Thread FeIn
And see also this, which focuses only on the database part of the problem: http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/ On Thu, Mar 1, 2012 at 5:08 PM, FeIn aci...@gmail.com wrote: I don't how how you keep your data in your database but there is no need to issues

Re: [PHP] pcntl_fork, catching STDOUT of child?

2012-01-19 Thread FeIn
Have a look at zeromq. http://vimeo.com/20605470 http://zguide.zeromq.org/php:all Hope it helps. On Fri, Jan 20, 2012 at 12:24 AM, Thomas Johnson t...@claimlynx.com wrote: Hello, PHP noob here. I've been working on writing a script (command-line) that forks a number of children to do

Re: [PHP] How to use a variable variable with an array

2011-12-14 Thread FeIn
maybe something like this if you are willing to get rid of your weird array dimension delimiters (you can use a dot for that for example, see below) $a = array( a = array( b = array( c = array( d = array( e = array(

Re: [PHP] Syntax problem PDO and bindvalue

2011-12-12 Thread FeIn
I don't think you're suppose to end your queries with a semicolon. Try: $sql = SELECT * FROM photographs WHERE photo_filename LIKE '%2%' LIMIT 0, :q; On Mon, Dec 12, 2011 at 1:49 PM, Stephen stephe...@rogers.com wrote: So I am getting this SQL error: Error selecting

Re: [PHP] problem with if and exact match

2011-03-15 Thread FeIn
strpos example is much faster though On Tue, Mar 15, 2011 at 7:20 AM, Jack jacklistm...@gmail.com wrote: Thanks everyone... great examples...works ( both methods ) Thanks! Jack -Original Message- From: Alexis Antonakis [mailto:ad...@antonakis.co.uk] Sent: Tuesday,

Re: [PHP] $GLOBALS example script on php.net

2011-03-07 Thread FeIn
I am unable to provide a better definition that user defined variables. User defined variables are variables that are declared by the user. User here means the creator (or maintainer of the script). So for: ?php $a = 'A'; $b = 'B'; $c = 'C'; function globals() { $globals = $GLOBALS;

Re: [PHP] $GLOBALS example script on php.net

2011-03-06 Thread FeIn
Unsetting doesn't leave user defined variables. Unsetting simply destroys variables (or removes elements from an array, etc). There is nothing magic or hidden in that script. I think the note meant exactly what it said: after creating a local copy of the $GLOBALS array and removing super globals

Re: [PHP] Re: Sorting an array

2011-03-01 Thread FeIn
Also check http://www.php.net/manual/en/function.natsort.php On Tue, Mar 1, 2011 at 1:39 PM, David Robley robl...@aapt.net.au wrote: Ron Piggott wrote: I need help to know how to sort the words / phrases in my array. Variable name: $words_used print_r( $words_used ); Current output:

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread FeIn
Hi, How does the input array look like (the contents of the $karamohArray variable) ? Is your script generating any errors? What do you expect to happen when you call array_walk_recursive? On Thu, Feb 24, 2011 at 1:01 PM, Dave M G mar...@autotelic.com wrote: PHP users, I obviously don't

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread FeIn
, Feb 24, 2011 at 5:15 PM, Dave M G mar...@autotelic.com wrote: FeIn, Thank you for responding. what did you expect to happen when you call array_walk_recursive? What I don't understand is why it did not append to the string as it walked through each key/value pair. It seems like even