content management system Archives

We are working on a project for a client that has a very troublesome requirement as part of the custom content management system—the ability to enter ANY image URL into an HTML text field for use within a custom Flash application that we built.

This is troublesome because although the client does own the rights to the images they are using, they do not have any easy way to implement crossdomain.xml policy files on their image servers.

SO, we needed to come up with a workaround—hence the example below. Please keep in mind that this is just an example and the version optimized for other image types/videos/error checking/etc. is not posted.


<?php

// GET THE PATH OF THE TARGET IMAGE
if (isset($_GET["img"])) {

    // READ THE CONTENTS OF THE IMAGE
    $handle = fopen($_GET["img"], "rb");
    $contents = "";
    while (!feof($handle)) {
        $contents .= fread($handle, 8192);
    }
    fclose($handle);

    // DISPLAY THE IMAGE
    header ("Content-Type: image/jpeg");
    echo $contents;
}

?>


Brand Experience

Pearson
intel
Allstate
Liquid Wrench
Qualcomm
ups
ASPCA
Motel 6

Punchkick Interactive in the news

Google Goggles now competing with Scanbuy, JagTag, MSFT Tag, etc.
—November 16, 2010,

Source: http://googlemobile.blogspot.com/2010/11/offline-meet-online-marketing.html

Punchkick Interactive Appoints Director of Business Development and Mobile Strategy
—April 7, 2010,

Punchkick Interactive, America’s first design firm to focus exclusively on full-service mobile marketing, is pleased to announce the addition of Dirk Rients as Director of Business Development and Mobile Strategy.

iPhone & iPad App Developer
—January 29, 2012,

Punchkick Interactive is looking for an iPhone app developer. We are a fast-growing mobile marketing agency with a strong track record of success working with clients, including Fortune 100 companies, marketing agencies, and more.