Book Image

TYPO3 4.3 Multimedia Cookbook

By : Dan Osipov, Adrian Zimmerman
Book Image

TYPO3 4.3 Multimedia Cookbook

By: Dan Osipov, Adrian Zimmerman

Overview of this book

TYPO3 is one of the world's leading open source content management systems, written in PHP, which can be used to create and customize your web site. Along with text content, you can display high quality images, audio, and video to your site's visitors by using TYPO3. It is essential to manage various types of multimedia files in content management systems for both editors and the users on the frontend of the site.The book gives you a step-by-step process for organizing an effective multimedia system. It also gives solutions to commonly encountered problems, and offers a variety of tools for dealing with multimedia content. The author's experience in large-scale systems enables him to share his effective solutions to these problems.If you choose to work through all the recipes from the beginning, you will start by setting up a basic web site set up, aimed at future expansion and scalability. Next, you will cover the basics of digital asset management—a major topic important in all enterprises. You can organize user groups because next you will be creating accounts for users and assigning permissions. Then you will jump into metadata—text information describing the multimedia objects—and learn how it can be manipulated in TYPO3. You will embed multimedia on your site when you have read the various methods for embedding mentioned in this book. Before you finish the book you will learn about some advanced topics, such as external API integrations and process automation.
Table of Contents (13 chapters)
TYPO3 4.3 Multimedia Cookbook
About the Author
About the Reviewers

Adding FTP access to the media repository

In the next few recipes, we will cover some FTP-related tasks, starting with the basic job of downloading files through FTP. This procedure can be used to synchronize files from a remote location with your website.

In this recipe, we will connect to, which allowed anonymous access at the time of writing, and download the annual report.

Getting ready

Make sure PHP is configured with FTP support. If you go to the Install Tool module phpinfo(), you should see this output:

We will assume all directory paths exist—so if they don't, either change the values in the code, or create the necessary local folders (specifically ibm under fileadmin).

How to do it...

Create a plug-in, module, or a CLI script with the following code:

$connection = ftp_connect('');
$email = !empty($GLOBALS['BE_USER']['user']['email']) ? $GLOBALS['BE_USER']['user']['email'] : '[email protected]';
$login = ftp_login($connection, 'anonymous', $email)...