Viewing Category » Web Development

PHP – Using oEmbed API to Embed Videos

Post Thumbnail of PHP - Using oEmbed API to Embed Videos

oEmbed is a format for allowing an embedded representation of a URL on third party sites. Which means, if we have a video page’s URL, we can easily get the video thumbnail photo, video title, HTML code to embed it in our website and more. But of course, the video site must have oEmbed support in order for us to do that.

Filed in Web Development
Posted on 30 January 2012 • 0 comment

PHP MySQL – Get Next Auto Increment Value of a Table

Post Thumbnail of PHP MySQL - Get Next Auto Increment Value of a Table

We do not often need this but sometimes when we need to retrieve the next auto increment value of a table (without incrementing the auto increment value of course), this solution below will help.

Filed in Web Development
Posted on 14 January 2012 • 0 comment

PHP Smart Date Function – Display Time Elapsed (Difference) Based on a Given Timestamp

Post Thumbnail of PHP Smart Date Function - Display Time Elapsed (Difference) Based on a Given Timestamp

As a web developer, we often need to display dates in our website. As a web user myself, I don’t like to read full dates like “26 November 2011 11:30PM” because it takes me a little while to interpret the date. I prefer reading smart dates like “1 hour ago” or “6 months ago”. Therefore, here I wrote a quick and simple function in PHP that display the time difference/elapsed based on a given timestamp value.

Filed in Web Development
Posted on 12 December 2011 • 0 comment

Cannot Access Localhost After Editing etc/hosts and Flushing DNS Cache

Post Thumbnail of Cannot Access Localhost After Editing etc/hosts and Flushing DNS Cache

I was developing a new website that uses Facebook Login as the membership system. I came across this situation where I needed to create a “fake” domain by editing the etc/hosts file. Somehow, after editing the etc/hosts file (following an online guide), I cannot seems to browse http://localhost in my browser anymore. However, I can still browse my local apache server using http://127.0.0.1

Filed in Mac,Web Development
Posted on 22 November 2011 • 1 comment

Legacy Facebook “Share” Button Codes (Bubble Count, Box Count and More)

Post Thumbnail of Legacy Facebook "Share" Button Codes (Bubble Count, Box Count and More)

Few months ago, Facebook removed the page that allow us to generate codes for their official “Share” button. They replaced it with “Like” button instead. While “Like” button is fast and easy but we cannot add our comment along with the “Like” action. Therefore, in some cases, we still need the old Share button. Fortunately, the sharer.php still exists, so we can add the Share button using Facebook’s official script.

Filed in Facebook,Web Development
Posted on 17 November 2011 • 2 comments

4 Must-Have Google Chrome Extensions for Web Developers

Post Thumbnail of 4 Must-Have Google Chrome Extensions for Web Developers

Web developers often need to do repetitive works such as taking screenshots, turning off javascript or images, check backlinks or ranking of websites and more. Fortunately, with these 4 totally free Google Chrome extensions, web developers can save a lot of time on these repetitive works, thus increasing productivity.

Filed in Web Development
Posted on 3 September 2011 • 1 comment

How to Fix FTP Login Problem in WordPress in XAMPP for Mac OS (Localhost)

Post Thumbnail of How to Fix FTP Login Problem in Wordpress in XAMPP for Mac OS (Localhost)

If you are using XAMPP for Mac OS like me, and was asked to enter FTP login information when you upgrade Wordpress core and download themes or plugins, then this guide is for you. After searching for solution online, I found that this is a permission problem due to your Mac’s username is different compared to the default user name in XAMPP for Mac, called nobody.

Filed in Mac,Web Development
Posted on 12 July 2011 • 5 comments

Access GET Data (Query Strings) in htaccess mod_rewrite

Post Thumbnail of Access GET Data (Query Strings) in htaccess mod_rewrite

We were used to use RewriteRule to match a URL, and then rewrite it. However, RewriteRule will always ignore your query string (GET data) so we need to use RewriteCond in order to capture the values in the query string. This is the basic syntax: RewriteCond %{QUERY_STRING} pattern

Filed in Web Development
Posted on 9 July 2011 • 0 comment

Random Missing Characters When You View Source in Google Chrome – An Unnoticed Bug?

Post Thumbnail of Random Missing Characters When You View Source in Google Chrome - An Unnoticed Bug?

I started to notice this bug when I was playing with my new tool in my tools playground, the HTML Tags Counter. I loaded my site zenverse.net and viewed the HTML source using Google Chrome. Then, I copied and pasted the codes to run an analysis using my own tool. I was “amazed” by the result, I get different errors (different unclosed/unopened tags) almost everytime I reloaded the “view source” page.

Filed in Web Development
Posted on 5 July 2011 • 0 comment

How to Add/Integrate Google +1 Plus One Button into WordPress

Post Thumbnail of How to Add/Integrate Google +1 Plus One Button into WordPress

Google recently introduced their own social button just like those we commonly see, such as Facebook Share, Tweet It, Digg It, etc. Just like Facebook and Twitter button that let you share content to your followers or friends, Google +1 button let people who love your content to recommend it on Google search.

Filed in SEO,Web Development
Posted on 23 June 2011 • 1 comment
 Page 1 of 3  1  2  3 »