#!/bin/sh # # Dear all, # this is a bugfix for tcpdf which cannot work with php 4.3.9 # The sprintf functions in tcpdf.php are using %.2F etc., but # the argument -F is available since php 4.3.10 !!! The result # is a blank screen So I have changed all occurences of # %.2F,%.3F and %.4F to %.2f,%.3f and %.4f etc. # I have found this in a forum on sourceforg.net for tcpdf !!! # # best regards, # Thomas Janson file=tcpdf.php cp $file input sed 's!%.1F!%.1f!g' input > dummy cp dummy input sed 's!%.2F!%.2f!g' input > dummy cp dummy input sed 's!%.3F!%.3f!g' input > dummy cp dummy input sed 's!%.4F!%.4f!g' input > dummy mv tcpdf.php tcpdf.org.php mv dummy tcpdf.php rm input