php-general Digest 10 Feb 2011 07:07:14 -0000 Issue 7174

2011-02-09 Thread php-general-digest-help
php-general Digest 10 Feb 2011 07:07:14 - Issue 7174 Topics (messages 311226 through 311238): Re: Paging and permissions 311226 by: Ashley Sheridan 311227 by: Arno Kuhl 311228 by: Ashley Sheridan Re: First PHP site - thanks - euca_phpmysql function library

RE: [PHP] Paging and permissions

2011-02-09 Thread Arno Kuhl
On Tue, 2011-02-08 at 14:36 +0200, Arno Kuhl wrote: I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one

RE: [PHP] Paging and permissions

2011-02-09 Thread Ashley Sheridan
On Wed, 2011-02-09 at 13:03 +0200, Arno Kuhl wrote: On Tue, 2011-02-08 at 14:36 +0200, Arno Kuhl wrote: I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in

RE: [PHP] Paging and permissions

2011-02-09 Thread Arno Kuhl
Instead of serializing the articles, you only need their IDs. Using $sql .= ' where id in (' . implode(',', $ids) . ')'; you can load the data for a page of results in a single query. Storing the IDs is much cheaper than the articles. If the permissions are fairly static (i.e. access for

RE: [PHP] Paging and permissions

2011-02-09 Thread Ashley Sheridan
On Wed, 2011-02-09 at 13:27 +0200, Arno Kuhl wrote: Instead of serializing the articles, you only need their IDs. Using $sql .= ' where id in (' . implode(',', $ids) . ')'; you can load the data for a page of results in a single query. Storing the IDs is much cheaper than the

[PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Al
On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people do, the back-end (non-public) side of this site is perhaps the more

RE: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Bob McConnell
From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people do, the back-end (non-public) side of this site is perhaps the

Re: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Peter Lind
On 9 February 2011 14:57, Bob McConnell r...@cbord.com wrote: From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side language people

RE: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Bob McConnell
From: Peter Lind On 9 February 2011 14:57, Bob McConnell r...@cbord.com wrote: From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project (over the last month). As is with much of the work we server-side

Re: [PHP] Re: First PHP site - thanks - euca_phpmysql function library

2011-02-09 Thread Peter Lind
On 9 February 2011 17:22, Bob McConnell r...@cbord.com wrote: From: Peter Lind On 9 February 2011 14:57, Bob McConnell r...@cbord.com wrote: From: Al On 2/8/2011 4:58 PM, Donovan Brooke wrote: Hello, Just wanted to say thanks to those that helped me get through my first PHP project

[PHP] improve speed of PHP answers

2011-02-09 Thread Alain Roger
Hi, i have apache/PHP server installed on Windows 7. my computer is a quad-core CPU with 6 GB RAM and i would like to speed up PHP answer to requests. how can i do that ? which parameter should i tune ? thx. -- Alain --- Windows 7 x64 /

Fwd: [PHP] improve speed of PHP answers

2011-02-09 Thread Alain Roger
-- Forwarded message -- From: Alain Roger raf.n...@gmail.com Date: Wed, Feb 9, 2011 at 6:45 PM Subject: Re: [PHP] improve speed of PHP answers To: ad...@antonakis.co.uk yes i understand however even Linux has bugs and issues... i'm currently installing Fedora 14 as web server and

Re: [PHP] improve speed of PHP answers

2011-02-09 Thread Alain Roger
it's a php component for joomla so it is written in PHP. it access to DB as also the whole site root structure to backup database structure , data as also web site folders and files. due to slow freeing ressources (php pointers, memory, andso on...) the backup process fails each time... A. On

Re: [PHP] curl_exec won't return (any data)

2011-02-09 Thread Tolas Anon
exec-sum update : details continued at http://curl.haxx.se/mail/lib-2011-02/0101.html it turns out using the internetdomainname of the apache server is the source of the problem. the adsl router could be dropping the connection, or something else. calling curl_exec() to a localhost address will

Re: [PHP] improve speed of PHP answers

2011-02-09 Thread Ashley Sheridan
On Wed, 2011-02-09 at 18:57 +0100, Alain Roger wrote: it's a php component for joomla so it is written in PHP. it access to DB as also the whole site root structure to backup database structure , data as also web site folders and files. due to slow freeing ressources (php pointers, memory,