News Feed
Sections

News Archive


Community Events






Don't see your event here?
Let us know!


feed this:

Mind Tree Blog:
Friendly URLs in PHP why do you care?
0 comments :: posted Thursday June 26, 2008 @ 10:26:59
voice your opinion now!

This new post from the Mind Tree blog (at hurricanesoftware.com) asks the question "why do you care about friendly URLs in PHP applications?"

Nice URLs, readable URLs, search-engine-friendly URLs. Different names same deal. [...] Turns out this isn't all that hard with PHP - in fact it can turn into something that's very useful from more than just a readability viewpoint.

He shows how to use mod_rewrite and an .htaccess file to automatically grab the request and map it to the right place. Then, the PHP script looks at the incoming data and pushes the correct page back out to the browser. He's also included some modifications to the original idea that allow for numeric grouping and named groups for rewriting content.

tagged with: friendly url modrewrite htaccess group named numeric


Jonathan Snook's Blog:
Password Protecting Admin Functions in CakePHP
0 comments :: posted Wednesday January 30, 2008 @ 09:31:00
voice your opinion now!

Jonathan Snook has posted a helpful trick for CakePHP users out there looking to secure sections of their site away from "normal users" and keep it only in the hands of the admins.

I just wanted to document this for easy future reference but if you don't want to hook up a complex user adminstration with authorization components, you can simply specify that the admin path be password protected in either your .htaccess file or in your httpd.conf.

This method is actually one of the built-in methods Apache has for restricting access (http authentication) that he's placed on his "/admin" directory. Call htpasswd to create the password file and you're all set to go.

tagged with: cakephp framework password protect htaccess authentication http


releases code cakephp database conference PHP5 ajax security framework example package zend PEAR release job book application mysql developer zendframework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework