[PHP] Re: Installing on a Mac: include_path issues

2011-05-04 Thread David Robley
Ken Kixmoeller wrote:

> Hey, folks -- --
> 
> I am switching over my development (I hope) to a Mac. Having some
> trouble with the configuration. Rudimentary scripts run fine in the
> document_root, but beyond that, my scripts in the include_path are not
> found.
> 
> The include_path has a couple of directories in which I have my
> foundation classes and a clients application classes and other
> programs. For various reasons, I put them into my "Documents/Clients"
> folder. When I create to set the path to these files in PHP, they are:
> 
>  /Users/ken/Documents/Clients/comped_php
>  /Users/ken/Documents/Clients/jaguar_php
> 
> PHP doesn't find them, which has me stumped.
> 
> php.ini shows the include_path correctly, as:
>   
> /Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php
> 
> the document_root, configured in Apache is: /Users/ken/Sites/
> 
> The errors show as:
> include_once() [function.include]: Failed opening 'smm_header.php' for
> inclusion
>
(include_path='/Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php')
> in /Users/ken/Sites/smm_registration/smmcomputereducation.php on line 1
> 
> Any ideas or suggestions?
> 
> Thanks,
> 
> Ken

If I remember correctly, include and friends have two parts to the error
message but you've only shown us one. For a guess, is it possible the
apache process doesn't have permissions for those directories and/or the
files within them?



Cheers
-- 
David Robley

I've got Parkinson's disease. And he's got mine.
Today is Setting Orange, the 52nd day of Discord in the YOLD 3177. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Installing on a Mac: include_path issues

2011-05-04 Thread Ken Kixmoeller
Hey, folks -- --

I am switching over my development (I hope) to a Mac. Having some
trouble with the configuration. Rudimentary scripts run fine in the
document_root, but beyond that, my scripts in the include_path are not
found.

The include_path has a couple of directories in which I have my
foundation classes and a clients application classes and other
programs. For various reasons, I put them into my "Documents/Clients"
folder. When I create to set the path to these files in PHP, they are:

 /Users/ken/Documents/Clients/comped_php
 /Users/ken/Documents/Clients/jaguar_php

PHP doesn't find them, which has me stumped.

php.ini shows the include_path correctly, as:   
  
/Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php

the document_root, configured in Apache is: /Users/ken/Sites/

The errors show as:
include_once() [function.include]: Failed opening 'smm_header.php' for
inclusion 
(include_path='/Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php')
in /Users/ken/Sites/smm_registration/smmcomputereducation.php on line
1

Any ideas or suggestions?

Thanks,

Ken

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] filter_var using regex

2011-05-04 Thread Ashley Sheridan
On Wed, 2011-05-04 at 13:46 -0600, Jason Gerfen wrote:

