News Feed
Sections




News Archive
feed this:

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

NetTuts.com:
The 11 Phases of a Web Developer's Career (As Illustrated by Memes)
March 25, 2013 @ 09:45:32

NetTuts.com has started off the week on a humorous note with this latest post showing the "11 Phases of a Web Developer's Career" as illustrated with animated GIFs of various internet memes.

The career of a web developer is an interesting one with many slopes. Considering a learning curve this steep, you can fully expect to live through periods of frustration, enlightenment, self-righteousness, and every mindset in between. In this article, we'll have some fun, by reviewing each of these phases through the lens of a meme!

Some of the phases include:

  • Phase 1 - Noob
  • Phase 3 - Complete Frustration
  • Phase 5 - Fragile Code
  • Phase 7 - Cocky
  • Phase 9 - When Code Becomes Art
  • Phase 10 - Seasoned

Check out the post for the images of these and the others on their "top 11" list.

0 comments voice your opinion now!
webdeveloper career stages animated gif meme humor


Sameer Borate's Blog:
Unpacking binary data in PHP
September 22, 2010 @ 10:45:52

Sameer Borate has a new post to his blog today talking about a method for unpacking binary data directly in PHP - specifically in working with images.

To set the stage we will start with a programming problem, this will keep the discussion anchored to a relevant context. The problem is this : We want to write a function that takes a image file as an argument and tells us whether the file is a GIF image; irrelevant with whatever the extension the file may have. We are not to use any GD library functions.

He shows how to use the unpack function to open up the file and pull out the raw data - including the header information that tells you what kind of file it is you're working with. There's also an example of unpacking the header contents and grabbing things like height, width and the aspect of the image.

0 comments voice your opinion now!
unpack binary data tutorial gif image


Lorenzo Alberton's Blog:
Create a video preview as animated GIF with FFmpeg and PHP SPL
September 04, 2009 @ 09:52:50

Lorenzo Alberton has posted a new item to his blog with a code snippet showing the combination of FFmpeg and features in PHP's SPL to make a GIF preview.

About one year ago, I had to create animated GIFs as a preview of a video for a media portal. I recently stumbled upon the code I wrote and thought it was probably worth sharing. It makes a rather unconventional use of the SPL Iterators, proving how flexible they are.

His method combines Imagick, FFmpeg and a a Thumbnail_Extractor class that extends the SPL Iterator. The script runs through the frames of the movie file and allows you to define multiple places to pull thumbnails from. Complete code and output examples are included.

0 comments voice your opinion now!
animated gif tutorial ffmpeg movie thumbnail spl


Mikko Koppanen:
Requested examples Animating GIF Images
October 10, 2007 @ 09:32:00

At the request of another developer, Mikko Koppanen has written up a post for his blog today showing how to create animated GIFs in PHP with Imagick.

Today's example was requested by a user called Devo. This example illustrates making an animated GIF image by creating the frames from scratch. It's been so long since I've really drawn anything so I decided to use text as the base for this animation.

His example ends up as a string ("Hello World") that's animated to show one more letter at a time as each frame loads.

0 comments voice your opinion now!
imagick animated gif image text hellowworld imagick animated gif image text hellowworld


DevShed:
Creating Image Streams from Existing Graphics with the GD Library in PHP
August 20, 2007 @ 11:04:00

DevShed continues its look at using the GD graphics library in PHP with the second part of the tutorial series, this time focusing on the creation of images from existing images (and their streams).

As I stated at the end of the previous article of this series, the GD extension comes packaged with many other useful functions, which indeed deserve a close and detailed look. Thus, in this second tutorial I'll show you how to create different types of image streams from existing graphics, but in this case limiting the process to building GIF, JPG and PNG images.

They work through each of the types (GIF, JPG and PNG) creating an new one from a previous "clouds" image of the same type (a GIF out of a GIF, a JPG from a JPG, etc).

0 comments voice your opinion now!
tutorial gd graphic create stream png jpg gif existing tutorial gd graphic create stream png jpg gif existing


