Programming

PHP, Perl, Pyhon, bash, javascript and jQuery and probably other languages to come. This category is all about programming!


Show different header title depending on page

php code

Show different header title depending on page I’ve used this options for different situation and it does work properly. I can use this to specify not only the specific header title, but also to include different style CSS or javascripts based on the specific page or whatever you need included for that page only. In

Social.png attack on Joomla, WordPress and Drupal

Social.png attack on Joomla, WordPress and Drupal I’m going to write now a rather different type of article, this led me to believe that some of our dear friends, users and whoever thinks he should be involved, are rather stupid people. Why I think that? Its easy enough and you will understand a bit later along this

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

Request an article ←