[PHP] Help on caching an object.

2009-02-11 Thread Yeti
Hello gang, First of all, yes I searched the mailing list's archive. My problem is very simple: I have an object that's definately called with every page request. It's pretty much the same for every unregistered/anonymous user. And it's not small. Alot of attributes are being set from DB queries

[PHP] Re: APC problem with PHP

2009-02-11 Thread Colin Guthrie
'Twas brillig, and Nathan Nobbe at 11/02/09 00:10 did gyre and gimble: a lot of php extensions are not thread safe, perhaps apc is one of them. most people compile apache w/ mpm_prefork rather than mpm_worker for this reason. I know the problem is solved now but I think APC is pretty solid thr

Re: [PHP] Help on caching an object.

2009-02-11 Thread Stuart
2009/2/11 Yeti : > Hello gang, > > First of all, yes I searched the mailing list's archive. > > My problem is very simple: > I have an object that's definately called with every page request. > It's pretty much the same for every unregistered/anonymous user. > And it's not small. Alot of attributes

Re: [PHP] (Perl) Regular Expressions - oposite match or get the non-matches of a substring

2009-02-11 Thread Per Jessen
German Geek wrote: > I consider myself quite good with Regular Expression, but i could > never find out how to match something like: > > "match this but not this and that" > > so i would like to match the first "match this" (or "another this") > but not "not this". > > Seems pretty straight for

Re: [PHP] Help on caching an object.

2009-02-11 Thread Stuart
Emailing me directly is not cheap, please don't do it again without expecting an invoice. 2009/2/11 faisal murad : > how can i unsubscribe from php list. It's really difficult. You follow the instructions shown at the end of each frickin' email!! >> To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] (Perl) Regular Expressions - oposite match or get the non-matches of a substring

2009-02-11 Thread Virgilio Quilario
> Hi all, > > I consider myself quite good with Regular Expression, but i could never find > out how to match something like: > > "match this but not this and that" > > so i would like to match the first "match this" (or "another this") but not > "not this". > > Seems pretty straight forward but i

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread chris smith
2009/2/11 João Cândido de Souza Neto : > Hello everybody. > > I´d just like to know if there´s any way of defining a thousand separator to > a currency value using sprintf. Use number_format instead of sprintf, it's designed to do what you want. -- Postgresql & php tutorials http://www.desig

Re: [PHP] Help on caching an object.

2009-02-11 Thread Virgilio Quilario
> My problem is very simple: > I have an object that's definately called with every page request. > It's pretty much the same for every unregistered/anonymous user. > And it's not small. Alot of attributes are being set from DB queries etc. > > Now my idea was to do some sort of caching with PHP to

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Jo�o C�ndido de Souza Neto
Chris, Thanks for your answer, but my real problem is to get thousand separator in jpgraph class which uses sprintf to display almost everithing; "chris smith" escreveu na mensagem news:3c1395330902110457i18cec69cy9818e08cdd3ff...@mail.gmail.com... 2009/2/11 João Cândido de Souza Neto : > H

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Per Jessen
chris smith wrote: > 2009/2/11 João Cândido de Souza Neto : >> Hello everybody. >> >> I´d just like to know if there´s any way of defining a thousand >> separator to a currency value using sprintf. > > Use number_format instead of sprintf, it's designed to do what you > want. > I wonder why

Re: [PHP] Module Structure ideas

2009-02-11 Thread Virgilio Quilario
> Last year I began to sepearte my module files to many files for their > purposes. > > Last time use use lots of dirs for their types > > someting like > > controllers > a.cont.php > b.cont.php > definition > a.def.php > b.def.php > models > a.model.php > b.model.php > views > a.view.php >

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Richard Heyes
> Thanks for your answer, but my real problem is to get thousand separator in > jpgraph class which uses sprintf to display almost everithing; Can you format it first, and then pass it to JPGraph ? -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.o

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Jo�o C�ndido de Souza Neto
No, I can´t, because if I do it how can jpgrhph render without numeric data? hehehe "Richard Heyes" escreveu na mensagem news:af8726440902110523x63ce5485p6534d10063eb4...@mail.gmail.com... >> Thanks for your answer, but my real problem is to get thousand separator >> in >> jpgraph class which

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Bruno Fajardo
Can you extend the JPGraph class, intercepting the desired method, formatting the output the way you need? 2009/2/11 João Cândido de Souza Neto > > No, I can´t, because if I do it how can jpgrhph render without numeric data? > hehehe > > "Richard Heyes" escreveu na mensagem > news:af872644090

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Jo�o C�ndido de Souza Neto
Ok, thanks. I´ll try to do it. As soon as I get it I´ll let you know. Thanks guys. "Bruno Fajardo" escreveu na mensagem news:eeb6980b0902110534p22a8c75eqd98cceaf3a150...@mail.gmail.com... Can you extend the JPGraph class, intercepting the desired method, formatting the output the way you ne

Re: [PHP] APC problem with PHP

2009-02-11 Thread APseudoUtopia
On Tue, Feb 10, 2009 at 10:11 PM, Nathan Nobbe wrote: > On Tue, Feb 10, 2009 at 5:53 PM, Jamie Krasnoo wrote: > > > Hmm, I'll try taking down the optimizer and seeing if it segfaults or > > not. If that's what it is it's a crying shame that apc and > > zend_optimizer can't get along. > > > maybe

[PHP] webapp to drive/monitor a bunch of system processes

2009-02-11 Thread bruce
hi... i've got a project (goal) where i'm looking for a webbased app that drives/runs/monitors different linux/system processes. i'm basically looking for different apps that i can look at to get ideas/see their layout/structure. i'm going to have to create a similar app to run some processes that

