To Create
Create a URL from a string of text with PHP and mod_rewrite
Kamis, 24 November 2011
Quite often when developing big web apps you may need to use mod_rewrite to generate SEO friendly URLs from a string of text, Very similar to the way Word press generates URLs for blog posts.
The Code
Below is the function which will remove all the spaces and special characters from a string and convert it to lowercase making sure its formated ready to be used as a page URL.
function create_slug($string){
$string = preg_replace( '/[
create rounded corners and drop shadows in CSS3
Jum`at, 11 November 2011
Whether it's HTML5 or CSS3, both are slowly and painfully becoming standards, but in the meantime, it turns out that there's much debate and contention about even the simplest of features.
Like rounded corners.
In the CSS3 spec, rounded corners are specified as border-radius: though it's implemented differently in the Mozilla family of browsers (including Firefox) than the Webkit (Safari) group.
What this means is that if you're running, say, Internet Explorer or an older ver...
Create a simple virus to disables USB ports
Kamis, 20 Oktober 2011
In this post I will show how to create a
simple virus that disables/blocks the USB ports on the computer (PC).
As usual I use my favorite C programming language to create this virus.
Anyone with a basic knowledge of C language should be able to understand
the working of this virus program.
Once this virus is executed it
will immediately disable all the USB ports on the computer. As a result
the you’ll will not be able to use...
How to create facebook and twitter buttons to posts
Kamis, 2 Juni 2011
Many bloggers will be looking out to promote or share their posts in
Facebook or twitter.Using plugins will just slow down the site, So i
have a code which will create facebook and twitter buttons to posts.
Step 1 using codes
Go to the file Functions.php
paste the following code and save, Ur done.
function share_this($content){
if(!is_feed() && !is_home()) {
$content .= '<div>
<a href="http://tw...
Create a Semi Transparent Background Color in CSS
Selasa, 31 Mei 2011
When Web designers began using
Cascading Style Sheet code, they used it to set fonts and colors to
entire websites to avoid editing every HTML file. Since around 2008,
Web designers now use CSS to also avoid opening up their graphics
editing programs. You can use pure CSS to add semi-transparent
backgrounds to any content on a Web page, for example. In the past,
this required creating a PNG file and then adding a PNG fix for Internet Explorer 6. Internet Explorer versio...