[PHP] require/include fails with APC enabled

2009-07-20 Thread Ian Maddox
I have one server that is acting up whenever I try to enable APC. PHP scripts execute normally as long as there are no calls to include(), include_once(), require(), or require_once(). Any file (no matter the size) that can be included while APC is disabled will cause the script to silently fail a

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Bastien Koert
On Mon, Jul 20, 2009 at 4:47 PM, Chris Payne wrote: >> Really? This is an actual problem for you? It sounds too me that you have a >> malicious user on your server and if so, fire them. If you suspect you've >> been hacked from externally, then I would format and re-install -- or use a >> backup fr

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Chris Payne
> Really? This is an actual problem for you? It sounds too me that you have a > malicious user on your server and if so, fire them. If you suspect you've > been hacked from externally, then I would format and re-install -- or use a > backup from a known good date. I've been coding PHP since 1996, a

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Bastien Koert
On Mon, Jul 20, 2009 at 4:25 PM, Daevid Vincent wrote: > > >> -Original Message- >> From: oxygene...@gmail.com [mailto:oxygene...@gmail.com] On >> Behalf Of Chris Payne >> Sent: Monday, July 20, 2009 12:58 PM >> To: php-general@lists.php.net >> Subject: Re: [PHP] pre-screening pages before

RE: [PHP] pre-screening pages before served?

2009-07-20 Thread Daevid Vincent
> -Original Message- > From: oxygene...@gmail.com [mailto:oxygene...@gmail.com] On > Behalf Of Chris Payne > Sent: Monday, July 20, 2009 12:58 PM > To: php-general@lists.php.net > Subject: Re: [PHP] pre-screening pages before served? > > On Mon, Jul 20, 2009 at 12:30 PM, Per Jessen wro

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Chris Payne
On Mon, Jul 20, 2009 at 12:30 PM, Per Jessen wrote: > Chris Payne wrote: > >> Hi everyone, >> >> Is it possible to have the system pre-screen a page before it is sent >> to a user?  What I mean is, if someone requests index.php could I have >> a script scan the file before I serves it? > > Yes, apa

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Per Jessen
Chris Payne wrote: > Hi everyone, > > Is it possible to have the system pre-screen a page before it is sent > to a user? What I mean is, if someone requests index.php could I have > a script scan the file before I serves it? Yes, apache has an output filter that can be set up as the last stag

Re: [PHP] PHP and FoxPro

2009-07-20 Thread Matt Neimeyer
> We currently use the Easysoft ODBC Bridge to connect to a remote FoxPro > database. The problem is that the bridge, after a while, starts consuming a > ton of system resources and we have to reboot the machine. Afterwards, it > can take upwards to two hours before everything is running quickly

[PHP] pre-screening pages before served?

2009-07-20 Thread Chris Payne
Hi everyone, Is it possible to have the system pre-screen a page before it is sent to a user? What I mean is, if someone requests index.php could I have a script scan the file before I serves it? The reason I ask is this way I could check for patterns on the script to make sure the page hasn't b

Re: [PHP] Internal PHP caching methodology

2009-07-20 Thread Eric Butera
On Sat, Jul 18, 2009 at 7:14 AM, Daniel Kolbo wrote: > Daniel Kolbo wrote: >> Eric Butera wrote: >>> On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbo wrote: Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP >>

Re: [PHP] PHP and FoxPro

2009-07-20 Thread Floyd Resler
Paul, Believe me I would like nothing more that to get rid of FoxPro and convert it to MySQL. Sadly, that's not possible right now. I'll check into dBase. Thanks! Floyd On Jul 19, 2009, at 4:53 PM, Paul M Foster wrote: On Sun, Jul 19, 2009 at 09:00:49AM -0400, Floyd Resler wrote: We c

Re: [PHP] Dual PHP installation and session sharing

2009-07-20 Thread Bruno Fajardo
Hi, Zareef. I have not tried storing session in a database, and I think it's not an option in my case, since I'm working on a legacy software that uses distributed databases across several servers. Actually, I guess it would be easier to setup a new webserver, running PHP 5 only, and discontinue

Re: [PHP] Re: file_set_contents() do several times?

2009-07-20 Thread David Otton
2009/7/20 Martin Zvarík : >> 2009/7/20 Martin Zvarík : >>> >> $i = 0; >>> do { >>>   $i++; >>>   $r = file_put_contents('file.txt', 'content'); >>> } while($r === false && $i < 3); >>> >>> if ($r === false) die('error'); >>> >>> ?> >>> > I am not appending anything, just ensuring that it will be

[PHP] Re: file_set_contents() do several times?

2009-07-20 Thread Martin Zvarík
David Otton napsal(a): > 2009/7/20 Martin Zvarík : >> > $i = 0; >> do { >> $i++; >> $r = file_put_contents('file.txt', 'content'); >> } while($r === false && $i < 3); >> >> if ($r === false) die('error'); >> >> ?> >> >> Makes sense? or is it enough to do it just once? > > Assuming 'content' ch

Re: [PHP] why does PHP parse "*.html" files in one subdir/ but not in another?

2009-07-20 Thread Stuart
2009/7/19 Paul M Foster : > On Sun, Jul 19, 2009 at 07:18:34PM +0100, Stuart wrote: > >> 2009/7/19 Paul M Foster : >> > On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote: >> > >> >> >> >> > You do realize that PHP does not parse HTML files, right? The web server >> >> > does that. In fact, th

Re: [PHP] file_set_contents() do several times?

2009-07-20 Thread David Otton
2009/7/20 Martin Zvarík : > > $i = 0; > do { >   $i++; >   $r = file_put_contents('file.txt', 'content'); > } while($r === false && $i < 3); > > if ($r === false) die('error'); > > ?> > > Makes sense? or is it enough to do it just once? Assuming 'content' changes, and this is the cut-down example