如何得到图象文件的类型啊。 uploadfile u can get like this$youruploadfilename_type 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?$im=getimagesize($imagefile);echo $im[2];//1表示gif格式,2表示jpeg/jpg格式,3表示png格式?> <?phpmysql_connect("localhost","root");mysql_select_db("库名");$query=("select * from 表名 ");$result=mysql_query($query);$data=@mysql_result($result,0,"图象字段名");$type=@mysql_result($result,0,"文件类型字段");header("content_type:$type");echo $data;?> zjnbgda(小丸子)瞎讲吧,那应该是长,宽,或是长宽的IMG代码 php基础帮忙解决 header("Location:index.php")页面跳转问题 一个奇怪问题 php 无法连接mysql 问下咱PHP在不同的服务器里传参数,都有哪些方法? 表单的内容不能传到php的处理程序,高手帮帮忙啊!!!! mail()发送成功,却看不到信件 如何卸载phptriad及mysql? 急,紧急~~~请问如何加载PHP与MYSQL的链接模块! php怎么让ie打开某个网址? 哪位高手有空看看我的问题 真是难题呀?如何将php的结果生成为pdf文件?能给些提示吗?yorgo?
$im=getimagesize($imagefile);
echo $im[2];//1表示gif格式,2表示jpeg/jpg格式,3表示png格式
?>
mysql_connect("localhost","root");
mysql_select_db("库名");
$query=("select * from 表名 ");
$result=mysql_query($query);
$data=@mysql_result($result,0,"图象字段名");
$type=@mysql_result($result,0,"文件类型字段");
header("content_type:$type");
echo $data;
?>