我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

插入唯一代码下载文件[关闭]

I would like to make a page where you insert a unique code it links you to a specific file for that code. Something like this website. http://animalstylerecords.com/downloads/

A few pointers:

  • store the files somewhere outside the web root, where people can't simple download them by guessing the URL; see How do I prevent public downloads of files using php?
  • somehow map codes to file names; this could be a simple array or a whole database, depending on your needs
  • confirm that a code is valid and output the requested file using readfile, look at the example on the manual page

近期文章

  • 在magento cms>页面上添加自定义样式
  • 在类中使用外部变量
  • 为什么TCPDF会忽略我的内联CSS?
  • php检查mysql时间戳
  • Handlebars.js的PHP实现[关闭]
  • PHP in_array忽略前导零
  • 所有POST请求上的Laravel 4 CSRF
  • 远程php运行时的Ajax响应
  • 使用字符串的Ajax联系表单问题
  • 在PHP中解析Smarty语法子集
  • 注意:php中未定义的索引错误
  • 在php中显示加载百分比文本
  • simplexml addChild在某个标记中
  • json_decode上的最后一个参数数组
  • PHP:按自己的值模式排序数组
  • SQL 2008 还原数据库 报错objet cannot be cast from dbnull to other types
  • PDO :: lastInsertId()可能不准确吗? [重复]
  • Symfony2删除记录实体问题
  • 循环代码不能在Drupal-7上运行
  • 每小时删除旧的MySQL记录

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华