Category Archives for No category

Imagick install error: “configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.”

Simple solution:

aptitude install php-pear imagemagick php5-dev libmagick9-dev

libmagick9-dev – this remove all trouble from “configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.”.Continue reading

Symfony – send HTML mail from task with view partial

Do you need send mail from symfony task? No problem!Continue reading

Solution for sfForkedDoctrineApplyPlugin Unknown record property / related component “fullname” on “sfGuardUserProfile”

When I use sfForkedDoctrineApplyPluginon my page, after try create new account I got:

Unknown record property / related component “fullname” on “sfGuardUserProfile”

Solutions is easy… of course if you know it ๐Ÿ˜‰Continue reading

How to change form input size in symfony forms?

Sometimes you need to change size (length) in html form elements input. In symfony you can do this in form configure function by using:Continue reading

How to remove form element label in symfony forms?

Sometimes you need remove label from forms in symfony. How to do this? Continue reading

How to set original filename in symfony file upload

When you upload files in symfony, then save filename will be random. If you want set to original filename add to model class (where you want to upload files):

public function generateYourColumnNameForStoreFileFileName($file)
{
return $file->getOriginalName();
}

where YourColumnNameForStoreFile it`s your column name.

If you want your uploaded files to stay with the original file name (which is not randomly generated by symfony), just add following lines to the model class you want to upload files:

public function generateXxxFileName($file)
{
  return $file->getOriginalName();
}

where Xxx is the name of the column that stores the filename in the database model related table.

How to resolve: This build of “eAccelerator” was compiled for PHP version 5.2.14-0.dotdeb.0.

System: Debian Lenny 5.0, DirectAdmin, after successfully update php to 5.2.14 after download and comile from source eaccelerator and test by php -v I got:

This build of “eAccelerator” was compiled for PHP version 5.2.14-0.dotdeb.0. Rebuild it for your PHP version (5.2.14) or download precompiled binaries.

Bad news because actually I`ve PHP in version 5.2.14! After some research I have solutions.

UPDATE:

/usr/local/php5/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php5/bin/php-config

make

make install

in my case I must move compiled eaccelerator file from ย /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so to php extension dir /usr/lib/php5/20060613+lfs/. (update: easier and more logical it is change extension_dir in php.ini)

Have a nice day ๐Ÿ™‚

Incoming search terms:

  • this build of eaccelerator was compiled for php version

How to find CorelDRAW (.CDR) files in a specific version

Lot of CorelDraw files on hard drive. In different version. You want search i.e. all files in CorelDraw 12 or X4 version? No problem.Continue reading

How to uninstall VirtualBox Guest Additions on Linux?

I just update virtualbox and want to install new version Virtualbox Guest Additions because I have problems with access to shared folders. Before this I want to uninstall old version but… there is no switch or command to do this… After little research:

Continue reading

How to install VirtualBox Guest Additions on Debian 5 – lenny? Tutorial.

Configuration: Virtualbox 3.2.6. Host – Windows XP, Guest – Debian Lenny

Continue reading