PHP
PHP is the server side programming language used by a lot of developers around the globe. It is also a general purpose programming language.
PHP Smarty var_dump alternative and prestashop errors
PHP Smarty var_dump alternative and prestashop errors If you work on prestashop for example, and you want to make a debug for all or a certain variable from within a page you will have problems because you cannot use var_dump since Smarty is a templating language for PHP. Method 1
1 2 3 4 5 6 7 |
{php} $var = $this->get_template_vars('var'); var_dump($var); {/php} |
Method 2
1 |
{$var|@print_r} |
Method
Working with Entities in Symfony2
Working with Entities in Symfony2 Symfony is a very powerfull PHP framework that helps you do amazing projects in small amount of time. It has built in support for Doctrine which is an incredible tool for interacting with databases, not through tables but through php objects. First let’s see what is an ORM and after that
6 free mobile device emulators for testing your app
6 free mobile device emulators for testing your app If you made at least one website that was responsive, you certainly know how important these tools are. Here is a list with helpful websites in which I tested my apps during and after development. This is NOT a top, just a list. 1) Responsinator Responsinator
Security risk using register_globals
Security risk using register_globals There’s a security risk involved when enabling in your server register_globals, not sure if any of you noticed but I just remembered this and thought I should shout it to you all just so you are more careful. I’m currently working on a little project, not sure what will come out of
How to change php timezone on your server
How to change php timezone on your server Normally when using a shared hosting service, the server you are being hosted on has a different timezone set. So your scripts may be displaying a different time than what you expect. Fixing this is not hard at all, however some users think that the server timezone