A little while ago  I ran into memory problems on an VPS.  It turned out to be due to the GD library having issues with large images.
I  discovered is that the PHP memory limit  only applies to actual PHP code and not C libraries like GD that are called from PHP.
To put a cap on the memory usage of Apache I set process limits for the main Apache process  using ulimit.

On Debian this can be done by adding this to the bottom of /etc/default/apache2:

ulimit -v 1048576

NOTE:  This is for a limit of 1GB of virtual memory.


You are getting the following error while compiling the latest release of ffmpeg-php-0.6.0 ?

This  will let you know how to get this fixed:

The error:

/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_toGDImageâ:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: âPIX_FMT_RGBA32â undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_ffmpeg_frameâ:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: âPIX_FMT_RGBA32â undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1

The fix:
Under the ffmpeg-php-0.6.0 directory modify the file: ffmpeg_frame.c

nano ffmpeg_frame.c Continue Reading…

One of the more fascinating facilities provided in PHP 5.4 is a built-in web server.

It runs from the command line on Windows, Mac or Linux. You require to enter to the folder where your application resides then run:

php -S localhost:8080

This command will start a console-based web server. The document root is located in the  folder:

PHP 5.4.0 Development Server started at Sat Apr 07 10:36:35 2012
Listening on localhost:8080
Document root is /home/user/phpapp
Press Ctrl-C to quit

Now you can then open http://localhost:8080/ in your browser.  The server will return either index.php or index.html in the root folder.

This PHP 5.4 web server is intended for development purposes and I think it will be adopted by text editors and possibly browser plug-ins as an easy way to test PHP code.


The best web pages which are being used for ecommerce have PHP applications with special features. Its superior performance and efficiency makes it a favorite with most website developers. If you are looking for a quick ecommerce service, then PHP Magento developer is the right choice, not only for the particular requirements of your business but for flexible and secure use as well. Magento developer enables easy navigation without any confusion and there is an ecommerce page for consumers. The web page administrator also has administrative rights for understanding how the website has been structured. This will enable them to be able to ease it for their ecommerce page users.

The need for PHP application

PHP is a widely used general scripting language which is suited for small and mid size web development. More customers are in need of building and updating their websites for which the PHP technology is most convenient. If you are a website owner, you will get the benefit of high performance, availability and to deliver high quality code faster towards production. The PHP software can be most advantageous for websites ranging from simple informatics sites to more complex web portals and social networking. It can be applied to any type of site as there are different packages available as per requirement of the website owner.

Features of the PHP applications Continue Reading…