akbkhome

Smoking toooooo much PHP



Facetious Observation
So I guess what you are trying to say is that the programmer's coding ability is about on par with your spelling/proof-reading ability?

Just busting your chops, of course ;)

BTW- in your Error messages for this form, empty is spelled "empty", not "emtpy
(unless that is what you meant- I'll have to look up the definition of "emtpy" to be sure)
#1 - C Drozdowski ( Link) on 25 Aug 2005, 09:30 Delete Comment
published a bit early
should be proof read better now ;) - published a bit early there.

Errors should now be fixed - thanks
#2 - Alan Knowles ( Link) on 25 Aug 2005, 10:05 Delete Comment
An applicaton immediatly fixed
Well, you probably missed a few typos here and there ;)

looking forward for your post about over engineered code.


#3 - xavier ( Link) on 25 Aug 2005, 18:34 Delete Comment
Wonderful
Thanks for the post, I love getting in to the minds of other developers. Having to grep a directory structure to find out where the _hell_ a variable is comming from is hot stuff, btw.
#4 - Luke K ( Link) on 25 Aug 2005, 23:45 Delete Comment
Super Duper
Reminds me of some code audits which I had done previously. Certain users don't even document their code in the slightest and you have to figure out how to fix or modify applications.

Others for example allow their applications to write arbitrary data into their webroot which does not help in the slightest.

You have got to just love newbies! ;)
#5 - Jacques Marneweck ( Link) on 26 Aug 2005, 00:01 Delete Comment
Well, ok, but ...
(sry for mistakes, im frensh)
One of the problems with PHP is that it is easy to start using it without any programming notion before.
So, there are a lot of bad coded softwares.
But, where you all perfect when you started? Whe cant all have a course payed to learn proper programming.
The importent part is to explain to all, like in this article, what is dangerous, and even thoes who use php since 10 years learn somthing.
#6 - Sky ( Link) on 26 Aug 2005, 15:49 Delete Comment
Even eval is abused in Perl
What's scary is that even the coders of the Advanced Web Statistics (awstats) have misused eval and people have been able to remotely execute commands on the said servers.

It may be better if we were to place a huge warning caption to the eval function page to advise users to avoid using eval?
#7 - Jacques Marneweck ( Link) on 26 Aug 2005, 23:17 Delete Comment
What are you using for a dev environment?
I've been using Dreamweaver lately, just the code view, and it has very useful search functions that allow me to search files, directories and entire sites at once. I know other apps have this feature too.
#8 - Atroxodisse ( Link) on 27 Aug 2005, 07:29 Delete Comment
In general
Though I understand the writers frustration I think extract() is a great tool to write flexible functions, and once you know it is used (and the function names make sense) it ain't that hard to debug.

Atroxodisse: in UltraEdit you get a real nice overview of all search hits in multiple files. A lot cheaper and easier for coding than Dreamweaver if you ask me.
#9 - Chris ( Link) on 28 Aug 2005, 17:14 Delete Comment
you serious?
"I've been using Dreamweaver lately, just the code view, and it has very useful search functions that allow me to search files, directories and entire sites at once."

are you trying to compare Dreamweavers [i]search[/i] capabilties with grep?

obviuosly another windows user.
#10 - thorpe ( Link) on 10 Nov 2005, 10:44 Delete Comment
Cheers
Thanks for sharing this. Made a post about it on my site.

-Tim
http://php-coding-practices.com
#11 - Tim ( Link) on 04 May 2007, 19:49 Delete Comment
Newby
I read your post and am learning. funny you should mention a job worth running around pulling your hair out. I'm a designer, yet more and more the job calls for programming code ugh!. I had to rework a php form that a previous designer had copied and hacked to bits. I was following that damn string all over the place, into dead ends weird folders, etc etc., boss saying... why aren't these changes done, you know. Anyway, do you know of a place online that gives step by step coding instructions for php?? would help tremendously to know the basic rules. I come from basic html/css.
#12 - Newby ( Link) on 19 Nov 2008, 18:58 Delete Comment


Name
Email
Homepage
Comment Title
Comment
 
Contact me at alan@akbkhome.com