PHPhub - php coding, The lastest articles en contact@phphub.net www.phphub.net How To install PHP5 on ubuntu http://www.phphub.net/article/how-to-install-php5-on-ubuntu/3 To install your local webserver. you would just execute those commands line. `sudo apt-get install Fri, 23 Dec 2011 16:26:03 +0000 http://www.phphub.net/article/how-to-install-php5-on-ubuntu/3 How to access to private property in php5 http://www.phphub.net/article/how-to-access-to-private-property-in-php5/4 This is a code show how to access to private property in php <?php class MyClass Fri, 23 Dec 2011 18:11:47 +0000 http://www.phphub.net/article/how-to-access-to-private-property-in-php5/4 How to install symfony2 in linux http://www.phphub.net/article/how-to-install-symfony2-in-linux/5 Symfony2: Installation in linux **Step 1**: Download and create your project git clone git Fri, 23 Dec 2011 19:17:11 +0000 http://www.phphub.net/article/how-to-install-symfony2-in-linux/5 How to validate email address in php http://www.phphub.net/article/how-to-validate-email-address-in-php/6 Now! with php it's easy to validate a email address. juste use this function "filter_var" with optio Mon, 26 Dec 2011 00:35:27 +0000 http://www.phphub.net/article/how-to-validate-email-address-in-php/6 PHP5 inflector - camelize http://www.phphub.net/article/php5-inflector-camelize/7 Converts a word like "send_email" to "SendEmail". It will remove non aphanumeric character from the Wed, 04 Jan 2012 22:25:21 +0000 http://www.phphub.net/article/php5-inflector-camelize/7 PHP5 inflector - underscored http://www.phphub.net/article/php5-inflector-underscored/8 Convert any "CamelCased" or "ordinary Word" into an "underscored_word" Example: $word = ' Wed, 04 Jan 2012 23:24:58 +0000 http://www.phphub.net/article/php5-inflector-underscored/8 ZEND_AUTH Check if user logged-in http://www.phphub.net/article/zend-auth-check-if-user-logged-in/9 This example show you how we can check if a use logged in $auth = Zend_Auth::getInstance(); Sun, 15 Jan 2012 23:19:35 +0000 http://www.phphub.net/article/zend-auth-check-if-user-logged-in/9 How can i change default layout in zend framwork? http://www.phphub.net/article/how-can-i-change-default-layout-in-zend-framwork/10 This topics show you, how you can change a default layout to change layout use this line: Sun, 15 Jan 2012 23:24:57 +0000 http://www.phphub.net/article/how-can-i-change-default-layout-in-zend-framwork/10 How can i disable layout in zend framwork? http://www.phphub.net/article/how-can-i-disable-layout-in-zend-framwork/11 This topics show you, how you can disable layout to disable layout use this line: $this->_ Sun, 15 Jan 2012 23:25:55 +0000 http://www.phphub.net/article/how-can-i-disable-layout-in-zend-framwork/11 Split text by new line http://www.phphub.net/article/split-text-by-new-line/12 That would match line breaks on Windows, Mac and Linux! $array = preg_split ('/$\R?^/m', $st Wed, 08 Feb 2012 11:38:48 +0000 http://www.phphub.net/article/split-text-by-new-line/12 Create a slug from text http://www.phphub.net/article/create-a-slug-from-text/13 Remove whitespace and special chars and add dash. Code: $url = 'How to access Mon, 13 Feb 2012 21:38:28 +0000 http://www.phphub.net/article/create-a-slug-from-text/13 Howto create an empty object in PHP http://www.phphub.net/article/howto-create-an-empty-object-in-php/14 To create an empty object use stdClass $obj = new \stdClass(); Wed, 15 Feb 2012 22:09:08 +0000 http://www.phphub.net/article/howto-create-an-empty-object-in-php/14