[PHP] Proper code formatting

2009-03-22 Thread Angus Mann
Hi all, I'm fairly new to PHP so I don't have too many bad habits yet. I'm keen to make my code easy to read for me in the future, and for others as well. Are there any rules or advice I can use for formatting (especially indenting) code? for example how best to format / indent this ? if (

Re: [PHP] need help with code

2009-03-22 Thread VamVan
Code without proper indentation and is very hard to comprehend. You have unnecessary spacing and line breaks that makes it difficult to debug. I suggest you few things as a good practice: 1) Until you learn perfectly to code use some nice GUI editors that have syntax highlighting (aptana, eclipse

Re: [PHP] Frameworks / obstinate?

2009-03-22 Thread Daniel Kolbo
Marc Christopher Hall wrote: My personal take on this goes something like this: I'm not a huge fan of re-inventing the wheel. However, it seems that since the first stable release of PHP 5 into the wild a much needed emphasis has been placed on OOP solutions within the PHP world. Don't read me

[PHP] Re: [SOLVED] How do you use php-gettext?

2009-03-22 Thread Michelle Konzack
There are two example coming with "php-gettext" package. However, it is realy easy since you have to use only: print T_gettext("Hello World"); or print sprintf(T_ngettext("%i Developer", "%i Developers", ${COUNT}), $COUNT); Run the command xgettext -k T

RE: [PHP] Frameworks / obstinate?

2009-03-22 Thread Marc Christopher Hall
My personal take on this goes something like this: I'm not a huge fan of re-inventing the wheel. However, it seems that since the first stable release of PHP 5 into the wild a much needed emphasis has been placed on OOP solutions within the PHP world. Don't read me wrong, I know the importance was

Re: [PHP] Having trouble with a form to mail script.

2009-03-22 Thread dg
On Mar 22, 2009, at 12:46 PM, Linda Stark wrote: what you guys thought about the PHPMailer-FE from http://phpmailer.codeworxtech.com/index.php?pg=phpmailerfe I'm not familiar with this. You might want to check with your web provider. I'm with Pair and they make security recommendations for

[PHP] Re: Frameworks / obstinate?

2009-03-22 Thread Shawn McKenzie
Daniel Kolbo wrote: > Tony Marston wrote: >> "Nitsan Bin-Nun" wrote in message >> news:d47da0100903220910q7bb66706s6255f0fc89b98...@mail.gmail.com... >> >>> Don't forget to attach the message to the list. >>> >>> Regarding the frameworks, which of them, for your opinion, will take the >>> fastes

Re: [PHP] DOMElement - attributes and namespace

2009-03-22 Thread Michael A. Peters
Michael A. Peters wrote: Michael A. Peters wrote: At some point I'll get the guts to report it as a bug just to be told it isn't a bug with the standard response that says it isn't a bug and absolutely no explanation as to why. Bug ID 47747 Clear demonstration test case - http://www.cl

Re: [PHP] how to make multiple sql run faster

2009-03-22 Thread Chris
Davi Vidal wrote: On 03/21/2009 10:19 AM, Andrea Giammarchi wrote: Hi all, I am inserting more than 5000 rows into sql database but its taking more than 30 mins to get it all the data inserted. I use union to insert multiple rows of 20 at a time. What is the best way to make insert sql statem

Re: [PHP] Frameworks / obstinate?

2009-03-22 Thread Robert Cummings
On Sun, 2009-03-22 at 10:54 -1000, Daniel Kolbo wrote: > > Hello, > > I changed the subject because I did not want to steal Nitsan's thread. I hope you started a "New" email and didn't just change the subject... otherwise you've hijacked the thread. I can't tell I keep threading off. > There see

[PHP] Frameworks / obstinate?

2009-03-22 Thread Daniel Kolbo
Tony Marston wrote: "Nitsan Bin-Nun" wrote in message news:d47da0100903220910q7bb66706s6255f0fc89b98...@mail.gmail.com... Don't forget to attach the message to the list. Regarding the frameworks, which of them, for your opinion, will take the fastest time to learn and get into code?

[PHP] [SOLVED] How do you use php-gettext?

2009-03-22 Thread Michelle Konzack
Now it works... I do not know why but it works. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##

RE: [PHP] Having trouble with a form to mail script.

2009-03-22 Thread Linda Stark
> From: dane...@bluerodeo.com > To: nads...@live.com > Subject: Re: [PHP] Having trouble with a form to mail script. > Date: Sat, 21 Mar 2009 09:43:25 -0700 > > > On Mar 21, 2009, at 3:47 AM, Linda Stark wrote: >> $email = $_REQUEST['email'] ; >> >>

Re: [PHP] webmin mods..

2009-03-22 Thread Michael A. Peters
bruce wrote: oh... has anyone ever played/used/modified the webmin app?? i'm looking for a web based app/tool that i can modify to be able to manage my distribbuted client/server crawler on my network of boxes. i'd rather start with an existing framework/app that already kind of works with modu

Re: [PHP] Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Tony Marston
"Nitsan Bin-Nun" wrote in message news:d47da0100903220910q7bb66706s6255f0fc89b98...@mail.gmail.com... > Don't forget to attach the message to the list. > > Regarding the frameworks, which of them, for your opinion, will take the > fastest time to learn and get into code? Generally speaking if s

[PHP] Re: Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Tony Marston
"Nitsan Bin-Nun" wrote in message news:d47da0100903220852v565771e5r9a3a72184a0a...@mail.gmail.com... > Hi Guys, > > I have been using cakephp for a while as a development framework. > > I'm also thinking for a while to use another framework and leave cakephp > alone (too much babbling.. it takes

Re: [PHP] MYSQL TABLES (One To Many Relationship)

2009-03-22 Thread tedd
At 5:04 PM +0100 3/22/09, abdulazeez alugo wrote: Hi guys, I need help on something I'm working on and its really eating me up so I'll appreciate any help I can get on it. I'm writing code for a site that posts a topic for discussion and accepts comments (Just like a parliament). There ar

RE: [PHP] Web Development/Application Analysis

2009-03-22 Thread Bob McConnell
From: Stuart > > Now that's done, it's Mothers Day here in jolly old England, and I > have a phonecall to make! Hi Stuart, Thank her for us while you're on that call. You turned out pretty well, so I think she done good. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Phpster
Qcodo and symfony both have an ORM layer that can do that. They will provide/return and basic set of classes that interact with those tables. Bastien Sent from my iPod On Mar 22, 2009, at 11:52, Nitsan Bin-Nun wrote: Hi Guys, I have been using cakephp for a while as a development framewor

[PHP] webmin mods..

2009-03-22 Thread bruce
oh... has anyone ever played/used/modified the webmin app?? i'm looking for a web based app/tool that i can modify to be able to manage my distribbuted client/server crawler on my network of boxes. i'd rather start with an existing framework/app that already kind of works with modules/apps on a s

[PHP] quick question - need a site i can more or less copy from

2009-03-22 Thread bruce
Hi... Working on a test app, and I need a web interface to test/view the underlying information. Looking for (hopefully) quick pointers/suggestions. I'm dealing with a number of cli web crawling apps that return data. I'm trying to find a quick app that I can modify the db schema, as well as some

Re: [PHP] Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Nitsan Bin-Nun
Don't forget to attach the message to the list. Regarding the frameworks, which of them, for your opinion, will take the fastest time to learn and get into code? Thanks On Sun, Mar 22, 2009 at 5:59 PM, Graham Christensen < graham.christen...@iamgraham.net> wrote: > Look into Doctorine &|| Prope

[PHP] MYSQL TABLES (One To Many Relationship)

2009-03-22 Thread abdulazeez alugo
Hi guys, I need help on something I'm working on and its really eating me up so I'll appreciate any help I can get on it. I'm writing code for a site that posts a topic for discussion and accepts comments (Just like a parliament). There are different discussions for every day and the comme

[PHP] Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Nitsan Bin-Nun
Hi Guys, I have been using cakephp for a while as a development framework. I'm also thinking for a while to use another framework and leave cakephp alone (too much babbling.. it takes too much time until you get to the code itself..), now I have decided to move on and here comes my question. Do

Re: [PHP] Web Development/Application Analysis

2009-03-22 Thread George Larson
2009/3/22 OOzy Pal > On Sat, Mar 21, 2009 at 6:33 PM, tedd wrote: > > At 6:15 PM +0300 3/21/09, OOzy Pal wrote: > >> > >> Tedd, > >> > >> You wrote a long story about a client hiring a programmer which not > >> what I am asking. > >> > >> Anyhow, thank you for your post. I learned from it. > >>

Re: [PHP] Web Development/Application Analysis

2009-03-22 Thread Daniel Brown
On Sun, Mar 22, 2009 at 09:02, tedd wrote: > > Good luck with your remote programmer. I second that, "OOzy." You're going to need all the luck you can get with the "web development/design business" you apparently "own." Since you obviously have no clue what it's like to freelance and instead

Re: [PHP] DOMElement - attributes and namespace

2009-03-22 Thread Michael A. Peters
Michael A. Peters wrote: At some point I'll get the guts to report it as a bug just to be told it isn't a bug with the standard response that says it isn't a bug and absolutely no explanation as to why. Bug ID 47747 Clear demonstration test case - http://www.clfsrpm.net/bugs/domattr.php

Re: [PHP] Web Development/Application Analysis

2009-03-22 Thread tedd
At 9:57 AM +0300 3/22/09, OOzy Pal wrote: On Sat, Mar 21, 2009 at 6:33 PM, tedd wrote: > As such, I won't waste my time entertaining any other questions from you. If I may ask you to use the time that you will not use for asnwering my questions in reading about relaxation politness. No matt

Re: [PHP] how to make multiple sql run faster

2009-03-22 Thread Davi Vidal
On 03/21/2009 10:19 AM, Andrea Giammarchi wrote: Hi all, I am inserting more than 5000 rows into sql database but its taking more than 30 mins to get it all the data inserted. I use union to insert multiple rows of 20 at a time. What is the best way to make insert sql statement run faster Us

RE: [PHP] Web Development/Application Analysis

2009-03-22 Thread abdulazeez alugo
> Date: Sun, 22 Mar 2009 11:51:45 + > From: stut...@gmail.com > To: oozy...@gmail.com > CC: php-general@lists.php.net > Subject: Re: [PHP] Web Development/Application Analysis > > 2009/3/22 OOzy Pal : > > On Sat, Mar 21, 2009 at 6:33 PM, tedd wrote: > >> At 6:15 PM +0300 3/21/09, OOzy Pa

Re: [PHP] Web Development/Application Analysis

2009-03-22 Thread Stuart
2009/3/22 OOzy Pal : > On Sat, Mar 21, 2009 at 6:33 PM, tedd wrote: >> At 6:15 PM +0300 3/21/09, OOzy Pal wrote: >>> >>> Tedd, >>> >>> You wrote a long story about a client hiring a programmer which not >>> what I am asking. >>> >>> Anyhow, thank you for your post. I learned from it. >>> >>> I don

Re: [PHP] DOMElement - attributes and namespace

2009-03-22 Thread Michael A. Peters
Michael A. Peters wrote: Michael A. Peters wrote: Here's the problem - $attributes = $node->attributes; creates a list that has both regular attributes and namespaced attributes. But I don't know how to programatically tell them apart. http://phpbuilder.com/manual/en/class.domattr.php Wh

Re: [PHP] Select Query with Multiple Optional Values

2009-03-22 Thread Robert Cummings
On Sun, 2009-03-22 at 09:22 +0800, Virgilio Quilario wrote: > >> Trying to find best way to accomplish following scenario. Looking to > >> search > >> inventory through a POST form, have the following optional fields to search > >> by: Product Name, Color, Size, and Status. Search maybe for the

Re: [PHP] DOMElement - attributes and namespace

2009-03-22 Thread Michael A. Peters
Michael A. Peters wrote: Here's the problem - $attributes = $node->attributes; creates a list that has both regular attributes and namespaced attributes. But I don't know how to programatically tell them apart. http://phpbuilder.com/manual/en/class.domattr.php What would be really nice is

[PHP] DOMElement - attributes and namespace

2009-03-22 Thread Michael A. Peters
Here's my function - private function filterAttributes($node) { // filters the attribute names and content $attributes = $node->attributes; foreach ($attributes as $attribute) { // allow colon as it is used in namespace attributes - // needs to be tested thoug