setcooki
ALLROUND WEB DEVELOPER

13
Jan 12

WordPress + Facebook + DISQUS Mashup Deluxe

Comment Systems play a more and more vital part in social media experience. Since google announced to also index the most common commenting systems some new players appeared on the block. So which comment system to pick? It largely depends on the application you build, but if you are looking for a solution with many social media features -DISQUS may be the one you should be looking at. What if you would like to make a service only based on a commenting system as in saying all content of my website will be user generated! DISQUS is the one to go for … here is why:

More…

06
Dec 11

PHP/XML based staging script

There are many software clients that let you sync content from your local environment to a remote server via (s)ftp but what to do if you have a multiple remote environments/server in form of a test/staging server in and live productive server. In this case you could of course upload your changes first to the test server and then do the same to the productive server. That of course has a major disadvantage since you may have made local changes which are not reflected/tested before syncing the two. Suppose you have others testing the application on the test server you are bound to not change anything while in test modus. So if you dont use any sort of cvs/svn system the only reliable way must be to sync the approved changes from the test server to the productive server while you can still locally develop further.

More…

24
Oct 11

MySQL Backups – 7-zip protected AES 256 Bit encrypted

Making MySql Backups is a crucial thing and should be done automatically by some routine rather then people doing it by hand. Doing the backup is one thing – securing it is another. Here is a way to dump a database and zip it password protected with 7-zip (http://www.7-zip.org)

More…

11
Oct 11

Get bookmarks from PDF with PHP

Splitting a PDF according to its Table of Content (Bookmarks) with PHP

by using the linux lib http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ you can use the following command to write a bookmark structure from a PDF to a .txt file

More…

02
Oct 11

Process audio with PHP and Sox

You want to mix/merge/edit audio file only with php on-the-fly? export your mix to mp3 … thinks its not possible? Well it is!

This will only work on Linux as you need the sOx Soundexchange Library http://sox.sourceforge.net/ and Lame http://lame.sourceforge.net/. Make sure you have the right versions for your environment installed as the wrong setup will not be stable. For installation – see installation guides on the project websites. Once you have everything up and running you should specify your needs and create a runtime routine for rendering audio on-the-fly.
More…

28
Sep 11

PHP DOM XML to Array

What is the fastest way to parse a XML string into a equivalent valid Array representation?

I have seen quite some efforts on different blogs and the comments on php.net in some of the functions suggest some valid approaches. The problem with most approaches though, i find, is the lack of xml testing before passing it to the function to transform the xml to array. When you want to make sure you have a valid XML string the PHP DOMDocument class and its sub classes provide everything for iteration through its childs, to saving string presentations to file and so on. On top DOM perfectly validates XML strings when passed into the loading methods of the class. Also i believe any approach using DOM rather then handling the XML string with regex or whatever should be much faster and safer to rely on.
More…

10
Sep 11

PHP & Ghostscript – Count pages of PDF

Count pages of a pdf is pretty simple!

One way of finding out how to count the pages of a PDF file with PHP apart from imagemagick which always performance very slow and shaky (depends on the version) is to use the Linux Ghostscript library via shell and PHPs exec() commands. More…


Copyright © 2012 setcooki
Proudly powered by WordPress, Free WordPress Themes