Builder.com.au:
PHP exploit code plants itself in GIF
June 22, 2007 @ 12:41:00

Builder.com.au has a new article today about the recent image issue - the PHP code embedded inside the GIF - that's come up on several sites.

The exploit code slipped through the site's defenses with the aid of a legitimate image at the beginning of the file, according to a blog post on the Sans Institutes's Internet Storm Center. [...] Malicious attackers planted PHP coded exploit script within an image file. PHP is often used as a programming language to create dynamic Web sites.

The article reports that, while this exploit hasn't happened much, the occurrences of it's use are growing with victims in a wide range of classifications - from small personal sites out to a certain major image hosting site. This same issue was discussed here on the PHPClasses.org website as well.

0 comments voice your opinion now!
gif exploit image script embed gif exploit image script embed


PHPClasses.org:
PHP security exploit with GIF images
June 20, 2007 @ 12:57:00

On the PHPClasses site today, there's a new post that points out an issue that could happen with dyanamic GIF creation in a PHP script leading to a security exploit.

Manuel Lemos writes:

The problem that was discovered is that you can insert PHP code in the middle of a GIF image. That would not be a problem if it was not for the insecure ways some developers use to serve images upload by their users. Usually, uploaded files are moved to a given directory. If the site then serves the images directly from that directory and preserve the original file name, the site may be open for security exploits.

The problem comes when a user decides to upload an "image" file that's actually a PHP script (ending in PHP even) to the remote system. When this is outputted, it's placed inside the image tag and executed with each page load. Manuel offers a suggestion to prevent the issue - protecting the images directory and using readfile to grab the contents of the file to output rather than just a straight echo.

2 comments voice your opinion now!
security exploit image gif dynamic readfile output security exploit image gif dynamic readfile output


PHPClasses.org:
CAPTCHA harder to break using animations
December 07, 2006 @ 08:28:00

PHPClasses.org is spotlighting another package from their site today - this time it's a CAPTCHA class that takes things a step further and introduces animation into the mix to make it even harder for bots to get through.

Laszlo Zsidi is a PHP Web developer that has written an harder to break CAPTCHA solution. It consists in generating animated GIF images that exhibit the validation text.

Since the text never appears all at once in each of the animated frames, this solution certainly raises the bar in terms of difficulty for the robots to guess the validation text, making it very hard to defeat, if possible at all.

You can check out the class here, including a sample animated gif file and a download of everything you'll need to get started.

1 comment voice your opinion now!
captcha animation gif validation spam bot captcha animation gif validation spam bot


PHPClasses.org:
3D graphics in pure PHP
November 08, 2006 @ 08:13:00

As spotlighted by the folks over on PHPClasses.org, there's a developer, László Zsidi, who has contributed several packages to the repository - including some that work to create 3D images with just the built-in functions PHP provides.

He has developed several pure PHP components that implement impressive 3D animated graphics, like a 3D objects rendering engine, emulate a waving flag or the reflex of an image near a lake. The generated frames are combined into a single animated GIF with another pure PHP component also written by László. All these components were nominated to the PHP Programming Innovation Award for the evident creativity, demonstrating that PHP can be used for non-trivial software applications.

Some of the libraries in the listing include:

0 comments voice your opinion now!
3d graphics builtin functionality reflect gif animation images 3d graphics builtin functionality reflect gif animation images


Richard Davey's Blog:
Easy Reflections
October 25, 2006 @ 16:34:00

On his blog today, Richard Davey shares a bit of code that will take an image and make a "nicely formatted reflection" of it automatically.

You can use it to give your site that 'iTunes / Apple' look if you so desire. I created it to make image uploads to a site I run look that little bit nicer, so figured I would share it with you all.

The script, Easy Reflections, can be grabbed from here along with the installation and use instructions (including the values for the six parameters to change the image).

0 comments voice your opinion now!
easy reflections functionality image relfect gif jpeg png download easy reflections functionality image relfect gif jpeg png download



Community Events





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


series laravel list interview framework symfony library opinion tool introduction release voicesoftheelephpant security version artisanfiles podcast composer language community conference

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