PHPOpenDoc – Creating Word2007 Documents using PHP

June 28, 2012 Leave a comment

I recently started a new Open Source project that allows me to create Microsoft Word (2007) documents from a PHP script. You can find this project on my page at GitHub. In a moment I’ll show you a quick “Hello World” example of how easy my new library can create a document with minimal effort on the programmers part.

For those of you that may not be aware, Microsoft Word 2007 “docx” files are actually “Office Open XML” (OOXML) files (not to be confused with “Open Office). The OOXML format is an ECMA standard that many organizations have adopted. Note: MSWord 2003 “doc” files are a totally different format. Read more…

Categories: Articles Tags: ,

SharePoint GetListItems and Complex Parameters

May 9, 2012 2 comments

In my previous article I showed how to connect to SharePoint web services using SOAP::Lite and how to easily pull a list of all collections on the site. Now we’ll dive a little bit deeper and look at how we can fetch items out of a list. For simple queries this is pretty easy but can become complicated if you need to include a lot of parameters. A lot of tutorials I’ve seen on this topic revert to sending raw XML as the parameter to get around the complexities of doing it in code. Personally, I think that’s a bad idea and just makes your code look horrible. I hope to demystify the problems with doing this in code for you here. Read more…

Categories: Tutorial Tags: ,

SharePoint and NTLMv2 with SOAP::Lite

May 8, 2012 5 comments

In this article I will be presenting a mini-tutorial on how to integrate with SharePoint including NTLMv2 authentication using the Perl SOAP::Lite framework. This article is not a repeat of all the other tutorials you see on the Internet related to this topic.

When I first tried to get this complicated mess to work I was annoyed at the lack of good documentation on this subject. After scouring the Internet for information and doing my own painstakingly line-by-line debugging of the SOAP transport I finally got it all to work and understand the various steps required (or at least I think I do). Note: I only have experience with my organization’s SharePoint 2010 server and I can’t guarantee that the following will work with other configurations.

I’ll start by showing a full example of how to connect to the SharePoint web service and then I’ll walk through the code with you to explain how and why things are working. Read more…

Categories: Tutorial Tags: ,

print “Hello World”;

May 7, 2012 Leave a comment

Welcome to the brand new blog of another random developer on the “Inter-web.” My name is Jason and its my intention to build out this blog with useful software related topics that include tutorials, how-to’s and other tidbits that will hopefully help others solve similar problems that I’ve come across in my programming travels.

For starters, my focus is going to be on Symfony2 related topics. Over the last few months I’ve been using Symfony2 as my MVC framework for a major project I’ve been developing for work and its been great to work with such a professional framework. It’s actually made PHP programming a lot more fun and I can’t wait to see what the devs and community come up with next for Symfony2.

I’ve also been working on some SharePoint integration using NTLMv2 authentication. This was a hard beast to crack due to the lack of good documentation on the subject. MY first post will be detailing how I got it all to work.

Categories: Articles