Categories
-
Recent Posts
Blogroll
Tag Archives: PHP
Redirect Users According to Browser Language
I started a new blog Gearor.com, which is a gadgets and tech blog. I also set up a Chinese version using sub domain cn.Gearor.com. So I tried to do one thing, if visitors come with a Chinese browser, the website … Continue reading
Say Hello to Kohana 3
Kohana 3 has been released for a while. This is a redesign version of Kohana. Kohana 3 and 2 will both be in active, if you are new to Kohana, I suggest you to start with Kohana 3. The most … Continue reading
Posted in Web Design
Tagged Design Pattern, Framework, Hello World, HMVC, Installation, Kohana 3, Kohana PHP, PHP
1 Comment
Addslashes or Mysql_real_escape_string to use to Avoid SQL Injection
I was reading some articles about avoiding SQL injection. People used to use addslashes() function, and later more and more programmers are using mysql_real_escape_string(). What’s the difference between these two functions? Alan Storm from StackOverFlow gives a description which is … Continue reading
Posted in Web Design
Tagged Addslashes, MySQL, Mysql_real_escape_string, PHP, SQL Injection
2 Comments
An OOP Way to Work with MySQL Database in PHP
This is my learning note of PHP and OOP(Object Oriented Programming) from Brian Muse’s tutorial, if you are new to OOP, you may find something helpful in this post. If you are a professional, I would appreciate it if you … Continue reading
Posted in Web Design
Tagged MySQL, Object Oriented Programming, OOP, PHP, Tutorial, Web Application
1 Comment
Hello World Tutorial for Kohana
It seems unnecessary to write a Hello World tuorial for a PHP framework, because when someone comes to framework, he is no longer a beginner, can figure out his own Hello World. But this idea comes up in my brain, … Continue reading