Tutorials

This is our main category for all our tutorial based articles. You can find almost anything from server configuration to website optimization.


PHP Parse file example

PHP Parse file example Today I’m going to show you a little example of how you can use PHP to parse a file. Well it really depends on the purpose you’re doing this for, but in all cases basically you need to open the file and read it line by line. There are a few

Prestashop custom fields in products admin section

Prestashop

Prestashop custom fields in products admin section I had to do this modification on an existing prestashop project few months ago and I had to add some custom fields in products admin section. In this tutorial I’ll try to show you how you create new product field in admin on product edit page (informations tab). Of course

Show number of subscribers from Mailchimp

Mailchimp mascot

Show number of subscribers from Mailchimp Today I’ll try to show you how to get the number of subscribers from Mailchimp. I have been using Mailchimp with great success so far for 2 years now. Can’t really complain about them really. However in all honesty, I was looking today at my account and couldn’t find

How to send email using phpmailer

Install mail server

How to send email using phpmailer I have seen a lot of users having issues using their own hosting account to relay emails from the basic mail() function. I’m writing this to show you a way to send email using phpmailer library using a SMTP server like gmail or any other SMTP server. This library

Create a php encoding and decoding method

php encryption using php

Create a php encoding and decoding method In this article I’ll try to write a bit about how you can properly create an encoding and decoding method to allow you to pass information even in plain sight and be sure these are more secured. There are plenty of methods out there, and all are based

Check if file exists in Symfony2

Check if file exists in Symfony2 If you want want to check if file exists in Symfony2 and which is not a twig template, you have to create a Twig Extension service and add a file_exists() function or whatever you want to call it in twig. This tutorial is more specific to the issue we have at hand,

How to fix “Headers already sent” error in PHP

php logo

How to fix “Headers already sent” error in PHP Today I’ll try talking a little bit about what its called output_buffering from PHP. At least once in your life of codding you probably have seen this type of error “headers already set” from the php output, eg. Warning: Cannot modify header information – headers already

Symfony2 service container

Introduction A big PHP aplication should be OOP written and should have a lot of objects. You can split them by functionality depending on what they do. Some of them are used for interaction with database, some of them are used to save information in files.This chapter is about a special PHP object in Symfony2

Drag and drop on mobile devices

Drag and drop on mobile devices I had a problem in the past with a draggable and droppable calendar with jQuery and ajax. When you add drag and drop to a web page using JavaScript, such as jQuery UI draggable and droppable, you obtain a problem. The dragging and dropping are intercepted by the phone

PHP Simple HTML DOM Parser

domTree

PHP Simple HTML DOM Parser In this tutorial I will show you a great way to parse a webpage with plain PHP, in the same way you do with jquery. The syntax is very native and natural, and you will feel like home using it but first let’s thank the author of this library S.C. Chen

Request an article ←