Re: [PHP] XML Parsing simpleXML Arrays Question

2007-01-14 Thread Jim Lucas
Richard Luckhurst wrote: Hi List I have taken the advice of a number of people on the list and am back trying to write my XML parser using SimpleXML. I am having a problem and I believe the problem is my lack of understanding of arrays and simpleXML in spite of much google searching and manual r

[PHP] XML Parsing simpleXML Arrays Question

2007-01-14 Thread Richard Luckhurst
Hi List I have taken the advice of a number of people on the list and am back trying to write my XML parser using SimpleXML. I am having a problem and I believe the problem is my lack of understanding of arrays and simpleXML in spite of much google searching and manual reading. I would appreciate

Re: [PHP] Stripslashes

2007-01-14 Thread Larry Garfield
Copying this back on list where it belongs... If the apache process on the server is configured to support .htaccess files, then there shouldn't be anything special you need to do. Do you have any other htaccess directives in use that could be affecting it? Remember that it's not "htaccess",

RE: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-14 Thread Ligaya A. Turmelle
Have you tried it with PDO? Respectfully, Ligaya Turmelle -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 1:36 AM To: php General List Subject: Re: [PHP] Stored Procedure returns nothing on ROLLBACK On Jan 11, 2007, at 5:53 PM, Chris

Re: [PHP] Normalized Numbers

2007-01-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-14 14:51:30 -0500: > I tried to install Testilence on my Ubuntu using Gnu make 3.81beta4(my > skills as a Linux administrator are weaker than my PHP skills) but was > unsuccessful :( What problems did you have? -- How many Vietnam vets does it take to screw in a lig

Re: [PHP] Stripslashes

2007-01-14 Thread Jim Lucas
Beauford wrote: I just turned off get_magic_quotes in my PHP.ini, but not sure if the hosting company has it on or not once I upload the site. What do you mean by "my PHP.ini" file? Are you saying that php is running as a cgi or as an apache mod? -Original Message- From: Beaufo

Re: [PHP] Hello

2007-01-14 Thread Chris
Edward wrote: How do I create a php document so that people in my nonprofit can vote on issues online through the organization's website? Search google for 'php voting script' or some such variant, I'm sure there are lots of them available. -- Postgresql & php tutorials http://www.designmagi

Re: [PHP] colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-14 Thread Gert Cuykens
lol :) Anyway did you guys tried it yet ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Normalized Numbers

2007-01-14 Thread Brian P. Giroux
Arpad Ray wrote: > Have you checked out the PEAR Validate packages? > http://pear.php.net/package/Validate_ISPN in particular might help you > along ;) I figured that someone had probably done this before. I wanted to do it myself because I figured it's a nice simple exercise to get my feet wet,

Re: [PHP] Stripslashes

2007-01-14 Thread Larry Garfield
On a real web host, they'll let you have a .htaccess file where you can disable them like so: php_value magic_quotes_gpc 0 (I keep saying "real web host" because I've just recently had to deal with a few web hosts that a client insisted on that didn't have a standard configuration and didn't s

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-14 Thread Jochem Maas
tedd wrote: > At 12:43 PM +0100 1/11/07, Jochem Maas wrote: >> Satyam wrote: >> >>> No problem there, the include in my DB abstraction layer includes and >>> calls the separate file with the function to make the connection to the >>> database. Though the main application source doesn't know abou

Re: [PHP] Normalized Numbers

2007-01-14 Thread Jochem Maas
Brian P. Giroux wrote: > > Jochem Maas wrote: >> Brian P. Giroux wrote: >>> I am just learning PHP and as a practical exercise I've been working on >>> a set of functions to process and manipulate what I call "normalized >>> number" (ISBNs, EANs, UPCs, etc...) >>> >>> My ultimate goal is to create

RE: [PHP] Normalized Numbers

2007-01-14 Thread bruce
hey rob.. like i said.. hadn't followed the thread... and yes, i too would say commenting every 2-3 lines is pretty much a waste.. for production code, my rule of thumb, and something i've 'encouraged' people working for me, was/is ~100 lines of code (max) for a routine... this varies, but it's a

Re: [PHP] Normalized Numbers

2007-01-14 Thread Brian P. Giroux
Roman Neuhauser wrote: -- Brian P. Giroux Sénécal & Associé.e.s / Associates Recherche et marketing / Research and marketing Tél : (705) 476-9667 Fax : (705) 476-1618 www.senecal.ca> # [EMAIL PROTECTED] / 2007-01-12 14:40:04 +: >> # [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: >>> Roman Ne

Re: [PHP] circular dependency between libraries

2007-01-14 Thread Jochem Maas
Roman Neuhauser wrote: > I have a circular dependency, and am looking for thoughts on breaking > the cycle without (much) redundancy or hard to automate procedures. > > I'm developing two programs, Testilence, a unit testing library, and > Amock (library for mock object generation, but that's irre

RE: [PHP] Normalized Numbers

