Ever need a simple timer for php, if so here’s one I wrote. It’s very basic but it does what I need. https://github.com/jwhulette/Timer
When using an AWS Elastic Load Balancer, the communication between the load balancer and your server is HTTP. Laravel will adjust the urls crated based on the protocol but since it only see’s http it can cause issues. To resolve this there is a nice Laravel package called Trusted Proxy, https://github.com/fideloper/TrustedProxy. The package allows Laravel to … More Using HTTPS for a Laravel app behind an AWS Elastic Load Balancer
Ever need a list of US timezones, this class creates it.
I wanted a was to send error message from my Laravel application to a slack channel so I would know of issues before a user has to contact me. There were a lot of examples using Monolog SlackHandler, but you have to make an app and generate a token for it. From a note on … More Laravel: Sending error message via Slack
My previous post on adding items to a SharePoint list was using a normal SharePoint server. I have had a few question on how to do the same thing for the Office 365 and SharePoint Online since the previous code did not work. With the help of this website I was able to create some code on … More How to log into Office365 or SharePoint Online using PHP
I had large files that I had to split into smaller files, all the examples I found ran out of memory when running. I created this class which can split 100 MB files easily and quickly. Let me know if you find it useful.
*** UPDATE*** I have had a couple of people asking about using this with Sharepoint Online. For an example of how do that visit this post. At work I was asked to populate a sharepoint list from a database report. I did a lot of searching on the web for how to’s, they all seemed … More Adding items to a Sharepoint list using PHP
My new favorite PHP IDE is Netbeans 6.9 . Netbeans is great for what I do, but your mileage may vary. First of all it uses a loss less ram then Eclipse which is great because I don’t have a lot. At work I have to use a very old Windows XP desktop, with only … More Netbeans 6.9
At work I use Smarty for PHP templating, I would prefer to use Zend MVC but our Sever 2003 boxes don’t have url rewriting. End of rant. But I had an issue that was odd and just wanted to post the solution I found, I hope it helps someone. The issue was I was trying … More Smarty templating issue
To do some automated billing I needed to grab an email attachment off the exchange server. The Zend framework made it very easy to connect to the mail server and navigate files, and that part of the code came directly from the Zend Framework documentation. The issue that took the longest was saving the attachment. … More Save an email attachment using Zend Mail