[PHP] Re: webapp to drive/monitor a bunch of system processes

2009-02-11 Thread Shawn McKenzie
bruce wrote: > hi... > > i've got a project (goal) where i'm looking for a webbased app that > drives/runs/monitors different linux/system processes. i'm basically looking > for different apps that i can look at to get ideas/see their > layout/structure. i'm going to have to create a similar app t

[PHP] php.ini not loaded?

2009-02-11 Thread brian
with php.ini in /apps/local/php5/lib, readable by all: phpinfo says : "configuration file path /apps/local/php5/lib" phpinfo also says: "loaded configuration file: (none)" so i'm not getting anything from php.ini. can someone point me at the fix for this problem? thanks in advance b

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-11 Thread Yannick Mortier
2009/2/11 German Geek : > I try to avoid nesting loops altogether if possible. Usually dont go beyond > 3 levels of nesting... > How can you require 8 levels of nesting? surely there must be something > wrong or a more efficient algorithm... > No! It's just that you can't think in 8 dimensions lik

Re: [PHP] php.ini not loaded?

2009-02-11 Thread Nathan Nobbe
On Wed, Feb 11, 2009 at 9:54 AM, brian wrote: > > with php.ini in /apps/local/php5/lib, readable by all: > > phpinfo says : "configuration file path /apps/local/php5/lib" > phpinfo also says: "loaded configuration file: (none)" > > so i'm not getting anything from php.ini. > > can someon

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-11 Thread Christoph Boget
> > How can you require 8 levels of nesting? surely there must be something > > wrong or a more efficient algorithm... > No! It's just that you can't think in 8 dimensions like him. Yeah, at that point you are dealing with space and time and that's not a subject of contemplation for everyone. :p

Re: [PHP] Using DLL with PHP

2009-02-11 Thread Dan Shirah
MAYBE a little closer to a solution! //VB for Reference Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _ (ByVal FullPathFrom As String, ByVal FullPathTo As String) As Integer Public Function hello(ByVal name As String) As String hello = "Hello" & name & "Worl

Re: [PHP] php.ini not loaded?

2009-02-11 Thread brian
hi nathan thanks for the response... it's webserver. so the phpinfo() result in the browser should be accurate. looks like the rx is where it should be. Nathan Nobbe wrote: > On Wed, Feb 11, 2009 at 9:54 AM, brian > wrote: > > > with php.ini in /apps/local/php5

Re: [PHP] Using DLL with PHP

2009-02-11 Thread Andrew Ballard
On Wed, Feb 11, 2009 at 1:18 PM, Dan Shirah wrote: > MAYBE a little closer to a solution! > > //VB for Reference > Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _ >(ByVal FullPathFrom As String, ByVal FullPathTo As String) As > Integer > > Public Function hello(By

Re: [PHP] Module Structure ideas

2009-02-11 Thread Ashley Sheridan
On Wed, 2009-02-11 at 21:20 +0800, Virgilio Quilario wrote: > > Last year I began to sepearte my module files to many files for their > > purposes. > > > > Last time use use lots of dirs for their types > > > > someting like > > > > controllers > > a.cont.php > > b.cont.php > > definition > > a.

[PHP] Best way to post XML via curl?

2009-02-11 Thread Brian Dunning
I'm going crazy, can't quite get this encoding to work. I've tried all the various combinations, trying to send this block $xml (which is a simple string variable) via post along with 3 other params: $postArgs = http_build_query(array('method'=>'newPrintRequest', 'login'=>$login, 'password'

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Brian Dunning
Just realized I didn't happen to mention the problem. :-) The server is not seeing any of my posted fields. It's returning a properly-formatted XML response that says I did not submit the required fields. Unfortunately the server is a black box, but lots of other partners use it every day

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Stuart
2009/2/12 Brian Dunning : > I'm going crazy, can't quite get this encoding to work. I've tried all the > various combinations, trying to send this block $xml (which is a simple > string variable) via post along with 3 other params: > > $postArgs = http_build_query(array('method'=>'newPrintRequest',

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Brian Dunning
This line is the key. WITH the line, I get a properly formatted XML response from the server, telling me that I did not send any valid post fields. WITHOUT the line, all I get back from the server is a '1' and their tech reports that no valid call was received from me. On Feb 11, 2009, at

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Stuart
2009/2/12 Brian Dunning : > This line is the key. WITH the line, I get a properly formatted XML response > from the server, telling me that I did not send any valid post fields. > WITHOUT the line, all I get back from the server is a '1' and their tech > reports that no valid call was received from

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Brian Dunning
From the documentation: Parameters The following POST parameters are required: login - Assigned password - Assigned method - newPrintRequest, updatePrintRequest, reprintRequest orderxml - XML according to accompanying documentation The error that I get says no method was provided, and if you loo

Re: [PHP] Best way to post XML via curl?

2009-02-11 Thread Stuart
2009/2/12 Brian Dunning : > From the documentation: > > Parameters > The following POST parameters are required: > login - Assigned > password - Assigned > method - newPrintRequest, updatePrintRequest, reprintRequest > orderxml - XML according to accompanying documentation > > The error that I get

Re: [PHP] Seeking PHP Work in Chicago or Telecommute

2009-02-11 Thread Daniel Brown
On Sat, Feb 7, 2009 at 23:37, Richard Lynch wrote: > I figure if job postings are okay, then so are job requests, right? :-) > > I'm looking for PHP work in Chicago or telecommuting. > > My resume is here: > http://l-i-e.com/resume.htm I will certainly vouch for Richard's experience to perspe