Currently Viewing Posts Tagged PHP

Math worksheet updates

I update math worksheet generator yesterday.
Some new features:
* One-Digit or Two-Digit. If you choose two-digit, you can setup the max number you want.
* Addition, subtraction or mixed with addition and subtraction.
* You can choose to print answer key as well.
* Setup how many worksheets you need.
* The name of kids and date to be put on the worksheet.
Click here to go to One-Digit or Two-Digit Addition and/or Subtraction
Do I forgot something? Oh! There are 64 questions per sheet.
It is very easy to use.

Math worksheet for my Daughters

I programed a web version of math worksheet. Just addition and subtraction.
My elder daughter, Grace, is Grade 1. She is learning addition and subtraction within two figures, up to 10.
Grace can do more than what teacher requested.
I build this new worksheet generator.
All parents are welcome to use this tool.
Go to Math – Addition & subtraction
Enter the max number you want to be used in worksheet, and how many pages you need.
60 questions per page.
Addition and subtraction are random.
You can also enter the name of your kids. Then he will get his own math worksheet.
After click Submit button, the worksheet is generated as PDF file in letter size.
To see a sample, Download file

Continue reading “Math worksheet for my Daughters”

PHP : Creating PDF

To create PDF file by PHP, you need some basic information. I record it here.
Page Sizes in PostScript Points
Paper Size – Page Width – Page Height
Letter – 612 – 792
Legal – 612 – 1008
A0 – 2380 – 3368
A1 – 1684 – 2380
A2 – 1190 – 1684
A3 – 842 – 1190
A4 – 595 – 842
A5 – 421 – 595
A6 – 297 – 421
It will be used, when I begin a page as below:

pdf_begin_page ($pdf, $width, $heifht);

Built-in PDF Fonts
Courier-Bold Oblique
Helvetica-Bold Oblique
Times-Bold Italic
Zapf Dingbats
And Font Encodings
Encoding : Description
winansi : Windows
macroman : Mac Roman (Macintosh default)
edcdic : EBCDIC, used on IBM AS/400 and S/390 systems
builtin : Coding built into the font itself
host : System-specific coding:macroman on the Mac, ebcdic on EBEDIC-based systems, and winansi on all others.

$font = pdf_findfont ($pdf, $font_name, $encoding);

Continue reading “PHP : Creating PDF”

Google and Zend – Zend Google Data Client Library

Zend Google Data Client Library is released on Oct. 31, 2006.
It is a new GData API for Php developer. It provide a simple standard protocol and writing data on the web. For example, Google Base, Calendar, Blogger, and CodeSearch each have a data API following the Google Data protocol.
To get this Gdata tool, click here.
The most interest thing is Google Account Authentication.
I plan to build a online Poll system. If I can integrate this system with Google Account, it will be much easy for users.

Continue reading “Google and Zend – Zend Google Data Client Library”

PHP and MySQL for Dynamic Web Sites

On Friday morning, I received the phone call in the office. Vivian, my wife, told me that I have a parcel from Amazon. I asked her, “Is it a big parcel?”. She said yes. I knew that it is my book, PHP and MySQL for Dynamic Web Sites.
I made order on October 8, and got the book on Oct. 13. Only one week.
It is so fast if they have it in stock. I am not sure when I will receive the other book for Gloria.
The package is good enough to protect the book in transit.
There are one invoice and the book.
Let me introduce this book a little bit:

Continue reading “PHP and MySQL for Dynamic Web Sites”

  • Archives