1. Type:选择条形码类型
2. Output:输出的图片格式
3. Thickness:条形码高度
4. Resolution:条形码大小
5. Font:条形码下方的文字大小,也可不显示文字
6. Text:条形码打印的内容
当然,这个程序只是将文字生成为条形码,但使用时不能灵活将其嵌入其他PHP程序,我将压缩包里面的test.php
做了一些调整,使其能灵活的用于其他程序。运行时只需将条码类型和文字传给test.php即可,例如:
http://localhost/barcode/test.php?codebar=BCGcode39&text=20090729
或运行 http://localhost/barcode/mytest.php
mytest.php代码:
<img src="test.php?codebar=BCGcode39&text=20090729">
效果图:
test.php代码:
<?php
// Including all required classes
require('class/BCGFont.php');
require('class/BCGColor.php');
require('class/BCGDrawing.php');
/*'BCGcodabar','BCGcode11','BCGcode39','BCGcode39extended','BCGcode93',
'BCGcode128','BCGean8','BCGean13','BCGisbn','BCGi25','BCGs25','BCGmsi',
'BCGupca','BCGupce','BCGupcext2','BCGupcext5','BCGpostnet','BCGothercode'*/
$codebar = HTML PUBLIC "-//w3c//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
XMLns="http://www.w3.org/1999/xhtml">
未来的中国站长, 更加专注中国网络的发展
广告服务 |
最新更新 |
加入收藏 | 设为首页
热门关键字:CSS布局配色参考Dreamweaver8 apacheApacheIIS6ajaxWML
SEOver="this.style.backgroundColor='#FFFFE5'" onmouseout="this.style.backgroundColor='#FFFFFF'"/>
首页 | HOME
站长之家
站长入门
运营策划
搜索优化
网站盈利
网页设计
Html
CSS/Xhtml
Dhtml
WAP
Dreamweaver
设计原理
平面动画
Photoshop
Firework
Flash
网站开发
Asp
.Net
Php
Jsp
MsSQL
Access
Oracle
Mysql
服务器
Fressbsd
LINUX
Windows
站长学院 >>
网站开发技术教程
>>
php教程
>> PHP生成条形码 之二 开源之道
视频教程
常用手册
常用广告代码
js特效代码
PHP生成条形码 之二 开源之道
2010-12-25 17:39:00查看学习心得
{GetProperty(Content)}
本文作者:未知
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