Send Print Jobs Directly from PHP

Published: May 19th, 2010 by:

I recently learned that you can send print jobs directly from a PHP server. How cool is that? This article will cover sending print jobs from a PHP server to a printer on the same LAN. This does not mean that someone viewing a page over the Internet can have something print on their local printer with these functions. This does mean if you have PHP running on a Windows server in your internal network, you can print to printers that are configured on that Windows server only.


  • Making Google Static Maps a Little More Dynamic with PHP

    If you have messed with the Google Maps API, you know that the JavaScript and API keys can be a real headache. Yes, there are very complex implementations that you can use, but what if you want…just a map? If you want just a map with no dynamic interface, Google Static Maps is just for […]

    Published: March 17th, 2010 by:
  • Parse ZFP (Zone Forecast Product) Data in PHP – Option 1

    In a previous article, I covered 5 Sources of Free Weather Data for your Site, but did not provide any actual code to use the data. Since then, I covered sources #1 and #2. None of these sources had any English-formed forecasts. For that, we have to go to the Zone Forecast Product, but we […]

    Published: March 3rd, 2010 by:
  • Merge Image Layers in PHP

    In a previous article, I showed how to Locate the Nearest Radar Station and Display Radar Images. A commenter, mike, pointed out the idea of merging the image layers using PHP instead of layering all the images separately using CSS. Here is how to do it.

    Published: July 17th, 2009 by:
  • Loading INI Files in PHP

    PHP parses the php.ini file for the global PHP settings, but you can create an INI file that is specific to your own PHP application. You can also load those settings into as associate array with a native PHP function. How cool is that?

    Published: April 14th, 2009 by:
  • Separating the Application & Presentation and Alternative Syntax

    One of the biggest pet peeves I have when looking at (and unfortunately – working with) other people’s PHP code is the way they integrate their code into the HTML. Many people don’t take the time to organize, and they end up with a PHP & HTML mess. I believe that it is critical to […]

    Published: March 18th, 2009 by:

Most Popular

  • Run CodeIgniter from the Command Line / SSH

    CodeIgniter has quickly become my favorite framework to use when coding applications in PHP. CodeIgniter makes it way too easy to follow the MVC approach, maintain modulated code, and to also have access to several additional helpers and libraries. But, there was one major flaw: The inability to easily access via the command line. Why? […]

    Published: December 1st, 2008 by:
  • Parse Weather Forecast Data (from the NDFD) in PHP

    In a previous article, I covered 5 Sources of Free Weather Data for your Site, but did not provide any actual code to use the data. Starting with this article, I will post instructions on how to handle this data as well as sample code. For this article, we will start with the National Digital […]

    Published: February 19th, 2009 by:
  • More Examples with Parsing NDFD Data in PHP

    I covered how to Parse Weather Forecast Data (from the NDFD) in PHP in a previous article, but due to the amount of questions I received, I decided to show some more usage techniques and examples. In this article, I will cover the time-series option as well as some methods on how to make some […]

    Published: March 3rd, 2009 by:
  • Locate the Nearest Radar Station and Display Radar Images

    Including up-to-date radar images on your website is easier than you might think. In this article, I am going to share where you can get radar images for free for US radar sites and even share some sample code that will fetch the closest radar site by lat/lon and display it on your website. Using […]

    Published: January 2nd, 2009 by:
  • How to Get the Geographic Location of an IP Address

    An IP address used to mean nothing to us, other than where they are in the cyber world, but it is now possible to find out where they are in the real world, using databases that are freely available. In this article, I will disclose where you can get a free database that will tell […]

    Published: December 26th, 2008 by: