PHP中用header图片地址 简单隐藏图片源地址
2008-04-09 00:00
856 查看
<?php $path=$_GET["path"]; $cacheimgname=str_replace("/","_",$path); $localimg="upimg/".$cacheimgname; if ((file_exists($localimg))) { $httpurl=$localimg; } else { $httpurl="http://www.imageserver.com/".$path; @copy($httpurl,$localimg);//缓存图片! } header("Locationhttpurl"); exit; ?>
调用它类似这样:
<img src="img.php?path=x/x/xtest.gif">
相关文章推荐
- PHP中用header图片地址 简单隐藏图片源地址
- PHP中用header:图片地址 简单隐藏图片源地址
- PHP中用header:图片地址 简单隐藏图片源地址
- Yii2简单地址美化并隐藏index.php
- PHP隐藏图片源地址img.php/xx.png
- php隐藏图片地址一例
- Yii2简单地址美化并隐藏index.php
- Yii2简单地址美化并隐藏index.php
- 用php隐藏图片的真实地址
- php 获取 内容所有 图片地址 正则判断简单代码
- PHP中简单图片处理类
- php 用地址实现的无限级分类,简单几行
- 解析百度图片搜索结果json中objURL图片原始地址函数(.net版 参考php版)
- PHP之HEADER隐藏文件下载路径
- php中检查某个网页地址是否有效能被打开的最简单方法
- php curl下载图片 URL地址
- php笔记之GD库图片创建/简单验证码
- java获取指定地址图片高度宽度简单代码
- asp.net 隐藏图片的真实地址
- php简单实现文件或图片强制下载的方法