 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPMaster.com: Extract Objects from an Access Database with PHP, Part 2
by Chris Cornutt June 03, 2013 @ 10:37:24
PHPMaster.com has posted the second part of their series covering connecting PHP to a legacy Access database. In part one they introduced you to working with the data and how to extract the object. In this new part they look at specific file types and how to pull out their data.
In this second part we'll learn how to extract Acrobat PDF documents and take a brief look at a selection of image formats. The only similarity that PDF, GIF, PNG, etc., have when stored in an Access database is that they are all wrapped in an OLE container consisting of a variable length header and trailer. As we shall see, the trailer can be ignored as it was with the package discussed in Part 1. The header is more useful, but doesn't contain all the information we need.
They get into the details of the headers for each type of object and include screenshots of what they look like in a hex viewer. The code for the complete class is included in the post, making it easy to drop in and get started with your transition from database object to external file.
voice your opinion now!
extract object access database tutorial series pdf image
Web & PHP Magazine: May 2013 Issue - "Time Travel"
by Chris Cornutt May 09, 2013 @ 13:23:53
The Web & PHP Magazine has officially released their latest issue - the May 2013 edition, "Time Travel".
You may already be familiar with Git, but did you know that it can rewrite time itself? GitHubber Ben Straub explains all in this month's issue, which also features tutorials on extracting XML data from RSS, using Composer to manage project dependencies and using the PHP Content Repository. If you've ever thought about starting a PHP user group, Atlanta PHP User Group co-organiser Kevin Roberts shares his secrets - plus, there's our regular columns on agile, big data and testing.
Articles included in this latest issue include:
- "Change the Past" (Ben Straub)
- "Why do User Groups?" (Kevin Roberts)
- "Sprint Retrospective Primer" (Steffan Surdek)
- "Urban Legends and Error Handling" (Stefan Priebsch)
- "Managing your project's dependencies with Composer" (Jefersson Nathan de O. Chaves)
As always, this issue is available free of charge and can be downloaded directly from their site.
voice your opinion now!
webandphpmagazine issue timetravel download pdf
Wojciech Sznapka: Export colored Behat scenarios to PDF
by Chris Cornutt September 04, 2012 @ 09:42:49
Wojciech Sznapka has shares his technique for creating colorized exports of Behat tests for use in PDF files:
Behat scenarios are one of the best ways to describe system. UML Use Cases or tons of pages in SRS documents are fine, but hard to understand from the begining, and even harder to maintain in the future. Behat eases this process and also gives opportunity to automate requirements verification. To write Behat scenarios you need a text editor. I've picked my favourite - Vim, which highlights *.feature files syntax. But business people mostly don't use Vim, so I need to figure a way, to expose scenarios in easy and pleasant way.
His solution involves setting up some printing options in vim to export the tests as a Postscript file, setting the "colorscheme" to the default setting so the colors will be retained. The result is exported (via the "hardcopy" command) and can be converted into a PDF (with a result like this).
voice your opinion now!
behat test color export postscript pdf print
Fortrabbit.com: BETA survey results
by Chris Cornutt August 28, 2012 @ 11:19:54
Fortrabbit.com has conducted a survey of developers world-wide about what kind of platform, tools and software they use in their development work. They've posted the results to their site today, the answers from about 160 different developers.
We have asked our readers a few questions on their PHP workflows, hosting and tools. We are very curious about this, because we want to build the best PHP PaaS for dev guys.
Some of the highlights from their findings include the large share of Zend Framework use, the predominant use of git for deployment, MySQL still being the database of choice and multi-stage deployment (environments) are a preferred setup. You can see the full results here [pdf].
voice your opinion now!
survey results paas developer pdf
Code2Learn.com: Generating PDF files from Database using CodeIgniter
by Chris Cornutt February 29, 2012 @ 12:07:33
On the Code2Learn blog there's a recent tutorial about creating PDFs from CodeIgniter using the R&OS PDF class (not bundled with the framework, but easy to integrate).
As a programmer I find PDF files very helpful to me when generating reports and getting them printed. We will be using R&OS pdf class. I find this to be the best one because all others libraries I came across didn't offer me a good control over the making of the file and also the process of making i.e the code required for this library is bit tricky but it helped me improve my coding.
Code is included to create a simple PDF helper class that creates a new "cezpdf" object and add some basic things like titles, page numbers and some basic footer text. A simple controller is included that pulls the information from a database table (in their case a record of logins) and pushes this data into the PDF as lines of text.
voice your opinion now!
codeigniter framework pdf class helper pdf generate database
PHPMaster.com: Generating Invoices with Zend_Pdf
by Chris Cornutt October 10, 2011 @ 09:07:15
On PHPMaster.com today there's a new tutorial about using the Zend_Pdf component of the Zend Framework to generate invoices from the billing data in your application.
The PDF format is currently the most used format to exchange documents. If you provide your website users with printable versions of invoices, event tickets and other similar documents, you'll most likely want to generate them as PDFs on the fly. In this article you will see how you can use Zend_Pdf to auto-generate PDF invoices.
The concept is pretty simple - take the rows of invoice data from your system and inject them into a new PDF document. They show you how to create an invoice layout that includes that data, a header with your company name, invoice-related information and the total/amount due at the bottom. The full code is included to help you create the Zend_Pdf object, apply the text to it (based on location in the document) and working with the default font. You can download the full source from github.
voice your opinion now!
invoices zendpdf zendframework dynamic tutorial pdf
Sameer Borate's Blog: Read the version of a PDF in PHP
by Chris Cornutt July 22, 2011 @ 09:54:18
Sameer Borate has a quick post to his blog today with some code that lets you read the version of a PDF document programmatically without a dependency on a PDF extension or library being installed.
The following [example] is a very short code to read the version number of a PDF document using PHP. I needed this recently during a PDF processing app developed in PHP. As Adobe uses different compression methods in various versions, it becomes necessary to be able to identify the version of the PDF under work.
The code opens the file with a fopen and parses a certain line for the major and minor version. The PDF extension for PHP can do something similar with the pdf_get_value function passing in either "major" or "minor" as the second parameter.
voice your opinion now!
tutorial read version pdf file extension fopen
|
Community Events
Don't see your event here? Let us know!
|