PHP

ExpressionEngine: thumbnail could not be created for the image under Windows

posted in PHP on 2013-11-28

I'm a Windows user and I'm working on a ExpressionEngine based site. I'm using EasyPHP as a server and everything works as expected. However, once I decided to upload a file I got "Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.".

read more comments

PHP: please, please, clear my cookies

posted in PHP on 2013-10-31

I'm currently working on a JavaScript application which is using the facebook API. There are some things which I need to pass from one page to the other. So, I decided to use cookies. The storing works like a charm, but the deleting doesn't. I needed one hour to find the exact problem.

read more comments

PHP: simple captcha script

posted in PHP on 2013-08-08

In my company, we have a lot of WordPress sites. Some of them require contact form with captcha field. The short way for solving such task is to use a plugin. However, as you may guess, the add-ons are available for everyone, which means that they could be easily explored and probably hacked. That's why I suggested a simple, custom script, which is developed by us.

read more comments

Deploying ExpressionEngine based site

posted in PHP on 2013-06-25

I found ExpressionEngine framework very good. It brings the flexibility which I need and still has a good amount of features. However, as many other similar tools, the deployment could be a little bit difficult.

read more comments

Importing huge MySQL dump under Windows.

posted in PHP on 2013-06-17

I just received a 250MB dump of a database and I needed to see what is it inside. As you may guess, PHPMyAdmin is not a good option in this case. I decided to use the command line.

read more comments

mod_rewrite, one simple rule and two stupidly lost hours

posted in PHP on 2013-06-05

Ok, I should admit that mod_rewrite and regular expressions are not my strongest part. Today - as every other day I realize how little knowledge I have. Actually it's good to have such moments. I lost almost two hours fighting with a really really simple mod_rewrite rule in my .htaccess file.

read more comments

A short review of ExpressionEngine framework

posted in PHP on 2013-05-20

I'm going to start a new project with ExpressionEngine. So, I made a short review of the framework's capabilities. The article is available at my account in tech.pro.

comments

Cleaning up <pre> tag content

posted in PHP on 2013-02-02

I'm blogging for different technologies, but very often I need to add some code in my articles. This little PHP function helps me to keep the text in my <pre> tags clean for prettify. It simply removes the <br>'s and keeps the html tags.

read more comments

PHP developers - wake up!

posted in PHP on 2013-01-16

PHP is one of the most popular back-end solutions available. However, I think that there is something wrong with the way we are using it. It is really popular to use some giant framework, with a lot of features. Generally, I'm not a big fan of this approach. Even if the framework is well documented and has big community it still adds some restrictions and complexity. Many people are trying to build the perfect framework, which covers as many cases as possible, but the true is that it is not possible. In this article I'll present you my vision about PHP programming and I will be very happy if you share yours.

read more comments

Discussion about PHP at VarnaLab

posted in PHP on 2012-11-22

A screen capture of the discussion about PHP at VarnaLab.

read more comments