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 (
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
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
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
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
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
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
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
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
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
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?
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/
##
> 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'] ;
>>
>>
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
"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
"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
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
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
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
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
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
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
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
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
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.
> >>
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
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
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
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
> 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
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
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
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
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
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
35 matches
Mail list logo