Slashdot Mirror


User: Sepodati

Sepodati's activity in the archive.

Stories
0
Comments
839
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 839

  1. SQLite allows more than one query, though on PHP and SQL Security · · Score: 1

    The SQLite extension does allow multiple queries per call, though, and this is being pushed/bundled with PHP5. It seems like there is a big push for this to be the "standard" database that you can always expect to be available (kind of how MySQL is now).

    ---John Holmes...

  2. Re:SQL injection 101 ... on PHP and SQL Security · · Score: 1

    Why would you put quotes around an integer? If the "id" column is a numeric column, then you _validate_ $var to make sure it's a number. Then you issue the query without quotes and it's still safe.

    Getting in the habit of putting quotes around every value regardless of whether it's a string or not is just going to get you into trouble when you switch databases.

    ---John Holmes...

  3. Re:Guides to Secure Programming? on PHP and SQL Security · · Score: 1

    So how is that book coming along, btw?? ;)

    ---John Holmes...

  4. Re:magic_quotes on PHP and SQL Security · · Score: 1

    You don't need to strip slashes from data coming _from_ a database unless you by some chance have magic_quotes_runtime enabled. If you find yourself having to strip slashes from your database data (or actually see slashes inside your database), then you're running addslashes() twice (probably once with magic_quotes and once yourself).

    ---John Holmes...

  5. Re:magic_quotes on PHP and SQL Security · · Score: 1

    Enable magic_quotes_sybase and a double quote will be used instead of a slash.

    ---John Holmes...

  6. Re:Here come the jokes... on PHP and SQL Security · · Score: 1

    Just FYI, you can't use ini_set() to change the register_globals setting. ---John Holmes...

  7. Re:Here come the jokes... on PHP and SQL Security · · Score: 1

    No, it means that poor programmers can easily make a less secure script. ---John Holmes...

  8. Re:one of my first CS TAs in college on People with real l337 speak names? · · Score: 1

    I have a cousin who is named HD. No one knows if H is his first name and D is his middle, or if it's just HD with no middle name. Never seen his birth certificate. It may be obvious, but parents are big Harley Davidson fans. ---John Holmes...

  9. Re:That's nothing on People with real l337 speak names? · · Score: 1

    Try having an actual porn name. No one will ever find me on a search engine. ---John Holmes...

  10. Re:That would BLOW (pardon the pun.) on An Ignition Interlock In Every Car? · · Score: 5, Interesting

    My neighbor had one of these years ago and he would just park the car next to his air compressor. When he needed to start the car all it took was a puff from the air hose to pass the test. Now how easy would it be to keep a little compressor in your car that plugs into the cig. lighter? Bottom line: people will always find a way around it. ---John Holmes...

  11. Re:That would BLOW (pardon the pun.) on An Ignition Interlock In Every Car? · · Score: 1

    Hell yeah. No one is afraid of the punishments anymore... that's the problem. ---John Holmes...

  12. Re:laws on An Ignition Interlock In Every Car? · · Score: 1

    That's a stupid arguement. The people shouldn't be driving drunk, plain and simple. It shouldn't hurt restaurants at all because people should be doing the right thing already.

    ---John Holmes...

  13. Re:Government Copyright on NASA Prepares to Open Source Code · · Score: 5, Interesting

    They are public domain unless there are security reasons to not release the code. I just went through this with a program I wrote for DOD. Under the Freedom of Information Act (FOIA), you can request the source code to any program. Not saying they'll approve it, but unless there are "national security" type reasons, they should. In order for me to get a copy of my program to continue to develop and distribute on my own, I had to do a FOIA request on myself. :)

    ---John Holmes...

  14. Re:Jumping off points on A Brief History of the Space Station · · Score: 1

    What's to stop us from establishing refueling points at various points all the way to mars? Launch unmanned ships and have them staged and ready for refueling the main, manned ship.

    Wouldn't that result in a smaller, faster ship (or more room) overall? Or would the slowing down, stopping, refueling, speeding up cycle just make things worse?

    ---John Holmes...