News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Bob Majdak's Blog:
Making images transparent using Imagick - enter the pixel iterator
July 16, 2012 @ 08:35:37

In this recent post to his blog Bob Majdak looks at how to use the Imagick functionality to create images with transparent backgrounds.

So we have this image, and we want to set it to be 75% transparent using Imagick. This sounds simple enough, doesn't it? Perhaps we are trying to create a watermark, or we just want to fade the image for some reason.

He shows how to use the ImagickPixelIterator to take care of some of the issues that can be caused by just a call to "setImageOpacity". A code sample is included in the post showing how to take a source image and make it transparent without ending up with a white border/black background like the other version.

0 comments voice your opinion now!
imagick transparent pixeliterator tutorial transparent


PHP Security Blog:
Suhosin 0.9.15 comes with Transparent phpinfo() Protection
November 29, 2006 @ 10:43:00

According to this new post on the PHP Security Blog, there's a new META tag the Suhosin extension includes in the output of a phpinfo page to help resolve some of the issues with Google (and buddies) storing the contents of the page, giving a potential attacker information they could exploit.

[The] extra META TAG to the HTML output of phpinfo() that forbids indexing and archiving by robots. For fairness reasons following the embedded links is still allowed to robots, because a lot of projects [...] to get at least a few backlinks for their work, that might result in a better search engine positioning.

The patch can be downloaded from their site.

0 comments voice your opinion now!
suhosin extension transparent phpinfo protection suhosin extension transparent phpinfo protection


Guilherme Blanco's Blog:
Transparent PHP AOP
August 02, 2006 @ 06:27:49

Guilherme Blanco has submitted a note about a project he's been working on, especially pertinent due to some of the discussion flying around on the subject - his Transparent PHP AOP project.

My AOP package implements this magic with PHP code in a transparent way. This means that the original code does not need to be altered in a special way to add or remove the aspects. It is only necessary to add a comment line to define the location of the pointcuts.

This package is actually a smart caching compiler. It preprocesses the original code to locate the pointcuts. Then it generates a new version that may include the code that implements the aspects that I want to enable.

In his blog entry, there are links to the package downloads and the official manual to help get you started as well as more details on some of the functionality behind the magic.

0 comments voice your opinion now!
transparent aspect oriented transparent aspect oriented



Community Events











Don't see your event here?
Let us know!


unittest symfony2 facebook composer install series code hhvm application introduction package release opinion component framework podcast hack language security overview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework