You are here: Re: Can this code be improoved? If so how? « PHP Language « IT news, forums, messages
Re: Can this code be improoved? If so how?

Posted by Colin McKinnon on 05/28/05 00:50

Michael spilled the following:

> Can this code be improoved? If so how?
> I am new to php. This is one of my first scripts.
> Thank you
>
> <?
> define("TEXT_SHIP_TODAY", "<BR><B>Place your order today</B> before
<snip>

Yes, there is a lot of room for improvement. I sincerely hope that you are
new to programming.

First, go read a good book on programming (make sure you find out about
variables, arrays, and constants). Then go read the PHP manual. Than go
read the PEAR style rules (at pear.php.net).

It should be possible to write something to do the same thing as your
example with less the 40% of the code you published and make it
understandable.

HTH

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация