All Beginner Tutorials
So – I’ve just started off this new site – All Beginner Tutorials. It’s aimed at becoming a repository for many beginner-focused tutorials. Please take the time to check it out, and even add a tutorial or two!
So – I’ve just started off this new site – All Beginner Tutorials. It’s aimed at becoming a repository for many beginner-focused tutorials. Please take the time to check it out, and even add a tutorial or two!
It’s relatively easy to make URL safe strings for use by mod_rewrite. Let’s use the example that you have a form that adds a new blog post to your site. When the user submits this form, you want to generate a URL safe string (based on the title of the blog post) for mod_rewrite to use. This little snippet will show you how this can be achieved in one line of code in PHP.
Read More…
Functions Inc. is a new site I’ve started for all you guys to add your code snippets to. It’s an online code snippet repository where you can add your useful snippets, as well as view others. You can keep your snippets private, just using the site as an online code library, or choose to share them with others.
Why not head over there now and check it out. It’s free!
Use the following .htpasswd generator to secure your Apache web directories.
Make sure you have a .htaccess and .htpasswd file in the directory you want to secure, then add the entries once you’ve generated your password.
Here is a simple MD5 hash generator I created quickly as part of a useful toolset I’m planning to build up.
The code to generate an MD5 hash using PHP is simple:
md5($string_to_convert);