Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread AmirBehzad Eslami
Stuart, thanks for your detailed response. >> I find it unlikely that Apache is your bottleneck, >> especially with a service involving MySQL. >> How have you come to this conclusion? Apache is the entry-point to our service, and I did a benchmark with AB to see how it can handle concurrent requ

Re: [PHP] newbie with imap_mail_move

2013-02-09 Thread Adam Richardson
On Sat, Feb 9, 2013 at 7:29 PM, dealTek wrote: > > Warning: reset() [function.reset]: Passed variable is not an array or > object in /home/bbeast/public_html/emtest/em-move.php on line 91 > > if ($mbox_name != $newmbox_name) { > reset($msg_no); > $messageset = implode (",",$msg_no); > ima

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sun, Feb 10, 2013 at 12:19 AM, Stephen wrote: > On 13-02-09 04:11 PM, Matijn Woudt wrote: > >> On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling wrote: >> >> >> Jonathan: >> >> No offense to your routine, but you may want to review this: >> >> http://sperling.com/php/**authorization/log-on.php

[PHP] newbie with imap_mail_move

2013-02-09 Thread dealTek
Hi all, I'm a newbie with imap_mail_move trying to open the INBOX and move all mail to LEGACY folder box (got this code from the net) it shows these errors... any idea how to fix this? --- Warning: reset() [function.reset]: Passed variable is not an array or object in /h

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread tamouse mailing lists
On Sat, Feb 9, 2013 at 12:21 PM, Stuart Dallas wrote: > On 9 Feb 2013, at 16:42, AmirBehzad Eslami wrote: >> We're a developing a PHP-driven web service with a RESTful API, >> and we have a dedicated Linux server for that with 6GB of RAM. > I would personally recommend nginx + php-fpm over Apach

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Jonathan Eagle
> Most likely they end up in the logs instead of the screen. Try check > the logs (on linux, they are usually in /var/log/apache). This is being hosted on 1and1.com, so I don't think I direct access to those directories, but I have found a 'logs' folder off of the root. Looking through that I see

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 10:08 PM, Jonathan Eagle wrote: > My 'display_errors' is "ON" and my 'error_reporting' is "22517". I'm > not sure what that means but it looks as if I should be getting error > messages somewhere. > > Jonathan > > Most likely they end up in the logs instead of the screen. T

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling wrote: > On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote: > > > I'm having a problem with a very straightforward routine; > > > Jonathan: > > No offense to your routine, but you may want to review this: > > http://sperling.com/php/authorization/log-

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Jonathan Eagle
My 'display_errors' is "ON" and my 'error_reporting' is "22517". I'm not sure what that means but it looks as if I should be getting error messages somewhere. Jonathan On 2/9/2013 4:02 PM, Stuart Dallas wrote: > On 9 Feb 2013, at 21:00, Jonathan Eagle wrote: > >> Stuart, >> >> Thanks for getti

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Jonathan Eagle
Matijn, Thanks for the suggestion. Your suspicions were correct. I am now tracking down the culprit. Jonathan On 2/9/2013 2:34 PM, Matijn Woudt wrote: > On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle wrote: > >> >> >> I'm having a problem with a very straightforward routine; one that works >>

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Stuart Dallas
On 9 Feb 2013, at 21:00, Jonathan Eagle wrote: > Stuart, > > Thanks for getting back to me you were right - I had misread the > headers_sent() Return Value statement. When I went back and tested > it turns out that the 'initialize' routine is somehow prematurely > sending output out. So,

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Jonathan Eagle
Stuart, Thanks for getting back to me you were right - I had misread the headers_sent() Return Value statement. When I went back and tested it turns out that the 'initialize' routine is somehow prematurely sending output out. So, now I have to figure out which of the ten called routines an

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Tedd Sperling
On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote: > I'm having a problem with a very straightforward routine; Jonathan: No offense to your routine, but you may want to review this: http://sperling.com/php/authorization/log-on.php If anyone finds an error, please post. Cheers, tedd __

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Stuart Dallas
On 9 Feb 2013, at 19:00, Jonathan Eagle wrote: > I'm having a problem with a very straightforward routine; one that works > in one PHP installation but not on the other. The only difference that I > can see between the working version and the non-working version is that > the one that doesn't wor

Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Matijn Woudt
On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle wrote: > > > I'm having a problem with a very straightforward routine; one that works > in one PHP installation but not on the other. The only difference that I > can see between the working version and the non-working version is that > the one that

[PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Jonathan Eagle
I'm having a problem with a very straightforward routine; one that works in one PHP installation but not on the other. The only difference that I can see between the working version and the non-working version is that the one that doesn't work is running on the later version of PHP. The following

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread Stuart Dallas
On 9 Feb 2013, at 16:42, AmirBehzad Eslami wrote: > We're a developing a PHP-driven web service with a RESTful API, > and we have a dedicated Linux server for that with 6GB of RAM. > > Since this service will be used by many clients in a concurrent > manner, we'll face with a high-load on our w

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread AmirBehzad Eslami
Bastein, Response is unique per request, and not cachable. The app fetches records from MySQL (say, templates), performs a process on them, and returns the generated output as JSON. We were thinking to use Redis to reduce queries against MySQL, but still Apache will remain as our bottleneck. On

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread Bastien
Bastien Koert On 2013-02-09, at 11:42 AM, AmirBehzad Eslami wrote: > Dear list, > > We're a developing a PHP-driven web service with a RESTful API, > and we have a dedicated Linux server for that with 6GB of RAM. > > Since this service will be used by many clients in a concurrent > manner,

Re: [PHP] Random 404 screens

2013-02-09 Thread Mike Mackintosh
On Saturday, February 9, 2013 at 11:51 AM, Geoff Shang wrote: > On Sat, 9 Feb 2013, Jim Giner wrote: > > > Lately, my web pages are giving me some problems. Once a day or so one or > > more of my pages/scripts will give me a 404 error page saying my web page > > has > > timed out. Problem is

Re: [PHP] Random 404 screens

2013-02-09 Thread Geoff Shang
On Sat, 9 Feb 2013, Jim Giner wrote: Lately, my web pages are giving me some problems. Once a day or so one or more of my pages/scripts will give me a 404 error page saying my web page has timed out. Problem is that the page was just displayed. I click on a link, the page shows up, I click

[PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread AmirBehzad Eslami
Dear list, We're a developing a PHP-driven web service with a RESTful API, and we have a dedicated Linux server for that with 6GB of RAM. Since this service will be used by many clients in a concurrent manner, we'll face with a high-load on our web-server. But web-services are different from we

Re: [PHP] Random 404 screens

2013-02-09 Thread Jim Giner
On 2/9/2013 11:21 AM, Andy McKenzie wrote: Smart money is that it's nothing to do with you; in my experience, that's usually a network problem. It could be on your end (I'm seeing that a lot more often now that I've moved to a new house, or it could be a problem with the server's connection.

Re: [PHP] Random 404 screens

2013-02-09 Thread Andy McKenzie
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner wrote: > This is a tough one. > > Lately, my web pages are giving me some problems. Once a day or so one or > more of my pages/scripts will give me a 404 error page saying my web page > has timed out. Problem is that the page was just displayed. I clic

[PHP] Random 404 screens

2013-02-09 Thread Jim Giner
This is a tough one. Lately, my web pages are giving me some problems. Once a day or so one or more of my pages/scripts will give me a 404 error page saying my web page has timed out. Problem is that the page was just displayed. I click on a link, the page shows up, I click on a button on i