Archive for the ‘php’ Category

PDF erstellen un bearbeiten mit PHP

Sonntag, März 15th, 2009

1) PDF erstellen: FPDF

2) Portable Document Markup Language ist eine Markup-Sprache mit der PDF-Dokumente mittels FPDF erstellt werden.

3) UTF-8 Support für FPDF: UFPDF

4) xhtml2pdf erstellt PDF-Dateien aus XHTML mittels FPDF

5) PDF erstellen mit einem PDF als Hintergrund: FPDI

6) 2 PDF-Dateien in eine mergen bzw. eine PDF-Datei in 2 Dateien splitten: SetaPDF (kommerziell)

Turnover statistics plugin for OsCommerce

Freitag, Januar 16th, 2009

A new plugin for OsCommerce creates nice turnover statistics.

Graphical in Flash and in a table.

More info and download:
http://synctables.com/turnover-statistics-for-oscommerce.php

oscommerce turnover statistics plugin

Comments for the developer of this plugin
can be entered on this page.

HTMLSQL

Mittwoch, November 5th, 2008

HTMLSQL extrahiert Teile aus einer HTML-Seite, wie SQL Teile aus einer Datenbank extrahiert. Interessante Idee!

SELECT href,title from a WHERE $class=’list‘

http://www.jonasjohn.de/lab/htmlsql.htm

Sofortüberweisung

Dienstag, September 9th, 2008

Sofortüberweisung (http://sofortueberweisung.de) ist ein neuer Dienst, der in Webshops integriert werden kann. Nach der Bestellung wird der Kunde auf Seite von Sofortüberweisung umgeleitet. Dort gibt er die Daten seiner Bankverbindung an und überweist den Betrag wie im Internetbanking üblich mit dem TAN-Code der eigenen Bank. Das Geld wird also sofort überwiesen. Der Webshop erhält unmittelbar eine Bestätigung über die Durchführung der Überweisung.

Die Überweisung funktioniert von und nach Deutschland, Österreich und Schweiz.

Es gibt Schnittstellen für verschiedene Shops, die allerdings unterschiedlich programmiert sind. So basiert die OsCommerce-Schnittstelle auf einer veralteten Schnittstelle mit weniger Möglichkeiten als die Schnittstelle für Eigenprogrammierung. Wenn man also alle Features nutzen möchte, muss man auch bei OsCommerce selber programmieren.

Die Überweisung ist auch möglich ohne Webshop. Man kann dem Kunden einen Code bzw. einen Link mit diesem Code schicken. Damit kommt der Kunde zur Zahlungsseite mit allen Informationen.

Mobile Geräte erkennen in PHP

Samstag, August 2nd, 2008

Hier zwei Scripte, welche erkennen, ob ein Desktop/Notebook oder ein mobiles Gerät eine Seite aufruft. Für das mobile Gerät kann dann eine Einfachversion der Seite ausgegeben werden.

Kommerziell:
http://www.andymoore.info/php-to-detect-mobile-phones/

OpenSource:
http://www.osnews.com/…..Mobile_Detection_Kit

Protect your form with a captcha

Montag, Juni 30th, 2008

The website http://www.protectwebform.com protects any form or an email-link against spam with a captcha. Integrating it into your website is easy. There is even a wordpress plugin.

A drawback: It doesn’t work in PHP safemode when the function „file_get_contents“ doesn’t work. I changed the PHP file to use CURL instead. Find the code here.

PHP debugging

Samstag, Juni 14th, 2008

There is a new version of the greatest free tool for debugging (in my opinion):

datadumper 3.0.

This tool dumps all kinds of PHP-variables in a very nice readable structure on screen. You can also dump variables in a file which is very nice when using AJAX where there is no GUI for the PHP output.

Screenshot

Download

UTF8 with PHP and MySQL

Dienstag, Dezember 11th, 2007

There are still a lot of problems when converting a site from latin to UTF8.

Here a some links which describe what has to be done and how:

Unicode Theory:

http://www.joelonsoftware.com/articles/Unicode.html

cheatsheet

http://developer.loftdigital.com/blog/php-utf-8-cheatsheet

unifier

http://www.melody-soft.com/html/unifier.html

MySQL 4.1 und Zeichensätze

http://www.hosteurope.de/faq/index.php?cpid=12229

Using UTF-8 with UltraEdit

http://www.ultraedit.com/index.php?name=Forums&file=viewtopic&t=3511&highlight=unicode

PHP 6/Unicode design document

http://devzone.zend.com/content/summaries/php-unicode-design.txt

Andrei Zmievski’s presentations

http://www.gravitonic.com/talks/

Unicode Consortium reference point

http://www.unicode.org/

The ICU Library at the core of PHP 6

http://www.icu-project.org/

Joel Spolsky’s introduction to Unicode

http://www.joelonsoftware.com/articles/Unicode.html

Handling UTF-8 with PHP

http://www.phpwact.org/php/i18n/utf-8

utf-8-und-die-entity

http://blog.antikoerperchen.de/beitrag/42/utf-8-und-die-entity.html

PHP UTF-8 is a UTF-8 aware library of functions mirroring PHP’s own string functions. Does not require PHP mbstring extension though will use it, if found, for a (small) performance gain.
http://sourceforge.net/projects/phputf8