NOTE: this is not supported at this timem. Please use newer code, like https://github.com/icewind1991/SMB. Recently, we had a need to retrieve and put files onto a Windows server from a Linux box. I looked around for a good way to access samba or Windows file servers from within PHP, and I didn’t find anything promising. […]
Our publishing system has a fairly large PHP object model, with tons of corresponding library files. Early in the development of the library, we saw huge value in PHP 5’s autoloader. But when we integrated a 3rd party library into our application, we quickly found a limitation when our __autoload() function conflicted with the other […]
Recently, my team was tasked with building a system that would allow users to look up weather forecasts for arbitrary cities in the United States. The system had to allow for misspellings to give the user a forgiving but predictable interface. If the misspelling clearly matched a single city, it would use that city; otherwise […]
I found this little tidbit in the Zend Framework Programmer’s Reference Guide (in the Coding Standard appendix): For files that contain only PHP code, the closing tag (“?>”) is never permitted. It is not required by PHP. Not including it prevents trailing whitespace from being accidentally injected into the output.
Once I had figured out the basic organization of menus and articles in Joomla, I had one more obstacle to overcome. I was looking at the sample site that was bundled with my installation, and I wanted to know how to control the various elements on my pages other than the articles. For example, the […]
Recently, we found that we needed to limit the length of “headline” text on one of our sites for display purposes. The text in question was the title text for classified ads. Our classifieds system was simply truncating the title text at an admin-configured number of characters. This helps us preserve our design, but it […]
Onward and upward with this nifty little CMS. I hope I wasn’t too negative in my first installment. It’s not that Joomla does things wrong, it’s just that sometimes, things are not as obvious as they could be.