Monthly Archives: September 2014

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

How to dump variables in perl

snippets

How to dump variable in perl Have you guys ever needed to dump variables in perl and see its exact contents? I had and was really tricky. The print function is alright for printing scalar variables, but when you try to print a hash and maybe with multiple levels you start to have headaches trying

Read and write and delete a file in perl

snippets

Read and write and delete a file in perl In this article I’m going to try and show you some operation examples to read, write and delete a file in perl using a few methods, like the saying goes … There’s more ways to skin a cat … So yes, more ways to work on a file.

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

Request an article ←