[PHP] Re: Regular Expression

2004-11-25 Thread Ing. Ivo F.A.C. Fokkema
On Wed, 24 Nov 2004 13:17:48 -0500, Ankur Os wrote: > Hi, > > This is quite simpal problem that i want to made regular expression which > can read this kind of structure... > > a,b,c > > not like this > > 1. ,a,a,a > 2. a,,,aa,, > 3. a,a,a,,, > > means simpal structure with comma (a,b,c...

[PHP] Re: File Handing Windows / Linux

2004-11-17 Thread Ing. Ivo F.A.C. Fokkema
On Sun, 14 Nov 2004 18:21:23 +0100, M. Sokolewicz wrote: > Steve Vernon wrote: > >> Hiya! >> >> I am trying to make some code which gets a handle to a directory, but >> has different code for my localhost (Windows) and for online (Linux >> server). >> >> Basically, I want either of the below li

[PHP] Re: in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
in if statements, resulting in my confusion. Thanks again, Ivo On Tue, 09 Nov 2004 12:42:51 +0200, Bogdan Stancescu wrote: > Apart from Marek's reply, you should probably check the in_array() > documentation (look at the third, optional parameter) and search for type > casting on

[PHP] in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi guys and gals, I'm not screaming "Bug! Bug!" but this _does_ look 'illogical' to me. I've searched the archives, but found no earlier conversation. Sorry if I missed it. Consider the following code: var_dump(in_array('test', array(0))); What does this return? I expect bool(false), but it retu

Re: [PHP] Meta refresh best answer ??

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi Michael, I always use header('Refresh: 2; url=' . $_SERVER['PHP_SELF']); to reload the current page every 2 seconds. You may want to pass $_GET variables, depending on your needs. Also make sure you call this function _before_ any other output has gone to the browser. HTH, Ivo On Mon, 08