|
bt_escm posted:Here's an ORM http://propel.phpdb.org/trac/ Is Propel better than Doctrine? (I'm currently shopping around for ORMs)
|
# ¿ Apr 11, 2008 04:15 |
|
|
# ¿ May 6, 2024 10:14 |
|
fletcher posted:I don't really understand what that helps with. Isn't it more beneficial to just learn/practice SQL? If you use raw SQL then you will have to escape strings every time you input them and then remember to stripslashes every time you output them, you will have to build big rear end queries by concating strings and it eventually gets very ugly. If you use an ORM you can treat individual records as instances of an object and it's very pretty, all the escaping bullshit is managed for you (you will be much better protected from injection), and you can change the database schema with a migration and have all your code handle the change automatically (without having to do a big search replace of your entire codebase). , etc.
|
# ¿ Apr 11, 2008 04:21 |
|
fletcher posted:That's not true at all. I used PDO and didn't use a single string concatenation for SQL or have to worry about escaping ANY input throughout my entire application. Don't use addslashes, stripslashes, magic quotes, concatenation, or any of that other crap, that's the wrong way to do it. Sewer Adventure posted:If you use raw SQL
|
# ¿ Apr 11, 2008 07:32 |
|
Either way, not using an ORM is just making more work for yourself.
|
# ¿ Apr 11, 2008 07:33 |
|
Jahuran posted:flat files Use a database, we just had this nonsense on the last page. Also use something like memcached to speed up the database stuff.
|
# ¿ Apr 13, 2008 00:13 |