2007-01-14 Thread Robert Cummings
On Sun, 2007-01-14 at 11:21 -0800, bruce wrote: > hi... > > haven't followed the entire thread.. just saw this portion that pertains to > comments > > i can only assume you guys are relatively young.. if you ever have to pick > up a piece of code that was developed 10 years ago, and you need

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-14 Thread Gert Cuykens
Added db5c29 it includes a new server memory login module some small layout and code modifications. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Normalized Numbers

2007-01-14 Thread bruce
hi... haven't followed the entire thread.. just saw this portion that pertains to comments i can only assume you guys are relatively young.. if you ever have to pick up a piece of code that was developed 10 years ago, and you need to track down/test/get back into production in a matter of a f

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-14 Thread tedd
At 12:43 PM +0100 1/11/07, Jochem Maas wrote: Satyam wrote: No problem there, the include in my DB abstraction layer includes and calls the separate file with the function to make the connection to the database. Though the main application source doesn't know about the include file with the

[PHP] circular dependency between libraries

2007-01-14 Thread Roman Neuhauser
I have a circular dependency, and am looking for thoughts on breaking the cycle without (much) redundancy or hard to automate procedures. I'm developing two programs, Testilence, a unit testing library, and Amock (library for mock object generation, but that's irrelevant in this discussion); both

Re: [PHP] Stripslashes

2007-01-14 Thread Jim Lucas
Beauford wrote: I just turned off get_magic_quotes in my PHP.ini, but not sure if the hosting company has it on or not once I upload the site. -Original Message- From: Beauford [mailto:[EMAIL PROTECTED] Sent: January 14, 2007 11:34 AM To: 'PHP' Subject: RE: [PHP] Stripslashes

RE: [PHP] Stripslashes

2007-01-14 Thread Beauford
I just turned off get_magic_quotes in my PHP.ini, but not sure if the hosting company has it on or not once I upload the site. > -Original Message- > From: Beauford [mailto:[EMAIL PROTECTED] > Sent: January 14, 2007 11:34 AM > To: 'PHP' > Subject: RE: [PHP] Stripslashes > > > I guess

RE: [PHP] Stripslashes

2007-01-14 Thread Beauford
I guess I'm just doing something wrong, 'cause that doesn't work either - nor do the hundreds of other snippets I've used. Here's the scenario. I have a form - after they submit the form it shows what they have entered, this is where I get the \. It also does it if the form redisplays after the

Re: [PHP] Normalized Numbers

2007-01-14 Thread Brian P. Giroux
Robert Cummings wrote: > On Fri, 2007-01-12 at 14:40 +, Roman Neuhauser wrote: >> I know it sounds crazy, but (most) comments are evil. Comments are are >> excuses for better code, they're often no more than a vague repetition >> of what the code says. If the code doesn't describe what it's

Re: [PHP] colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-14 Thread Paul Novitski
, comma ; semicolon : colon http://www.usask.ca/its/courses/cai/javascript/js_semicolon.html http://en.wikipedia.org/wiki/Punctuation http://www.cogs.susx.ac.uk/doc/punctuation/node00.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Normalized Numbers

2007-01-14 Thread Brian P. Giroux
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: Brian P. Giroux wrote: > If anyone can help me out with that or provide any other advice about > the rest of it, I'd be grateful. >

Re: [PHP] Normalized Numbers

2007-01-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-14 10:49:49 -0500: > > 1 function is_valid_ean($ean) { > > 2return (13 == strlen($ean) > > 3&& is_numeric($ean) > > 4&& (0 == (digit_sum($ean,1,1,3) % 10)) > > 5); > > 6 } > > Again, WOW! This is certainly the version I will use (if you

Re: [PHP] Normalized Numbers

2007-01-14 Thread Brian P. Giroux
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: >> Brian P. Giroux wrote: >>> If anyone can help me out with that or provide any other advice about >>> the rest of it, I'd be grateful. >>> The file can be found at http://www.senecal.ca/normnums.php.txt > >> keep comment

Re: [PHP] Normalized Numbers

2007-01-14 Thread Brian P. Giroux
Jochem Maas wrote: > Brian P. Giroux wrote: >> I am just learning PHP and as a practical exercise I've been working on >> a set of functions to process and manipulate what I call "normalized >> number" (ISBNs, EANs, UPCs, etc...) >> >> My ultimate goal is to create a normnum class and child class

[PHP] Re: colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-14 Thread Colin Guthrie
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-13 18:59:10 -0800: >> }, //<-- offending colon > > # [EMAIL PROTECTED] / 2007-01-14 04:49:10 +0100: >> ah ok i am sorry, you can just remove the , (the offending colon) > > Guyes, what were you doing during your biology classes? ;) LOL @ b

[PHP] colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-13 18:59:10 -0800: > }, //<-- offending colon # [EMAIL PROTECTED] / 2007-01-14 04:49:10 +0100: > ah ok i am sorry, you can just remove the , (the offending colon) Guyes, what were you doing during your biology classes? ;) -- How many Vietnam vets does it take to