Skip to main content

Timeline for Parsing URL segments

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Jun 13, 2012 at 11:57 comment added mseancole @onlineracoon I have read the 5.4 release log, at least enough to know about that method. As I said, I know what you are trying to do. But shorthand is not always the best way if you want to have readable code. Not only that but, not everyone is going to know about it, or be able to support it should you ever need to move it to another server. Sanitizing is still important, especially with URL parsing because of PHP injection. I don't know exactly how they do it, think it has more to do with eval users, but its always better to ensure it isn't possible. Especially if its only one extra line.
Jun 13, 2012 at 11:04 comment added onlineracoon @showerhead I really appreciate all the effort, but it was a little bit of an over kill, you tell me about santization, but that is not really needed at this point, since we'r just parsing the URL, we are not posting to the database. Also about the shorthand thing, [] instead of array(), go read php 5.4 release log ;)
Jun 12, 2012 at 19:01 comment added mseancole @msanford: It's always good when you walk away from teaching someone something having learned something yourself. A lot of that explanation is me walking myself through it :)
Jun 12, 2012 at 17:36 history edited mseancole CC BY-SA 3.0
added 783 characters in body
Jun 12, 2012 at 17:31 history edited mseancole CC BY-SA 3.0
added 783 characters in body
Jun 12, 2012 at 17:15 history answered mseancole CC BY-SA 3.0