[PHP] mysql custom global defined variable

2013-03-13 Thread Kevin Peterson
In my database design, I tend to store some variable that is meant to be acting as a ROLE or TYPE as SMALLINT. For example : CREATE TABLE `house` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` smallint(11) NOT NULL, ) And in php, I do define('HOUSE_SMALL_TYPE', '0');

[PHP] Type of a variable in PHP

2013-03-15 Thread Kevin Peterson
Have two questions - 1. How to find type of a variable in PHP. 2. How to find the type of an array in PHP. Please help.

Re: [PHP] Type of a variable in PHP

2013-03-16 Thread Kevin Peterson
Thanks Nora On Fri, Mar 15, 2013 at 4:34 PM, Sebastian Krebs wrote: > > > > 2013/3/15 Kevin Peterson > >> Have two questions - >> 1. How to find type of a variable in PHP. >> > > gettype(), or one of the is_*()-functions. But for me more interesting for

[PHP] Compiler for the PHP code

2013-03-19 Thread Kevin Peterson
My webcode written in PHP and it is running in the interpreted way. My problem is it is not giving the desired performance so want to try the compiler if any. Please suggest if we have any compiler option available for the PHP code and more important is this new option.