scriptygoddess

03 Aug, 2002

Basic rules for good PHP

Posted by: amy In: Suggested reading

I really wish that someone had showed me something like this page when I was starting to learn PHP. I could have saved myself from writing a lot of really bad code.

It's also got a really nice explanation of what changes are required of your code when register_globals is turned off. I'm slowly working through some of my old code and converting it to play nice when register_globals is turned off, and I can't be the only one.

(I shall now return to my hidey-hole and crunch on mySQL for another week or so…)

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

2 Responses to "Basic rules for good PHP"

1 | Aubrey

August 6th, 2002 at 11:51 am

Avatar

I have a php journalling script that I (very, VERY) badly coded last summer, and I had been looking around for ways to improve it. Heh, well, I'll be using the tips from that link now to make my script more efficient! Thanks for posting it!

2 | Lynda

August 4th, 2002 at 12:34 pm

Avatar

Thanks for the link, Amy! I recently figured out some of those great tips for myself, the hard way. hehe.

I don't agree with register_globals being turned off though. I have yet to come by a host who thinks it really will help with security. So until I start coding for money (ha!) I think all my scripts are going to be written with the assumption that register_globals is on.

Featured Sponsors

About


Advertisements