Postcards From My Life

Lint I find in my mind's belly-button.
  • EPK
  • Consulting
  • Resume
  • Nerd Herding
  • Talks
  • CWJ 09

Posts Tagged ‘PHP’

« Older Entries

How I got Zend_Tool working on Windows

Tuesday, February 23rd, 2010

Dear Reader,

I love Zend Framework. I love it so much I wrote the very first book about Zend Framework. (Note: It’s no longer the best Zend Framework book, but still, it’s a good one) I’ve written projects using it and I now find myself teaching another class on it. One of the cool things about Zend Framework is it’s cli tool, Zend_Tool. (zf) When zf works, it’s awesome. However, when it breaks, it’s a real pain in the butt. Thanks to buddies like Ralph Schindler though (the author of the tool) when it does break, I can usually get help getting it back up and running.

The latest version of zf that comes with Zend Framework 1.10.x and better is much better than previous version and it shows that Zend (well, at least Ralph) listens when people point out problems and work to solve them.

Even though it’s made great strides, setting up zf is still not seamless. To that end, here is my list of steps needed to setup zf.

My setup

I should note before I start that I am running Windows 7. This means symlinking stuff is right out and we have to resort to physically copying files around. On top of Windows 7, I’m running XAMPP. (anyone know, is that pronounced X-AMP ot ZAMP?) this means that my PHP sits in \xampp\php. I’ve added that directory to my WIndows path so I can execute php from any cmd window. With that understanding, here’s my list.

The steps

  1. Download Zend Framework and unpack it somewhere on your harddrive where you want it to live.
  2. Make sure php.exe is in your PATH and make sure you know where php.exe is.
  3. Find the bin directory in your Zend Framework directory. In it there are 2 files, zf.bat (or zf.sh for Linux) and zf.php. Copy those to the same directory php.exe is in. (Linux users, feel free to just symlink them)
  4. Your Zend Framework directory should contain a library directory, change directory into it.
  5. from the library directory, test your zf to make sure it works, zf show should give you what you need.
  6. Type zf --setup storage-directory On Windows 7, this will create a directory named .zf in c:\Users\<Your Profile Name>
  7. Type zf --setup config-file. On WIndows 7, this will create a file .zf.ini in c:\Users<Your Profile Name>
  8. Using your favorite text editor, open c:\Users\<Your Profile Name>\.zf.ini. There should only be a single line in it that contains the include_path zf will use. Add the full path to your Zend Framework directory here. It should end in “\library\”.

Test it

That’s all there is to getting it setup. (I remember the days when it took twice as long and required cursing just to get it working) To test it out, cd to any directory other than the Zend Framework directory and type zf show version That should give you the current version of the framework you have installed.

Now you are free to start using it to create projects, etc.

Small problem

There is still a problem with defining your own providers. I tried to add my twitter provider (yes, I can use zf to tweet!) and it won’t yet recognize it. I’ve brought this to Ralph’s attention and impressed upon him the importance of being to tweet from zf. I have no doubt that a solution will be forthcoming.
UPDATE
As pointed out in the comments, this has been fixed, just not documented. This page shows how to add your own providers either manually or via a command.

You can either manually add a line to your .zf.ini

basicloader.classes.0 = "My_ClassName"

or you can use zf to update itself

zf enable config.provider class-name

So now I can tweet from zf again. :)

Until next time,
I <3 |<
=C=

