Posts tagged as "php"

Posted by Thurein on 23rd February 2012

How to use separated sessions based on application in symfony

Currently, I’m playing with symfony mvc framework. In my current project is developing used by symfony and that’s have 2 app which are backend and frontend. But the project requirement is – these apps have to use their own session. So I separated the session in application level configuration as like follow – In apps/backend/config/factories.yml [...]

Posted by Thurein on 4th March 2011

reCAPTCHA plugin for php codeigniter

I’m playing around with codeigniter frameworks these days. One of my client requested to put reCAPTCHA into CI frameworks. So, I have tried to convert from original reCAPTCHA php plug-in to codeigniter library. So, I would like to share this library. I hope it useful for someone. To use this library, you just need to [...]

Posted by Thurein on 1st December 2010

Difference between php mysql functions mysql_fetch_object(), mysql_fetch_assoc() and mysql_fetch_array()

Some of my friends are asked me. What’s difference between php functions mysql_fetch_object(), mysql_fetch_assoc() and mysql_fetch_array()? and how to use it ? If you also don’t known about it , please have a look example codes below. I think you would understand it. mysql_fetch_object() while ($each= mysql_fetch_object($result)) { echo $each->first_name; echo $each->last_name; } mysql_fetch_assoc() while [...]

Posted by Thurein on 21st May 2010

Get Unlimited Parent and Child in PHP

Well, let me ask you first. Have you already known about recursion? If not, recursion mean reuse function in this function. How is it ? For eg Like function one_function ($var){ one_function(332); } OK , So , how to related with this post title ? I would like to say absolutely related with recursion. Let’s [...]

Posted by Thurein on 28th March 2010

How to return more than one value or multi value in PHP

Some of PHP beginners (my friends) always ask me how to return two or more values from function. So , I thought, I may need to write the beginner tip at The Tech Space Blog. If your the advanced PHP programmer, you will say. So easy, It’s a piece of cake. For beginner, it would [...]