Thursday, December 31, 2015

Problem Installing phpBB 3.1 Forum on IIS7 Machine

Anyone having this problem? I tried to install this latest phpBB free web forum into my Windows 7 IIS7 PC but I get this error page: I then download the earlier version which is 3.0 by clicking on a small button on upper right corner: After running 3.0 version in the localhost, it works fine: Anyone having this problem on IIS7 machine before? Maybe switching back to older version is the only...
Read More »

Simple Captcha Verification Using Javascript and PHP with GD Lib

This is a simple version that uses minimal amount of codes. However, this practice is not suitable for websites that require stringent security protection. The PHP codes make use of the GD library to generate a PNG image file that will be read by the HTML code. The PHP will randomly generate two characters and two numbers with first digit as character followed by a number, then a character and...
Read More »

Tuesday, December 29, 2015

Sending Multiple MySQL Table Data from PHP to Javascript via AJAX

Note: Please run these codes from a web host, either it is a "localhost" or remote host from a web hosting server. This is an expansion of my earlier post with sending data from only one MySQL table. For multiple table data channeling to browser from MySQL, a query string is used to differentiate the AJAX requirement. You can also create another PHP script to access data from other tables but...
Read More »

Large HTML Input Text and Space Suitable for Mobile Device Web Browsing

With the popularity of tablets taking the center stage ever since the launch of the first iPad, web pages were being swayed towards simplicity and user-friendliness. The smartphone revolution then followed suit and mobile web browsing had then become a norm until today. As the screens of tablets and smartphones are a lot smaller than deskstops, web pages are being made simpler with the texts...
Read More »

Friday, December 25, 2015

Sending MySQL Data from PHP to Javascript via AJAX

This is done through AJAX. It should be well supported by most browsers including IE. Everything is quite straight forward. First you need to set up a dummy MySQL database to test out the following javascripts. Here is the SQL to set the database up: USE `testDB`; DROP TABLE IF EXISTS `test`; CREATE TABLE `test` (  `a` tinyint(4) DEFAULT NULL,  `b` tinyint(4) DEFAULT NULL,  `c`...
Read More »

Monday, December 21, 2015

Casting a Reflection Image Using Pure Javascript

This is mainly for fun or educational purposes only. This is inspired by a carousel javascript plugin with reflection at the bottom of each image which looks like they are standing on a solid marble. Since it is an awesome idea, I tried to do some coding if it is able to be done by just pure Javascript. Yes, they are done and the codes are presented as follows: <html> <body> <a...
Read More »