[Disclaimer: I use to work at Zend and still have great friends there like the lovely Nili and the walking ray of sunshine that is Andrea. That having been said, it's been a long time since they gave me any money. So the point of this disclaimer is really just so I can mention Nili and Andrea. :) ]

Tags: andrea, cli, nili, PHP, ralph shindler, zend framework, zend_tool
Posted in PHP, Programming | 10 Comments »

 

Talks

Tuesday, October 13th, 2009

This is a list of the talks I’ve given and the slides for each of them if they are available.

Five things I wish they had told me before I started programming in PHP

Five things I wish they had told me before I started programming in PHP is a raucous romp through PHP, covering not only mistakes that programmers make, but skills they need to make sure they master.

This is a 101 level course. If you are new to programming or just new to PHP, you will get something out of this.

Five things Slides – Codeworks 09

Design Patterns

An irreverent jog through the Temple of the Gang of Four. We will examine 10 design patterns, discuss when to use each and, when applicable, give example code.

This is a 201 level course. You must have a firm grounding in Object Oriented design and programming to really get anything out of this.

Design Patterns Slides – CodeWorks 09
Design Patterns Slides – IPC09

Zend Framework from the Command Line

Everybody knows you can build great web applications using Zend Framework. Few people know that you can build great CLI tools with it also. This is an overview on what it takes to write CLI tools using Zend Framework. It includes a look at Zend_Tool.

Zend Framework from the CLI Slides – IPC09
  tweetme Sourcecode
  Zend_Tool Twitter client

Tags: conferences, PHP, talks
Posted in Programming | Comments Off

 

CWJ: Wrap-up

Friday, October 9th, 2009

Dear Reader,

Well CodeWorks 09 is over and I’ve mostly recovered. (I still have a bit of a cold that I picked up in NYC but other than that, I’ve recovered) I did a total of 24 sessions across 7 cities and enjoyed every one of them. Each city was different and it’s impossible for me to pick one as my favorite. So I’m going to list my favorite memory from each city.

 

(more…)

Tags: codeworks, conference, cw09, fun, memories, PHP
Posted in codeworks | 1 Comment »

 

CWJ: Day 13-14

Monday, October 5th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 14
Cities left: 0
Miles Traveled: 9,677
Cups of Coffee: 23
Current Current City: New York, NY

Random Statistic of the day

New friends made while on the Codeworks tour: hundreds
(more…)

Tags: codeworks, cw09, monday, new york, PHP
Posted in codeworks | 2 Comments »

 

CWJ: Day 11-12

Saturday, October 3rd, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 12
Cities left: 1
Miles Traveled: 9,472
Cups of Coffee: 18
Current Current City: Washington DC
(more…)

Tags: codeworks, cw09, PHP, rude people, washinton dc
Posted in codeworks | 1 Comment »

 

CWJ: Day 9-10

Thursday, October 1st, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 10
Cities left: 2
Miles Traveled: 7,987
Cups of Coffee: 14
Current Current City: Miami
(more…)

Tags: codeworks, cw09, miami, PHP, postcard
Posted in codeworks | 1 Comment »

 

CWJ: Day 7-8

Tuesday, September 29th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 8
Cities left: 3
Miles Traveled: 7,324
Cups of Coffee: 12
Current Current City: Atlanta

Random Statistic of the day

Bags left on the hotel shuttle: 1
(more…)

Tags: atl, atlanta, codeworks, conference, cw09, PHP
Posted in codeworks | 5 Comments »

 

CWJ: Day 5-6

Sunday, September 27th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 6
Days till I see the Lovely and Talented Kathy:1
Cities left: 4
Miles Traveled: 7,062
Cups of Coffee: 7
Current Current City: Dallas

Random Statistic of the day

Number of Taxicabs “redecorated” by conference speakers: 1
(more…)

Tags: codeworks, conference, cw09, dallas, dinner, fortworth, friends, PHP
Posted in codeworks | 4 Comments »

 

CWJ: Day 3-4

Friday, September 25th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 4
Days till I see the Lovely and Talented Kathy:3
Cities left: 5
Miles Traveled: 5,823
Cups of Coffee: 5
Current Current City: Los Angeles

Random Statistic of the day

Price of a double shot of Jack Daniels in LA: $25
Price of a bottle of Jack Daniels in Nashville: $20
(more…)

Tags: chicago, codeworks, cw09, frogger, los angeles, PHP, phptek, postcard project, tetris
Posted in codeworks | 3 Comments »

 

CWJ: Day 1-2

Wednesday, September 23rd, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 2
Days till I see the Lovely and Talented Kathy:05
Cities left: 6
Miles Traveled: 5,486
Cups of Coffee: 2
Current Current City: San Francisco

Random Statistic of the day

Length of time it takes to walk someone through rebooting a Linux server hosted on SliceHost over the phone: 2 minutes (Assuming they don’t lock the account trying to guess your password first. If they do, add 5 minutes)
(more…)

Tags: bart, calevans, codeworks, cw09, klm, PHP, postcard project
Posted in codeworks | 7 Comments »

 

CWJ: Day 0

Monday, September 21st, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: 0
Days till I see the Lovely and Talented Kathy:07
Cities left: 7
Miles Traveled: 0
Cups of Coffee: 0
Current Current City: Utrecht

Random Statistic of the day

Number of takes for me to get a video right while sitting at a table with the waitresses all staring at me: 2
(more…)

Tags: Cal Evans, codeworks, cw09, interview, PHP, video
Posted in codeworks | Comments Off

 

CWJ: Day -1

Sunday, September 20th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: -1
Days till I see the Lovely and Talented Kathy:08
Cities left: 7
Miles Traveled: 0
Cups of Coffee: 0
Current Current City: Utrecht

Random Statistic of the day

Average number of cups of coffee per day that I drink at a conference: 4
(more…)

Tags: code, cw09, giving back, open source, PHP
Posted in codeworks | Comments Off

 

CWJ: Day -2

Saturday, September 19th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: -2
Days till I see the Lovely and Talented Kathy:09
Cities left: 7
Miles Traveled: 0
Cups of Coffee: 0
Current Current City: Utrecht

Random Statistic of the day

Number of sessions I will actually deliver on the CodeWorks 09 tour: 27

Prep Work

Hey, it was Friday night. Of course I didn’t do any prep work. :) I did watch “Forgetting Sarah Marshall” though. It was a big old ball of Meh. Even Kristen Bell and Mila Kunis couldn’t save this one.
(more…)

