If you encounter PHP error "Function ereg_replace() is deprecated", you can fix that. There are many places, where ereg_replace is used in classes, but in new PHP version, it is deprecated, instead, you should change from ereg_replace to preg_replace function. Example follows.
kirk - 2013-10-25 13:26:03 - In reply to message 1 from Nils
I also want to thank you for posting this. I downloaded the package and was testing several of the barcode formats. I could not get code 128 to display an image. Changing ereg_replace to preg_replace solved the problem.
code128.barcode.php was the only php file containing ereg_repalce.