PHP

What the…?> PHP and unwanted whitespace

Over at BigBlueHat there is an interesting blog post about using the ?> at the end of php files. While personally I don’t use it on scripts that contain just php code, but I can see where both sides are coming from.

Check out the article and leave your feedback!

read more

Zend Studio for Eclipse – New Framework Project Problems

While working on a new project where my base was Zend Framework I desided to give the default layout for new ZF projects in Zend Studio for Eclipse a chance. While it does start a good layout for a project by generating the default code which is a real time saver I did notice some problems.

read more

Seven Things – Tagged by Rob Allen

Like Rob Allen, I don’t really understand these tagged memes either, however, but I’m always game for something new.

Seven things you may not know about me:

  • I’ve been doing HTML and web programming since late 1995 when I started using Hot Dog HTML Editor from Sausage Software
  • I’ve been using some form of linux since mid 1998 after hearing about it on a show called The Screen Savers.
  • My friends and I played Dr. Mario on the NES so much one day that it melted the console with the game still in.
  • TV is my second love after programming and computers.  I currently have two DVRs that record up to 15 hours a week of TV.
  • I am an avid fan of music and I’m always listening to it.
  • I enjoy watching IndyCar Series races as it’s some of the best racing out now.
  • When I drink beer, I prefer to drink beer that is a micro brew.

I then get to pass on the baton to:

These are the rules apparently:

  • Link your original tagger(s), and list these rules on your blog.
  • Share seven facts about yourself in the post – some random, some wierd.
  • Tag seven people at the end of your post by leaving their names and the links to their blogs.
  • Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter.
read more

Zend_Id3

So while working with out dated libraries to fetch id3 tags I deiced to try and write my own Id3 Tag parser and of course I figured why not share it with the Zend Framework Community.  I have crated the Zend_Id3 Proposal and I have started initial coding on it.

Currently it only parses out Id3v1 and Id3v1.1 tags but I’m working on the Id3v2.x support now.  If you want to see the source I am publishing it to github.com.

Current usage is like this:

$id3 = new Zend_Id3();

$tags = $id3->analyze('/Id3/_files/demo.mp3');
print_r($tags);

It only returns an array for right now but I’m considering having it return an object so you have easy detection of which variables are there and which ones are not.

I’ll post more when I get more done.

read more

It’s been a busy time…

Wow I can’t believe it’s been almost a month since my last post but my time has been very limited to do personal things. Since my last blog post I have been on two trips and done countless other things with work and personal stuff.

Trip 1 was to ZendCon08 (http://www.zendcon.com) in Santa Clara, Ca.  I had a tremendous time while out there.  I also took my elePHPant with me and if you want to check out his travels you can on my flickr feed.  I met a lot of the PHP community and made good contacts for any future endeavors I might have.

Trip 2 was down to Lake Cumberland in Kentucky with the girl friend and her friends.  It was a total blast even it was only one for 2 days.  Let me tell you there is nothing better than floating around for ~4 hours drinking beer.  After talk with with everyone we have deiced to make it an annual trip at the end of September. I already can’t wait for next year.

I am also happy to announce that I was part of the Advisory Board for the Zend Framework Exam from Zend.  We started working back in March and we compleated it at the start of September.  I learned a lot and also made a lot of good friends in the process and I would reccomend that if you ever have the chance that you should take part in one.

I’m going to try and blog more this fall as I should have a lot more free time.

read more

PHP implemented in 100% Java

Thanks to Federico over at PHP::Impact ( [str Blog] ) for posting this.  I’m going to test it out and see how well it really works.

Quercus allows developers to incorporate Java code into PHP web applications and gives both Java and PHP developers a fast, safe, and powerful alternative to the standard PHP interpreter.

Quercus natively supports Unicode and the new Unicode syntax of the up-and-coming PHP 6, and implements a growing list of PHP extensions (i.e. APC, iconv, GD, gettext, JSON, MySQL, Oracle, PDF, Postgres, etc.). Many popular PHP applications will run as well as, if not better, than the standard PHP interpreter straight out of the box.

Quercus PHP libraries are written entirely in Java, thereby taking the advantages of Java applications and infusing them into PHP.

Benefits

Although PHP users and Java users can take advantage of Quercus immediately without modifying their application, the real benefits come from developing mixed Java/PHP applications:

  • PHP libraries written in Java are fast, safe, and relatively easy to develop, compared with C libraries. Since Java is the library language, developers won’t need to be paranoid about third-party libraries having C-memory problems or segvs.
  • PHP applications can take advantage of Java libraries and capabilities like JMS, SOA frameworks, Hibernate, or Spring. (Or EJB if you really wanted.)
  • Java application can move presentation code to PHP, leaving behind templating systems, or languages with small libraries, and taking advantage of PHP flexibility and capability.

Links

I’m going to setup a test box and test this out to see how it compares to the standard LAMP stack.  Check back for more information.

read more
Page 2 of 3123