I've learned the beautiful method of managing PHP scripts using the safe method of using $_POST and $_GET to process data rather than using simple variables. Being in an array, I can write a global function that will globally clean all my variables as opposed to having to do it one by one:

$_POST = cleanInput($_POST);


The same with outputting data:
$q = safesql("SELECT * FROM table");
$r = mysql_fetch_assoc($q);
$r = cleanInput($r);


WOW! Man, this new script is so tight (I hate verbose code)... I'm really happy with the way this project's going on so far. I've also been dabbling a bit in Javascript, since I think it's incredibly crucial to making stuff idiotproof.

But honestly, the more I work with PHP, the more I see it simply as a templating engine. It's not a real language. It doesn't really do anything awesome... bah.
Posted by roy on August 6, 2003 at 08:55 PM | 2 Comments

Related Entries

Want to comment with Tabulas?. Please login.

Comment posted on August 7th, 2003 at 01:58 AM
re: techie posts... i kinda like them... but probably its because i'm in software...

but its also interesting to hear about the development of tabulas from the one & only developer... as i am using the product.

if only i had this kind of direct communication w/ my users... that would be so cool. very interesting situation you have going on here.
Comment posted on August 6th, 2003 at 09:02 PM
What did you do this summer?