php-general Digest 18 Feb 2010 22:31:05 -0000 Issue 6597

2010-02-18 Thread php-general-digest-help
php-general Digest 18 Feb 2010 22:31:05 - Issue 6597 Topics (messages 302169 through 302182): PHPDoc (not PhD) question. 302169 by: Richard Quadling 302179 by: Nathan Rixham 302180 by: Nathan Rixham Linux ERD software 302170 by: Ashley Sheridan

Re: [PHP] Problem retrieving CN with ldap_search()

2010-02-18 Thread Marcel Loose
Hi all, Sorry to reply to myself, but I finally solved the issue. In the end it turned out it *did* have something to do with the LDAP configuration. For some reason, retrieval of 'cn' attributes was disallowed, as can be seen in this snippet from /etc/openldap/slapd.conf: access to

[PHP] PHPDoc (not PhD) question.

2010-02-18 Thread Richard Quadling
Hello. Does anyone have any other templates for PHPDoc? I've found zym's ExtJS PHPDoc template, but this doesn't seem to be maintained and there are a few bugs (source code not styled, source code rendered as external windows with broken links, ordered and unordered lists not rendered with

[PHP] Linux ERD software

2010-02-18 Thread Ashley Sheridan
I don't normally need an ERD, but this latest project I'm on has some pretty complex database tables, and as I'm working with someone else on it, I need to plan out exactly how all the tables relate to each other properly. Do any of you have any suggestions for ERD software that will run on Linux.

[PHP] Re: Linux ERD software

2010-02-18 Thread O. Lavell
Ashley Sheridan wrote: I don't normally need an ERD, but this latest project I'm on has some pretty complex database tables, and as I'm working with someone else on it, I need to plan out exactly how all the tables relate to each other properly. Do any of you have any suggestions for ERD

Re: [PHP] Linux ERD software

2010-02-18 Thread Bastien Koert
On Thu, Feb 18, 2010 at 7:26 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I don't normally need an ERD, but this latest project I'm on has some pretty complex database tables, and as I'm working with someone else on it, I need to plan out exactly how all the tables relate to each other

[PHP] Dumb Question - Casting

2010-02-18 Thread Chuck
Sorry, been doing heavy perl and haven't written any PHP in 3 years so a tad rusty. Can someone explain why the second expression in this code snippet evaluates to 7 and not 8? $a = (int) (0.1 +0.7); echo $a\n; $x = (int) ((0.1 + 0.7) * 10); echo $x\n; $y = (int) (8); echo $y\n;

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Ashley Sheridan
On Thu, 2010-02-18 at 09:47 -0600, Chuck wrote: Sorry, been doing heavy perl and haven't written any PHP in 3 years so a tad rusty. Can someone explain why the second expression in this code snippet evaluates to 7 and not 8? $a = (int) (0.1 +0.7); echo $a\n; $x = (int) ((0.1 + 0.7)

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Andrew Ballard
On Thu, Feb 18, 2010 at 10:50 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-02-18 at 09:47 -0600, Chuck wrote: Sorry, been doing heavy perl and haven't written any PHP in 3 years so a tad rusty. Can someone explain why the second expression in this code snippet evaluates

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Daniel Egeberg
On Thu, Feb 18, 2010 at 16:47, Chuck chuck.car...@gmail.com wrote: Sorry, been doing heavy perl and haven't written any PHP in 3 years so a tad rusty. Can someone explain why the second expression in this code snippet evaluates to 7 and not 8? $a = (int) (0.1 +0.7); echo $a\n; $x =

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Joseph Thayne
According to the PHP manual using the same expression, Never cast an unknown fraction to integer, as this can sometimes lead to unexpected results. My guess is that since it is an expression of floating points, that the result is not quite 8 (for whatever reason). Therefore, it is rounded

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Nathan Rixham
Daniel Egeberg wrote: On Thu, Feb 18, 2010 at 16:47, Chuck chuck.car...@gmail.com wrote: Sorry, been doing heavy perl and haven't written any PHP in 3 years so a tad rusty. Can someone explain why the second expression in this code snippet evaluates to 7 and not 8? $a = (int) (0.1 +0.7);

[PHP] Re: PHPDoc (not PhD) question.

2010-02-18 Thread Nathan Rixham
Richard Quadling wrote: Hello. Does anyone have any other templates for PHPDoc? I've found zym's ExtJS PHPDoc template, but this doesn't seem to be maintained and there are a few bugs (source code not styled, source code rendered as external windows with broken links, ordered and

[PHP] linux admin needed in israel

2010-02-18 Thread Ashley Sheridan
I know it' not the right place to post this, but this is the only mailing list i'm on, and guessed this might be interesting to one of you possibly? I've a friend looking to place a Linux administrator in Israel (I've no idea what part, she didn't say) If you want, you can replay back off-list

Re: [PHP] Export/Write rows from DBF to CSV

2010-02-18 Thread OBXer
I'm trying to adopt this piece of code for my use. I fixed the csv_data .= trim error. Does anyone know how I can fix empty fields? Everything is dumping to a csv file but information is not matching up. I don't know if I can insert a space or something if field is blank? Rahul S. Johari-2

[PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Daevid Vincent
I'll confess that I've done almost zero research on this topic as of right now aside from pricing readers and blank cards. So we're opening a new super-club here in Seattle. One of the ideas we'd like to pursue is that people are assigned a card. This can be a magstripe card or something with a

Re: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Matt Neimeyer
If the scanning device hooks into the keyboard somehow it should be easy. I believe that's called a keyboard wedge. Basically, you scan and it types. My only exposure to this is using one of the old CueCat scanners to index my personal library into a php app I cobbled together. The CueCat hooked

Re: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Phpster
The inputs are simple client side devices, lime th keyboard. I used as wasp brand barcode reader and it was configured to input the value and the tab to send it to te next field. They work well and easy to set up. Bastien Sent from my iPod On Feb 18, 2010, at 5:42 PM, Daevid Vincent

RE: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Williams, Dewey
Bar code scanners can be setup to decode the scan code on the card and output it as text. On your incoming site, place cursor in text box, scan card, code on card is entered as text, hit enter, text field sent to database where all the F* Magic takes place. You will also need a method to create

Re: [PHP] Export/Write rows from DBF to CSV

2010-02-18 Thread Paul M Foster
On Thu, Feb 18, 2010 at 02:31:00PM -0800, OBXer wrote: Rahul S. Johari-2 wrote: Ave, I'm trying to retrieve data from a DBF database and write it to a CSV file in a comma delimited format. I'm able to get the data and write it to CSV, but it only writes the last row/record ... not

Re: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Nathan Nobbe
On Thu, Feb 18, 2010 at 3:42 PM, Daevid Vincent dae...@daevid.com wrote: I'll confess that I've done almost zero research on this topic as of right now aside from pricing readers and blank cards. So we're opening a new super-club here in Seattle. One of the ideas we'd like to pursue is that

[PHP] array conversion

2010-02-18 Thread Dasn
Hi guys. How to convert an array like: Array ( [0] = key1 [1] = value1 [2] = key2 [3] = value2 ) to Array ( [key1] = value1 [key2] = value2 ) Is there a built-in function to do this? Please Cc me. :) Thank you in advance. -- PHP General Mailing List

Re: [PHP] array conversion

2010-02-18 Thread Paul M Foster
On Fri, Feb 19, 2010 at 01:20:12PM +0800, Dasn wrote: Hi guys. How to convert an array like: Array ( [0] = key1 [1] = value1 [2] = key2 [3] = value2 ) to Array ( [key1] = value1 [key2] = value2 ) Is there a built-in function to do this? Please Cc me.

Re: [PHP] array conversion

2010-02-18 Thread Larry Garfield
On Thursday 18 February 2010 11:58:28 pm Paul M Foster wrote: On Fri, Feb 19, 2010 at 01:20:12PM +0800, Dasn wrote: Hi guys. How to convert an array like: Array ( [0] = key1 [1] = value1 [2] = key2 [3] = value2 ) to Array ( [key1] = value1

Re: [PHP] array conversion

2010-02-18 Thread Adam Richardson
Or, function new_arr(array $arr) { $count = count($arr); if ($count % 2 != 0) throw new Exception('The new_arr() function requires an even number of elements.'); for ($i = 0; $i $count; $i += 2) { $new_arr[$arr[$i]] = $arr[$i + 1]; } return $new_arr; } $test =