Php2pdf

Post on 17-May-2015

1.204 views 0 download

Tags:

description

Simple PHP to PDF given at the West Suburban PHP Meetup

Transcript of Php2pdf

What was the first music video on MTV?

Eric Michalsen

Western Suburb Drupal MeetupMay 21, 2009

(openly stealing content from www.TravisTidwell.com)

Video Killed the Radio Star

Everybody Loves Video

Drives InterestDrives TrafficDrives InteractionDrives Responses

It Keep The Eyes On The Page

High Bounce Rates = BAD

Video can help kill your BR ratios

YouTubemetacafeYahooSquidootubemogal

Distribution Goodness

just <embed> into your site and your done....right?

Maybe....maybe not

What if you want to host your own videos in your own contentbecause you want to control all aspects of your content?

Upload VideoCreate Content for the video, such as description and tagsConvert Video to Flash for cross-browser/OS/system happiness

Let's do this in DRUPAL!!!

Drupal Problem....

“...current Video module is was not designed for a User-generated video website.It was only created to allow a web developerthe ability to easily upload a video, and display that video.”

Resource #1 ?

http://www.travistidwell.com/flashvideo

Check out his Drupal Dash Media Player on the site!

Step 1: Get FFMPEGStep 2: Set up your php.ini file for the FlashVideoStep 3: Get the FlashVideo ModuleStep 4: Download a Media PlayerStep 5: Set up a Cron TaskStep 6: Create a Content Template.Step 7: Create your Page!

Step 1:FFMPEG is a program that will convert any video format to the very common and ever-so-cool Flash format

Truth is, if you have to install it...call a geek.It will go a lot faster than going through this presentation. Pay him in beer and you'll be fine.

Step 2: Set up your php.ini

* Recommended Settings for php.ini: o post_max_size=100M o upload_max_filesize=100M o max_execution_time=1000 o max_input_time=1000 OR * Recommended Settings for .htaccess file: o php_value post_max_size 100M o php_value upload_max_filesize 100M o php_value max_execution_time 1000 o php_value max_input_time 1000

Step 3: Get the FlashVideo Module

http://drupal.org/project/flashvideo

Step 4:Download a Media Player

http://www.longtailvideo.com/players/jw-flv-player/

I have had success with:

Step 5: Set up a Cron Task

Once again, find a geek and pay in beer

Step 6: Create a Content Template

Content Construction Kit (CCK)

Step 7: Create your Page

Go to Administer->Site Configuration->FlashVideo SettingsSelect the link that says FlashVideo Settings for this node type next to the Page node type. Once you are in there, you will want to check the box that says:Enable the FlashVideo for this node type.

And thats it!

Well, that was easy....let's see it in action!

http://nooil.tv

Comments?Questions?Answers?

Thank you

Eric MichalsenTwitter @michalsen

http://meetup.com/foxvalleycphttp://wwwfoxvalleycp.comTwitter #FVCP

eric@michalsengroup.com630.768.3481