> On 05/04/2011 01:27 PM, Ashley Sheridan wrote:
> > On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote:
> > 
> >> I am running into a problem using the REGEXP option with filter_var().
> >>
> >> The string I am using: 09VolunteerApplication.doc
> >> The PCRE regex I am using:
> >> /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di
> >>
> >> The function in it's entirety:
> >> return (!filter_var('09VolunteerApplication.doc',
> >> FILTER_VALIDATE_REGEXP,
> >> array('options'=>array('regexp'=>'/^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di'
> >> ? false : true;
> >>
> >> Anyone have any insight into this?
> >>
> > 
> > 
> > You missed a + in your regex, at the moment you're only checking to see
> > if a file starts with a single a-z or number and then is followed by the
> > period. Then you're checking for oddly for one to four extensions in the
> > list, are you sure you want to do that? And the square brackets are used
> > to match characters, not strings, use the standard brackets to allow
> > from a choice of strings
> > 
> > Try this:
> > 
> > '/^[a-z0-9]+\.(doc|pdf|txt|jpg|jpeg|png|docx|csv|xls)$/Di'
> > 
> > One other thing you should be aware of maybe, filenames won't always
> > consist of just the letters a-z and numbers 0-9, they may contain
> > accented or foreign letters, hyphens, spaces and a number of other
> > characters depending on the client machines OS. Windows allows very few
> > characters for example compared to the Unix-like OS's like MacOS and
> > Linux.
> > 
> 
> Both are valid PCRE regex's. However the rules regarding usage of
> parenthesis for an XOR string does not explain a similar regex being
> used with the filter_var() like so:
> 
> return (filter_var('kc-1', FILTER_VALIDATE_REGEXP,
> array('options'=>array('regexp'=>'/^[kc\-1|kc\-color|gr\-1|fa\-1|un\-1|un\-color|ben\-1|bencolor|sage\-1|sr\-1|st\-1]{1,8}$/Di')))
> ? true : false;
> 
> The above returns string(4) "kc-1"
> 
> Another test using the following works similarly:
> 
> return (filter_var('u0368839', FILTER_VALIDATE_REGEXP,
> array('options'=>array('regexp'=>'/^[gp|u|gx]{1,2}[\d+]{6,15}$/Di'))) ?
> true : false;
> 
> The above returns string(8) "u0368839"
> 
> And
> return (filter_var('u0368839', FILTER_VALIDATE_REGEXP,
> array('options'=>array('regexp'=>'/^[gp|u|gx]{1,2}[\d+]{6,15}$/Di'))) ?
> true : false;
> 
> returns string(8) "gp123456"
> 
> As you can see these three examples use the start [] as XOR conditionals
> for multiple strings as prefixes.
> 
> 
> 


Not quite, you think they match correctly because that's all you're
testing for, and you're not looking for anything that might disprove
that. Using your last example, it will also match these strings:

gu0368839
xx0368839
p0368839


I tested your first regex with '09VolunteerApplication.doc' and it
doesn't work at all until you add in that plus after the basename match
part of the regex:

^[a-z0-9]+\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$

However, your regex (with the plus) also matches these strings:

09VolunteerApplication.docp
09VolunteerApplication.docj
09VolunteerApplication.doc|<-- note it's matching the literal bar
character

Making the changes I suggested (^[a-z0-9]+\.(doc|pdf|txt|jpg|jpeg|png|
docx|csv|xls)$) means the regex works as you expect. Square brackets in
a regex match a range, not a literal string, and without any sort of
modifier, match only a single instance of that range. So in your
example, you're matching a 4 character extension containing any of the
following characters '|cdfgjlnopstx', and a basename containing only 1
character that is either an a-z or a number.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] using XHTML FRAMESET with Zend Layout on Zend_App (MVC)

2011-05-04 Thread Bjoern Bartels

hello Dare!

it seems you got something wrong there...
the .phtml files are not meant to be called directly.
for the frames' src-attributes you'll have to provide a full URI calling
another controller's/module's action to output the frame content.


YT
BB



[ Björn Bartels   ]

[ email :  bart...@dragon-projects.de ]
[ home  :   http://dragon-projects.de ]
[ skype :  bb-drummer ]
[ icq   :   283827160 ]
[ --- ]
Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte  
Informationen enthalten. Wenn Sie nicht der richtige Adressat sind  
oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte  
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte  
Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht  
gestattet.


This e-mail may contain confidential and/or privileged information. If  
you are not the intended recipient (or have received this e-mail in  
error) please notify the sender immediately and destroy this e-mail.  
Any unauthorised copying, disclosure or distribution of the material  
in this e-mail is strictly forbidden.


[ --- ]


Am 04.05.2011 um 14:04 schrieb Dare Williams:


Dear Developer,
Can anybody help with tips on how to implement a XHTML1_FRAMESET  
type on a Zend_Layout API in a Zend_Application(MVC).
example.in your bootstrap resources plugin  
(setting.ini).resources.layout.layout =  
"main"resources.layout.layoutPath = "/path/to/layout"
then on main.phtml you have this codeDocType() ; ?>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd 
">http://www.w3.org/1999/xhtml";>>HeadMeta ; ?>HeadTitle ; ?>HeadScript; ?>$this->HeadLink; ?>
framespacing="0">  scrolling="No" noresize="noresize" id="topFrame" title="topFrame" / 
>  framespacing="0">scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" / 
>title="mainFrame" />  noframes>
While mainDisplay.phtml stands as your main script that should load  
the Layout Content variable i.e layout()->content; ?>
My main question is how do you make layout()->content; ?>  
works on the external script(src="mainDisplay.phtml") that is called  
on main.phtml on mainFrameset .

Thank you.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] filter_var using regex

2011-05-04 Thread Jason Gerfen
On 05/04/2011 01:27 PM, Ashley Sheridan wrote:
> On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote:
> 
>> I am running into a problem using the REGEXP option with filter_var().
>>
>> The string I am using: 09VolunteerApplication.doc
>> The PCRE regex I am using:
>> /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di
>>
>> The function in it's entirety:
>> return (!filter_var('09VolunteerApplication.doc',
>> FILTER_VALIDATE_REGEXP,
>> array('options'=>array('regexp'=>'/^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di'
>> ? false : true;
>>
>> Anyone have any insight into this?
>>
> 
> 
> You missed a + in your regex, at the moment you're only checking to see
> if a file starts with a single a-z or number and then is followed by the
> period. Then you're checking for oddly for one to four extensions in the
> list, are you sure you want to do that? And the square brackets are used
> to match characters, not strings, use the standard brackets to allow
> from a choice of strings
> 
> Try this:
> 
> '/^[a-z0-9]+\.(doc|pdf|txt|jpg|jpeg|png|docx|csv|xls)$/Di'
> 
> One other thing you should be aware of maybe, filenames won't always
> consist of just the letters a-z and numbers 0-9, they may contain
> accented or foreign letters, hyphens, spaces and a number of other
> characters depending on the client machines OS. Windows allows very few
> characters for example compared to the Unix-like OS's like MacOS and
> Linux.
> 

Both are valid PCRE regex's. However the rules regarding usage of
parenthesis for an XOR string does not explain a similar regex being
used with the filter_var() like so:

return (filter_var('kc-1', FILTER_VALIDATE_REGEXP,
array('options'=>array('regexp'=>'/^[kc\-1|kc\-color|gr\-1|fa\-1|un\-1|un\-color|ben\-1|bencolor|sage\-1|sr\-1|st\-1]{1,8}$/Di')))
? true : false;

The above returns string(4) "kc-1"

Another test using the following works similarly:

return (filter_var('u0368839', FILTER_VALIDATE_REGEXP,
array('options'=>array('regexp'=>'/^[gp|u|gx]{1,2}[\d+]{6,15}$/Di'))) ?
true : false;

The above returns string(8) "u0368839"

And
return (filter_var('u0368839', FILTER_VALIDATE_REGEXP,
array('options'=>array('regexp'=>'/^[gp|u|gx]{1,2}[\d+]{6,15}$/Di'))) ?
true : false;

returns string(8) "gp123456"

As you can see these three examples use the start [] as XOR conditionals
for multiple strings as prefixes.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] filter_var using regex

2011-05-04 Thread Ashley Sheridan
On Wed, 2011-05-04 at 13:20 -0600, Jason Gerfen wrote:

> I am running into a problem using the REGEXP option with filter_var().
> 
> The string I am using: 09VolunteerApplication.doc
> The PCRE regex I am using:
> /^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di
> 
> The function in it's entirety:
> return (!filter_var('09VolunteerApplication.doc',
> FILTER_VALIDATE_REGEXP,
> array('options'=>array('regexp'=>'/^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di'
> ? false : true;
> 
> Anyone have any insight into this?
> 


You missed a + in your regex, at the moment you're only checking to see
if a file starts with a single a-z or number and then is followed by the
period. Then you're checking for oddly for one to four extensions in the
list, are you sure you want to do that? And the square brackets are used
to match characters, not strings, use the standard brackets to allow
from a choice of strings

Try this:

'/^[a-z0-9]+\.(doc|pdf|txt|jpg|jpeg|png|docx|csv|xls)$/Di'

One other thing you should be aware of maybe, filenames won't always
consist of just the letters a-z and numbers 0-9, they may contain
accented or foreign letters, hyphens, spaces and a number of other
characters depending on the client machines OS. Windows allows very few
characters for example compared to the Unix-like OS's like MacOS and
Linux.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] filter_var using regex

2011-05-04 Thread Jason Gerfen
I am running into a problem using the REGEXP option with filter_var().

The string I am using: 09VolunteerApplication.doc
The PCRE regex I am using:
/^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di

The function in it's entirety:
return (!filter_var('09VolunteerApplication.doc',
FILTER_VALIDATE_REGEXP,
array('options'=>array('regexp'=>'/^[a-z0-9]\.[doc|pdf|txt|jpg|jpeg|png|docx|csv|xls]{1,4}$/Di'
? false : true;

Anyone have any insight into this?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] what would be the best way to build a 'add page function' to my cms?

2011-05-04 Thread Adam Preece
Hi Tedd,

thank you for your response,

i am in the process now of creating this function, and its very deceptive how 
complex you can actually make it.

but im sure i'll get there.

i have taken a some of your points into consideration.

thanks again.

On 4 May 2011, at 17:20, tedd wrote:

> At 7:19 PM +0100 5/2/11, Adam Preece wrote:
>> the reason, why i don't want to use word press and any other open source 
>> solution, is that i want to learn how it is all done. im sure i can figure 
>> it out myself but i would like to ask others and see how they would tackle 
>> it.
>> 
>> the idea with the modules sounds really cool, template type system.
>> 
>> if you have the time could you please tell me more how i could achieve a 
>> modular template system?
> 
> Adam:
> 
> You have at least three big problems to consider.
> 
>  First, is creating a template you can live it
> 
> A template standardizes methods of how to show data. But the template also 
> has to be flexible enough to be creative. This is not trivial.
> 
>  Second, is a way to make add/delete pages as you want.
> 
> You need to have a method where you can add more pages AND delete pages as 
> you want. You should give additional thought as to what to do with the 
> content of the pages you delete, such as to archive them.
> 
> All of this can be done via a simple "create a record for each page" in a 
> database where the contents are stored and retrieved as needed. This is the 
> least of the three problems.
> 
>  Third, how you can update any of those pages via a CMS.
> 
> You have to make a decision to either allow the client to:
> 
> 1. Enter HTML directly into the CMS thus allowing for major screw-ups;
> 
> 2. OR -- you control every aspect of the data entry allowing only filtered 
> data to be entered in specific areas in the template, which is a nightmare of 
> a coding-client communication problem. To control everything means a lot of 
> work;
> 
> 3. OR -- you handle everything yourself, which is the way I usually do it for 
> clients. That way they give me what they want and I can change the display to 
> best balance their needs with the requirements of the medium.
> 
> Good luck,
> 
> Cheers,
> 
> tedd
> 
> -- 
> ---
> http://sperling.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] what would be the best way to build a 'add page function' to my cms?

2011-05-04 Thread tedd

At 7:19 PM +0100 5/2/11, Adam Preece wrote:
the reason, why i don't want to use word press and any other open 
source solution, is that i want to learn how it is all done. im sure 
i can figure it out myself but i would like to ask others and see 
how they would tackle it.


the idea with the modules sounds really cool, template type system.

if you have the time could you please tell me more how i could 
achieve a modular template system?


Adam:

You have at least three big problems to consider.

 First, is creating a template you can live it

A template standardizes methods of how to show data. But the template 
also has to be flexible enough to be creative. This is not trivial.


 Second, is a way to make add/delete pages as you want.

You need to have a method where you can add more pages AND delete 
pages as you want. You should give additional thought as to what to 
do with the content of the pages you delete, such as to archive them.


All of this can be done via a simple "create a record for each page" 
in a database where the contents are stored and retrieved as needed. 
This is the least of the three problems.


 Third, how you can update any of those pages via a CMS.

You have to make a decision to either allow the client to:

1. Enter HTML directly into the CMS thus allowing for major screw-ups;

2. OR -- you control every aspect of the data entry allowing only 
filtered data to be entered in specific areas in the template, which 
is a nightmare of a coding-client communication problem. To control 
everything means a lot of work;


3. OR -- you handle everything yourself, which is the way I usually 
do it for clients. That way they give me what they want and I can 
change the display to best balance their needs with the requirements 
of the medium.


Good luck,

Cheers,

tedd

--
---
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Jeremy Greene
Sorry for the bad formatting... 
Anyway, I did figure out the problem: php creates/expects each system v
semaphore to be a semaphore group of 3. So, not only is that weird, it
really should be documented.

Jeremy

-Original Message-
From: Jeremy Greene [mailto:jer...@zeevee.com] 
Sent: Wednesday, May 04, 2011 8:14 AM
To: php-general@lists.php.net
Subject: [PHP] sem_get invalid argument for existing semaphore

Hi,

 

I am trying to do a sem_get on a semaphore that has already been created
by

a c++ program. But I'm getting this warning:

 

PHP Warning:  sem_get(): failed for key 0x31006dc2: Invalid argument in
/home/jgreene/views/latest/lcast/apps/webapp/webApp.php on line 11

 

Here is the line 11:

sem_get($key, 1, 0666);

 

And here is ipcs -s before and after the php script runs:

 

-- Semaphore Arrays 

keysemid  owner  perms  nsems 

0x31006dc2 1245191jgreene   6661 

0x31006e01 1277960jgreene   6661 

 

I have another c++ program that can get the existing sem with no
problem.

 

I can get the php script to create a new sem with no problem.

 

It does not seem to like to get a sem that's already created... although
I haven't tried getting a sem that's been created by another php
script... But the entire point is that php is an ephemeral client and a
C++ app server creates and responds/locks a resource (in this case
shared memory - which does work fine).

 

Btw, in the archives, way back in 2001, there was a pretty much exact
same post... unfortunately there was no conclusion posted... I really
hope I have better luck!!

 

Jeremy

 

 

 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Mike Mackintosh
Are you using the whole hex key or removing the 0x prefix? 

Sent from my iPhone

On May 4, 2011, at 8:13, "Jeremy Greene"  wrote:

> Hi,
> 
> 
> 
> I am trying to do a sem_get on a semaphore that has already been created
> by
> 
> a c++ program. But I'm getting this warning:
> 
> 
> 
> PHP Warning:  sem_get(): failed for key 0x31006dc2: Invalid argument in
> /home/jgreene/views/latest/lcast/apps/webapp/webApp.php on line 11
> 
> 
> 
> Here is the line 11:
> 
>sem_get($key, 1, 0666);
> 
> 
> 
> And here is ipcs -s before and after the php script runs:
> 
> 
> 
> -- Semaphore Arrays 
> 
> keysemid  owner  perms  nsems 
> 
> 0x31006dc2 1245191jgreene   6661 
> 
> 0x31006e01 1277960jgreene   6661 
> 
> 
> 
> I have another c++ program that can get the existing sem with no
> problem.
> 
> 
> 
> I can get the php script to create a new sem with no problem.
> 
> 
> 
> It does not seem to like to get a sem that's already created... although
> I haven't tried getting a sem that's been created by another php
> script... But the entire point is that php is an ephemeral client and a
> C++ app server creates and responds/locks a resource (in this case
> shared memory - which does work fine).
> 
> 
> 
> Btw, in the archives, way back in 2001, there was a pretty much exact
> same post... unfortunately there was no conclusion posted... I really
> hope I have better luck!!
> 
> 
> 
> Jeremy
> 
> 
> 
> 
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sem_get invalid argument for existing semaphore

2011-05-04 Thread Jeremy Greene
Hi,

 

I am trying to do a sem_get on a semaphore that has already been created
by

a c++ program. But I'm getting this warning:

 

PHP Warning:  sem_get(): failed for key 0x31006dc2: Invalid argument in
/home/jgreene/views/latest/lcast/apps/webapp/webApp.php on line 11

 

Here is the line 11:

sem_get($key, 1, 0666);

 

And here is ipcs -s before and after the php script runs:

 

-- Semaphore Arrays 

keysemid  owner  perms  nsems 

0x31006dc2 1245191jgreene   6661 

0x31006e01 1277960jgreene   6661 

 

I have another c++ program that can get the existing sem with no
problem.

 

I can get the php script to create a new sem with no problem.

 

It does not seem to like to get a sem that's already created... although
I haven't tried getting a sem that's been created by another php
script... But the entire point is that php is an ephemeral client and a
C++ app server creates and responds/locks a resource (in this case
shared memory - which does work fine).

 

Btw, in the archives, way back in 2001, there was a pretty much exact
same post... unfortunately there was no conclusion posted... I really
hope I have better luck!!

 

Jeremy

 

 

 



[PHP] lots of lstats when maintainer-zts is enabled

2011-05-04 Thread Seth Miller
I'm attempting to run PHP as an Apache2 module using the worker MPM. I 
understand this is not recommended but because of the nature of the application 
and traffic on the servers, prefork and CGI have not preformed well for me.

I'm running this in production right now and most of the site is running very 
smoothly with the exception of functions such as file_exists.

An strace makes it clear why. For every file, it does a loop like this

lstat("/root", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/root/images-medium", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/root/images-medium/harbor-view-blues-ryan-merrill.jpg", 
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
access("/root/images-medium/harbor-view-blues-ryan-merrill.jpg", F_OK) = 0

This output is from a test VM I created to duplicate the issue in a sandbox. I 
created a tiny test script that reads a list of files and does a file_exists on 
each.

Subsequent runs of this script does not get any faster. It never caches the 
results.

If I remove enable-maintainer-zts from configure, it does not do this. It runs 
much more efficiently but of course does not work with Apache's worker MPM any 
longer.

I've tried going back to prefork but the server's load spikes well over 200 in 
seconds and crashes. I've narrowed it down to pages using imagick but nothing I 
do seems to work. Things work OK when I browse the site but going live or 
hitting it with ab or siege will take down the box.

FastCGI has given me even worse performance.

The best performance I get is from the worker MPM and mod_php.

I am running PHP 5.2.17 on CentOS 5.6 64bit.

I tested with 5.3.6 and it actually works even with enable-maintainer-zts but 
it breaks the current code base. I'm going to push on dev to get our code 
updated to work with 5.3.x but I was hoping there was a quick fix somewhere.

Regards,

Seth





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php