Skip to main content


48 posts about PHP

Indeed API for your job search and ads

Using the Indeed API for your job search and ads is easy and you can obtain informations from all countries. The localization is a little bit difficult step because Indeed has a different domain for their websites in every nation. I have built a simple API caller to make a simple query simply by keyword, place \ region (opt... [...]

Yii 2 image optimization

To 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... [...]

Yii 2 - Upgrade to bootstrap 4

Yes 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": {... [...]

Laravel admin panels and CRUD generators

Let's if an admin boilerplate or exterrnal 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'... [...]

Installing Laravel Voyager admin panel

I have recently had a couple of small problems installing the Laravel Voyager admin panel. It works specifically with Laravel 5.3 and this can be a disadvantage. If you use Voyager, probably you will not upgrade your Larvel installation or you will have a lot of troubles if you do it! But don't worry: Laravel... [...]

Symfony 3 demo and blog applications

I have recently installed the new Symfony 3.3 but something strange happened when I was searching for the old blog application.If you install the Symfony demo application with the symfony command line, you will have the demo app installed with nothing inside, only a simple controller and the rest of the files and configurati... [...]

Curl problem with Symfony 3 or Laravel

I have recently tried to install Symfony 3 and I have had a problem with symfony command console when installing Symfony 3. I have installed it some month ago and when Symfony 3 came out but I have never had this problem! Actually I am using XAMPP on Windows. Here is the error on the command line:[GuzzleHttp\Ring\Exception... [...]

Yii 2 on shared hosting

Yii 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... [...]

A new SQL malware is targeting Magento online shops

It seems that an SQL script is executed when a user makes a new order and even before a new page is rendered. The researcher Jeroen Boersma discovered the SQL malware and Willem de Groot was the first to analyze it.ResourcesWillem de Groot blog postDe Groot malware scannerA guide to clean an hacked Magento... [...]

Content injection vulnerability affects the Wordpress REST API

A vulnerability that can affect 1.8 milions of websites has been discovered. You have to update your Wordpress at least at the 4.7.2. Automatic updates are highly recommended.A severe content injection (privilege escalation) vulnerability affecting the REST API has been discovered by Sucuri: "This vulnerability... [...]

Pros and Cons about using Wordpress

I 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... [...]

SwiftMailer, PhpMailer and ZendMail RCE vulnerability

A vulnerability about these popular libraries has been discovered. This video demonstrates how to execute arbitrary code in a vulnerable PHP application that is using Swiftmailer, PHPMailer or ZendMail. The attacker uses a python exploit script to catch informations about the victim and perform the execution of arbitra... [...]

Admin Lte and Yii 2 integration

Admin 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... [...]

Updating PHP version from 5.3 to 5.6 on Linux CentOS

This task is not so easy, especially if you are updating PHP on a production server. I have taken a note about 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 [...]

PHP 7 migration

PHP 7 is faster than all the previous versions. All you need is the best peformances you can have but... what about migrating from PHP 5 to 7? Let's some helpful links and tools:Migration 7 check tool with composer: just install this tool globally with comp... [...]

Yii 2 pros and cons

I 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... [...]

What's new with Symfony 3

We waited so long but now Symfony 3 is here! It's really amazing and we have a lot of new features and documentation to read. There is no time to waste. Let's see all news.Demo ApplicationFinally we have an amazing blog application where we can see how an application is built with CRUD operations, Doctrine, multi... [...]

PHP features history

We 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 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... [...]

Installing PHP and the Oracle Oci8 extension

This 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... [...]

Getting started with Laravel 5

I like PHP MVC frameworks and now Laravel has all my curiosity. It's fast, modern, clean, more lightweight and with good documentation both in the code and on the official website. Built using Symfony and the Symfony components, Laravel has tools and libraries to work even more efficiently with all modern features like diffe... [...]