Author Archives: Hoan Huynh


About Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at hoan@4rapiddev.com


PHP Completely Delete A Directory Include Sub Directories And Files Posted by in PHP | Leave a comment

Below is just a PHP function that delete a particular directory/folder, all its sub directories/folders and files. Continue reading

innerText May Not Work On Mozilla Firefox Posted by in Javascript | 1 Comment

I have a span HTML object, I try to use getElementById and innerText to set the text between the start and end tags. It works fine on IE, Google Chrome and Safari but it doesn’t work Firefox. Continue reading

Create Count Down Download Page With JavaScript Posted by in Javascript | Leave a comment

You maybe see a download page with counter/timer within a range that displays the seconds remaining (count down) before prompting a downloadable file via it’s URL. For example: our download page or SourceForge download page. Continue reading

PHP Store Session In MySQL Database Posted by in PHP | 1 Comment

This article describes How to store PHP session in MySQL database instead files on the web server. The method should be considered when your web application runs on multiple web server or in a clustered environment. Continue reading

ASP.NET Store Session In MS SQL Server Database Posted by in SQL Server | Leave a comment

When websites and applications execute in a clustered environment or require heavy state management functionality, you should use database to store session state information. Continue reading

Where Are ASPStateTempApplications and ASPStateTempSessions Tables? Posted by in SQL Server | Leave a comment

ASPStateTempApplications and ASPStateTempSessions tables are in the TempDB database and are created when you configure SQL Server to Store ASP.NET Session State by running the InstallSqlState.sql script. Continue reading

JavaScript Display Leaving Confirm Box Leave This Page Or Stay On This Page Posted by in Javascript | 1 Comment

You maybe already see a confirm box with 2 buttons: Leave This Page and Stay On This Page when you try to leave current page by closing browser/tab or navigating to another page/link. Continue reading

JavaScript Alert Multiple Lines Posted by in Javascript | Leave a comment

By adding some new line escape characters or line breaks\n, we can display multiples lines message in the alert box. It allows us to show a long message to users and also help people understand clearly. Continue reading

Auto Rotate Web Page Title With JavaScript Posted by in Javascript | Leave a comment

The following is a JavaScript function that changes/rotates title of webpage automatically in every specified number of seconds. Continue reading

PHP Get Facebook URL Total Comments, Total Likes, Total Shares Posted by in Facebook Graph API | Leave a comment

This article will use PHP & Facebook Graph API & FQL to query link_stat Facebook table to get total comments, comment count, total likes, like count, total shares, share count, total count, click count, comment box count of one or more URLs that users on Facebook are interacting with. Continue reading