PHP 8 is out and now we have all PHP 7 versions with all features. They are a lot and we have to be able to understand how PHP has changed and how we can take advantage of all these features. Or at least we must know how they can work and see if we can use them in our project.PHP 7.0PHP 7 came with the 3rd December... [...]
Read MoreSoftware professional certifications can be a useful tool for demonstrating knowledge and skills in a specific area of software development or IT. However, whether or not they are "useless" depends on a variety of factors, including an individual's career goals, the specific certification they are considering, and... [...]
Read MoreTo optimize the images for your website, application or blog is very important for the performances. I recommend to use GIF images if possible and the same size for every images of your posts or articles. That's because It can be much easier to maintain your files and update them in any case. We need to be patient to do... [...]
Read MoreYes it is! If you upgrade your Yii 2 assets on your installation, there will be many difficulties to use the bootstrap 3 css and js files using the Yii 2 assets. So be sure you need bootstrap 4 only for your projects. First of all we update the dependencies on our composer,json file.{ "require": {... [...]
Read MoreHere we are to discuss the big security problem on the internet. Am I right if I say it's impossible to be "totally secure"? It depends on your contest, your position or your program or application your are developing. But what I want to try to resume in this post are the most focus point in this matter, the most d... [...]
Read MoreLet's if an admin boilerplate or external dependency can help us to build our application faster and more efficiently than integrate an admin template manually and build all interfaces we need. I still think Laravel hasn't a good and own code generator like the amazing Gii on Yii2. This is a problem for me and that's... [...]
Read MoreYii 2 has a good documentation and it helps you to do almost anything you need for your application. I have had some trouble on deployment. I have a couple of websites on a shared hosting and I wanted to follow the tutorials but there was something wrong at the end. Let's see the links:Read the docsOfficial website... [...]
Read MoreI think all developers have used Wordpress at least one time. THis amazing CMS is good but far away to be perfect. Here I am trying to gather all pros and cons about using this blogging platform. Maybe this on is still the most used platform around the surface web.ProsMany plugins ready to use for all your needs: gall... [...]
Read MoreAdmin Lte is one of the best and popular admin templates on the web. It's free and it lets you to develop great interfaces admin areas for your web applications. You can have many elements, plugins and even integrate it with some PHP MVC framework like Yii 2 or Laravel.Let's start to see what we need to let it work wit... [...]
Read MoreThis task is not so easy, especially if you are updating PHP on a production server. I have taken note of the steps I have followed. Let's open our shell with root permissions: First check your PHP versionphp -vDownload some repository and edit some configuration:wget https://dl.fedoraproject.org/pub/epe... [...]
Read MorePHP 7 is faster than all the previous versions. All you need is the best performances you can have but... what about migrating from PHP 5 to 7? Let's some helpful links and tools:Migrationhttp://php.net/manual/en/migration70.incompatible.phpPHP 7 check tool with composer: just install this tool globally with com... [...]
Read MoreI am still surprised about the Yii 2 popularity: I love this framework and I have based a couple of important projects on this framework. I love its presentation, code generators and the easy way you start, develop and test each element of your project. You can even have a test database and test all database operations. So I thi... [...]
Read MoreWe have PHP 7 but I was wondering how we can have a sort of timeline with the most important feature for each version of PHP. On php.net there is the release page but it's not enough for our purposes. From the history of PHP to the PHP museum, we can navigate and download the various PHP versions. WIth PHP 4 the language sta... [...]
Read MoreThis post is the right and updated procedure to install the PHP Oci8 extension with the Oracle instant client on Linux (Ubuntu, Kali, Debian distributions). That's because I have spent a lot of time finding the right steps and combinations. The procedure seems very long but I ensure you will not need more than 10 minutes! I... [...]
Read MoreXSS is one of the most common security issues we have to worry about. It can be simple to prevent it but sometimes it's not. We must pay attention not only on our PHP code but even on HTML and Javascript ocde without forgetting old browsers. Some malicious users can use old version of Internet Explorer to explore the DOM and... [...]
Read MoreI have finally passed the test for the Zend PHP certification. The exam consists in 70 questions and you will have 90 minutes. You have to answer right at least to 70% of them (49 questions). You need to buy the voucher from the official Zend website and, optionally, the Zend Study Guide for PHP 5.5. Be sure to select and b... [...]
Read MoreYet another tutorial about installing a LAMP on Linux (I'm using Ubuntu). I've found all info I needed online but for it wasn't so easy. All informations are different, for different tools and purposes and you can't find them in single tutorial. Here I'm listing all commands we need to set up a good PHP devel... [...]
Read MoreTo work with PHPUnit without autocomplete is almost impossible and sometimes PHPStorm doesn't show it. We must ensure we have enabled the IDE to see where PHPUnit is installed. I use the phar file. Since when they have removed the PEAR installation, we have to install PHPUnit with the phar file. So download the phar fi... [...]
Read MoreUnfortunately Doctrine does not support so many SQL function so you have to build a class to let him use a custom function. Let's start building a DATE_FORMAT function. Let's write the class:namespace Application\Model\Doctrine\Functions;use Doctrine\ORM\Query\Lexer;use Doctrine\ORM\Query\AST\Functions\Functi... [...]
Read MorePHP is flexible, too much flexible! It hasn't specific variables types. And you have to pay attention to handling a workflow, especially if you are working with sessions, cookies, forms, and many other features. A coding standard in PHP is necessary anyway. Here we have specific ways about how to organize your code. Let... [...]
Read More