Problem I’m trying to make a class for safe redirection of URLs. Redirecting URLs is something you can have in […]

Problem I have just written my first git hook script. It is very simple that simply finds any URLs in […]

Problem I have this little piece of code which determines the base URL of PHP: $root = $_SERVER[“SERVER_NAME”]; if(basename(__FILE__) !== […]

Problem I have written a method to tokenize HTTP request paths such as /employee/23/edit: protected void compile(String path){ int mark=0; […]

Problem I have to implement a “user-friendly” URL for an employment website. The URL /jobs{parameters?} may be composed of up […]