Re: [PHP] in_array breaks down for 0 as value

2008-11-21 Thread Stut
On 20 Nov 2008, at 23:09, Ashley Sheridan wrote: On Thu, 2008-11-20 at 09:25 +, Stut wrote: On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a form submission for a checkbox and found an interesting behaviour. $ php -v PHP 5.2.5 (cli) (built

[PHP] Re: reading XML

2008-11-21 Thread Nathan Rixham
Angelo Zanetti wrote: What is the simplest way to accomplish this small challenge? you could give this a go if you like (one i made earlier): http://programphp.com/xmlparser.phps - class at the top, usage at the bottom. it simply turns xml into an associated array, using regex; just teste

Re: [PHP] user access/roles/privs functionality

2008-11-21 Thread Martijn Korse
bruce-60 wrote: > > Hi list... > > I need a way of managing users/teams/etc.. implementing roles/access > rights/privs,etc... Have a look at Zend_Acl: http://framework.zend.com/manual/en/zend.acl.html - http://devshed.excudo.net http://devshed.excudo.net -- View this message in context

[PHP] Anyway to simulate pcntl_fork() on Windows?

2008-11-21 Thread Brian Dunning
It's the function I need most and it's not available on Windows, and unfortunately that's what the client uses. Any suggestions for a workaround? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyway to simulate pcntl_fork() on Windows?

2008-11-21 Thread Yeti
check this out ... http://in.php.net/manual/en/ref.pcntl.php#37369 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] store class zithin session

2008-11-21 Thread Alain Roger
Hi Stut, On Thu, Nov 20, 2008 at 12:25 PM, Stut <[EMAIL PROTECTED]> wrote: > On 20 Nov 2008, at 11:01, Alain Roger wrote: > >> i have a class and i would like to store it zithin session. >> i was thinking to use serialize/unserialize but it does not work. >> >> any idea how to do it ? >> > > Ala

[PHP] Re: reading XML

2008-11-21 Thread Carlos Medina
Hi Angelo, try this: http://pear.php.net/manual/en/package.structures.structures-datagrid.structures-datagrid-datasource.xml.php regards Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Displaying information from table graphically

2008-11-21 Thread dzenan . causevic
I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in textual mode via regular HT

RE: [PHP] Model Web Site

2008-11-21 Thread bruce
hi... for what it's worth. the best approach might be to find a few sites that have the functionality/layout you like. there are probably a few of them that you'll run across that meet what you have in mind. use these as your basic guides. add additional features that you'd like. you now have (ro

Re: [PHP] Displaying information from table graphically

2008-11-21 Thread Stut
On 21 Nov 2008, at 17:55, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently di

Re: [PHP] Displaying information from table graphically

2008-11-21 Thread Afan Pasalic
[EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in

[PHP] Re: Displaying information from table graphically

2008-11-21 Thread Maciek Sokolewicz
[EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in

[PHP] Re: phpDesigner 2008?

2008-11-21 Thread Waynn Lue
All in one--is the other better? On 11/18/08, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: >> I know the IDE wars spring up occasionally, but looking through the >> archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( >> http://www.mpsoftware.dk/phpdesigner.php

Re: [PHP] in_array breaks down for 0 as value

2008-11-21 Thread Ashley Sheridan
On Fri, 2008-11-21 at 09:11 +, Stut wrote: > On 20 Nov 2008, at 23:09, Ashley Sheridan wrote: > > On Thu, 2008-11-20 at 09:25 +, Stut wrote: > >> On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: > >>> I wanted to use in_array to verify the results of a form submission > >>> for a checkbox an

Re: [PHP] Displaying information from table graphically

2008-11-21 Thread Ashley Sheridan
On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] wrote: > I have a PHP application that accesses data from MySQL. There is table > called "rooms", and table called "beds". There is another table called > "patients". Patients are being placed into beds, and beds are in the > rooms. PHP applicati

[PHP] gethostbyaddr and IPv6

2008-11-21 Thread Glen C
Hello, Does gethostbyaddr actually work for anyone while looking up an IPv6 address? I can't seem to get it to work. For example: echo gethostbyaddr ( '2001:470:0:64::2' ); should return "ipv6.he.net" but instead I get the following error: [21-Nov-2008 22:43:37] PHP Warning: gethostbyaddr

Re: [PHP] gethostbyaddr and IPv6

2008-11-21 Thread Lars Torben Wilson
2008/11/21 Glen C <[EMAIL PROTECTED]>: > Hello, > > Does gethostbyaddr actually work for anyone while looking up an IPv6 > address? I can't seem to get it to work. For example: > > echo gethostbyaddr ( '2001:470:0:64::2' ); > > should return "ipv6.he.net" but instead I get the following error: >

Re: [PHP] in_array breaks down for 0 as value

2008-11-21 Thread Stut
On 22 Nov 2008, at 00:06, Ashley Sheridan wrote: On Fri, 2008-11-21 at 09:11 +, Stut wrote: On 20 Nov 2008, at 23:09, Ashley Sheridan wrote: On Thu, 2008-11-20 at 09:25 +, Stut wrote: On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a fo

Re: [PHP] gethostbyaddr and IPv6

2008-11-21 Thread Lars Torben Wilson
2008/11/21 Glen Carreras <[EMAIL PROTECTED]>: > > > On 11/22/2008 12:10 AM, Lars Torben Wilson wrote: >> >> Hi Glen, >> >> Works for me. IPv6 support was added in 2001. You didn't say what >> version of PHP you are having this problem with, so it's hard to say >> why yours doesn't have support for