On Fri, Dec 14, 2012 at 7:41 AM, FeIn 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
> anothe
Maybe "catch(Exception $e)" should be "catch(\Exception $e)"?
On Fri, Jun 1, 2012 at 5:25 PM, James Colannino 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
> "Database_Exception" object
http://www.php.net/manual/en/function.stream-context-create.php
On Fri, Mar 2, 2012 at 4:44 PM, Nibin V M 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 modules ( I do
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 wrote:
> I don't how how you keep your data in your database but there is no need
> to issues that many
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
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 wrote:
> Hello,
>
> PHP noob here. I've been working on writing a script (command-line) that
> forks a number of children to do various tasks. I've
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(
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 wrote:
> So I am getting this SQL error:
>
> Error selecting photographs: SQLSTATE[42000
strpos example is much faster though
On Tue, Mar 15, 2011 at 7:20 AM, Jack wrote:
> Thanks everyone... great examples...works ( both methods )
>
> Thanks!
> Jack
>
> > -Original Message-
> > From: Alexis Antonakis [mailto:ad...@antonakis.co.uk]
> > Sent: Tuesday, March 15, 2011
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:
After...");
print_r($globals);
return $globals;
}
globals();
?>
You will g
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 fr
Also check http://www.php.net/manual/en/function.natsort.php
On Tue, Mar 1, 2011 at 1:39 PM, David Robley 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: Array (
ey => $item ) {
$karamohOutput['test'] .= "$key holds $item\n";
}
On Thu, Feb 24, 2011 at 5:15 PM, Dave M G wrote:
> FeIn,
>
> Thank you for responding.
>
>
> > what did you expect to happen when you call array_walk_recursive?
>
>
> What I don&
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 wrote:
> PHP users,
>
> I obviously don't understand what array_
14 matches
Mail list logo