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…)

2 Responses to "Basic rules for good PHP"

1 | 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.

2 | 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!

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements