News for hackers. Stuff that matters.
Re:Link: A fast and simple PHP Router by mcfunley on Thursday May 29, 2014 @02:23PM (#7817744)
Basically just "/listing/<a number>/<some ignored text> goes to listing.php", multiplied by a thousand pages or so.

There's overhead associated with doing the bookkeeping necessary to compute the route lookups. In practice, it's not that awful to just write a function like "get_url($listing_id)" by hand, and debugging this later is much more straightforward.

We didn't need to restart httpd (in development at least) to add to .htaccess. For production deploys maybe we were configured to do this, but that's hidden from development.

There are no comments on this comment yet.