Tags: codeworks, cw09, firing, Management, PHP, podcast
Posted in codeworks | 2 Comments »

 

CWJ: Day -3

Friday, September 18th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: -3
Days till I see the Lovely and Talented Kathy:10
Cities left: 7
Miles Traveled: 0
Cups of Coffee: 0
Current Current City: London

Random Statistic of the day

Number of “Random Statistics” that I have waiting to be published: 0

Prep Work

I did no prep work directly last night as I spent the evening with Yair Spitzer and Paul Wander, the heads of Ibuildings UK. On top of a great meal, we had one of the most interesting conversations I’ve had in a long time. I am however, starting to “get my head in the game” so to speak. My downtime these days is spent refining my presentations and practicing them in snippets instead of all at once.
(more…)

Tags: codeworks, cw09, failure, Management, PHP, software development
Posted in codeworks | Comments Off

 

CWJ: Day -4

Thursday, September 17th, 2009

Dear Reader,

CodeWorks 09 Vital Stats

CodeWorks 09 day #: -4
Days till I see the Lovely and Talented Kathy:11
Cities left: 7
Miles Traveled: 0
Cups of Coffee: 0
Current Current City: London

Random Statistic of the day

People who have seen me practice “Design Patterns”: 2
(more…)

Tags: ben ramsey, chris shiflett, codeworks, cw09, Derick Rethans, OCPHP, PHP, sebastian bergman, training
Posted in codeworks | Comments Off

 
« Older Entries
  • Team Based PHP Training

  • Sponsors and Ads

  • Conferences I’m Attending

  • About Me

    cal_evansThis is my blog. Sometimes it's my deep thoughts, sometimes it's a journal of things I've learned. Every now and then it's my box of shattered dreams. Most of the time though, it's just the place I like to write. Sit with me as I show you some postcards from my life. While you are here, do me a favor and leave a comment.

    If you are looking for my contact information, bio, picture, ASL, check out my EPK.

    My name is Cal Evans and this is my blog.



    Follow me on FriendFeed!

    View Cal Evans's profile on LinkedIn

  • My First Book

  • Support PHPWomen


    US Shop | European Shop

  • What I'm Doing...

    • I totally forgot to announce, I'll be speaking for the UPUG via gotomeeting this Thursday evening. Giving my "5 Things" talk. #fun 57 mins ago
    • @chartjes well, my butt is large enough to require one. :) in reply to chartjes 4 hrs ago
    • @sidhighwind Happy Birthday my friend! 4 hrs ago
    • More updates...

  • Tags

    API article Cal Evans codeworks conference cw09 developers devzone elizabeth naramore Entrepreneurship Exim flex fun IBuildings iPod Kathy Evans linkedin Mac Management Marketing microsoft MySQL Nashville phar PHP phparchitect php developers podcampnashville podcast podcasting poem Programming Quickies respect RSS Silly-Con Valley sixty second tech software development terry chay twitter upgrade video wordpress zend zend framework

  • RSS PHP Podcasts

    • Writing Composite Zend_Form Elements
    • Preparing Custom Elements for Zend Validators
    • webcast: Introduction to Doctrine 2
    • 8 Reasons Every PHP Developer Should Love JavaScript
    • oddWeek Episode #4
    • Creating Custom Zend_Form Decorators
    • Habits of Highly Scalable Web Applications
    • PHPSPCast #6 – Ao vivo da Campus Party (Q&A)
    • php|architect podcast: oddWeek #003
    • Podcast #2010-02: Stalker Edition

  • XBox Gamer Card

  • Me

    • Best web design company
    • Cal Evans Dot Com
    • Cyrano’s Apprentice
    • Evans Internet Construction Company
    • My Life as a Child
    • PHP Podcasts
    • Sixty Second Tech

  • RSS My Blog at php|arch

    • An error has occurred; the feed is probably down. Try again later.

  • Flickr Recent Photos

    Blue Parabola Southern Office-Rear Annex is closed for snowSnow Heart@dzuelke getting ready to give his talk@fabpot talking about Dependancy Injection@derickr giving the opening keynotePeople meeting other peoplePHP Benelux Goody Bag ContentsCheck InDSCN2280The main room

  • Categories

    • Apache
    • BlogBling
    • Blogging
    • codeworks
    • Entertainment
    • Entrepreneurship
    • Flex
    • Humor
    • JavaScript
    • Long Form
    • Management
    • Marketing
    • Me
    • PHP
    • podcasting
    • Programming
    • SQL
    • Technology
    • Web 2.0
    • wordpress
    • WordPress Plugins
    • writing
    • zend framework

  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org


Postcards From My Life is proudly powered by WordPress
Entries (RSS) and Comments (RSS).