Chapter 2 , introduced how to open, read, write, lock, close a file and other useful file functions.
Continue reading »
PHP Study Notes – Crash Course
Chapter 1 , from a C/C++ programmer’s point of view, introduced the PHP basic syntax, variables, constants, variables and constants scope, operator, operator precedence, variable functions, conditional statements, etc for Crash Course.
Continue reading »
PHP Study Notes
For PHP, I can read it, modify it, but can not write it, after the World Cup, I intend to make a systematic study of PHP.
The reference book is “PHP and MySQL Web Development 4th Edition” written by Luke Welling and Laura Thomson, this book is known as “PHP Bible” .
As usual, the book briefly introduced what is PHP, MySQL, Why use PHP / MySQL, as well as their strengths and so on, quickly scanned.
Followed by What is new in PHP5:
- Better object-oriented support built around a completely new object model
- Exceptions for scalable, maintainable error and exception handling
- built-in SimpleXML for easy handling of XML data
And key features of PHP 5.3 (At the time of writing, PHP 5.2 was the current version) for example, namespaces (very important) and so on. Continue reading »
Google Doodle Pac-Man Source Code
Google has unveiled a Pac-Man doodle to celebrate the game’s 30th anniversary. You can play the game on the Google homepage.
The Logo on the homepage of Google can be used directly as a Pac-Man game to play, to support double and to support keyboard / mouse operation, a total of more than 200 levels.
Here is the online demo provided by Pep for researching and collection. Google owns all rights.
Click “Insert Coin” to start the game, click twice to start the double game, tested OK in IE / FireFox / Chrome .
Google Pac-Man Online Demo:
Google Pac-Man Source Code:
As the HTTP protocol transfer information with plain data, some websites such as shopping, transaction, login and register need to open the HTTPS protocol to increase security, ensure important data like password will not be intercepted and sniffed.
HTTPS need the support of SSL digital certificate, almost every browser trusted CA organizations charge fees when sign digital certificates, and the price is generally 13 U.S. dollars to 50 U.S. dollars per year. (Except StartSSL and PositiveSSL)
If the certificate only for the own use, to prevent the online management of your password has been tapped, you can self sign SSL digital certificate by free.
On Debian5 + OpenSSL + Nginx environment, just follow these steps: Continue reading »
The day b4 yesterday, I migrated my blog from Blogger to my self-hosting WordPress blog.
The reason is blogger.com blocked by Chinese government, so I can’t login to update my blog. Although I have my own domain, I even can’t visit my blog because some ghs servers of Google are blocked too.
After a long waiting, I can’t bear any more, finally decided to buy a hosting and transfer my blog to WordPress.
The following are some simple steps: (You should change peptop.com with your wanted domain) Continue reading »