高牿龈届!
初学ORACLE 请问如何登陆SQL PLUS 用户名口令主机字符串是多少...
Execute($sql); header("Content-type: image/gif"); readfile($rs->fields[pathname].".".$rs->fields[expname]); ?> [/php] $rs->fields[pathname]是路径+文件名,$rs->fields[expname]是扩展名 为啥没法显示捏" name=description>
作者 Loading 发布于 0000-00-00 分类:php基础编程
[php]
<?php
include("../config.inc.php");
include("../include/header.inc.php");
$_GET = quotes($_GET);
$id = intval($_GET["id"]);
DBInit(); // Initalize DtaBase Connection
$sql = "select pathname,expname from $tbl[images] where id=$id";
$rs = $dbconn->Execute($sql);
header("Content-type: image/gif");
readfile($rs->fields[pathname].".".$rs->fields[expname]);
?>
[/php]
$rs->fields[pathname]是路径+文件名,$rs->fields[expname]是扩展名
为啥没法显示捏?
如果指定一个名字,比如这样
[php]
<?
header("Content-type: image/gif");
readfile("kao.gif");
?>
[/php]
就可以
逛论坛交流:如何用显示一张图片?
咋整啊
都好几个天了 这个问题
readfile()
是直接读文件的吧 参数里面好象没有路径啊
手册上说:
int readfile ( string filename [, bool use_include_path [, resource context]])
Ding
4 条回复
回复