imagegrabscreen function in php5

imagegrabscreen function is only available in PHP 5.2.2. This function is useful when it’s necessary to make a screenshot of a website or a private application web page. For example, when a lender wants to view credentials of an appraiser before an appraisal job is assign. That appraiser should reveal his/her credentials of their license/certificate/reports in an image rather than in html format. Here is how you’re going to use it. Remember to upgrade your server to php version 5.2.2, or if you have a hosting provider, ask them…

Continue reading »

How to send emails out using PHPMailer and GMail

I’ve been working on a schedule calendar project that can be iframed into any kind of website. This schedule will be a real-time calendar which can be used for class registration, training classes, webinar registration, cooking schools, camping registration, and more …. The calendar will be run on Linux server and MySQL Database. Step 1: download class phpmailer on sourceforge.net Step 2: unzip the package and place all files in a folder called /includes/ anywhere on your server. However, you need to access to this folder…

Continue reading »

Reserved Words Used in MySQL Newest Version

Today I will share with you all the reserved words that I’ve learned from my updated MySQL Database Server Version 5.5. This version has been released since Jan 14, 2010 by Oracle. I used to have MySQL v. 5.1 on my Apache server, now I updated to the latest version. The list below includes the reserved words from the latest version which is 5.5. The bottom of this page is the list of reserved words from previous versions. I will explain how these reserved words…

Continue reading »

Different ways to opening new windows using JavaScript

If you notice on most of the websites on the internet and inside most of web applications, you will find that opening a new window is a popular way of letting users/readers see additional information without navigating away from the current page. With JavaScript you can specify the dimensions, position and visible toolbars of this newly created window, as well as writing code directly into it and having the two windows operating together. To this aspect of modern web engineering, I will show you multiple…

Continue reading »

Get the last id from a table

If you need an ID before you can get the data from user’s inputs, you can use the query below to get the last id from a table in your database, and then you can increment 1 to that id. For example, a brand new ID can be assigned to an online order using the last id from the table and add 1 to it. Here’s what you can do: Send a query that return the last id of a table using either query below:…

Continue reading »