PHP read the background image, front view restrictions

2010-06-30  来源:本站原创  分类:PHP  人气:170 

<? Php
$ File = 'FGLGSls27E3II441.jpg';

if (file_exists ($ file)) (
header ('Content-Description: File Transfer');
header ('Content-Type: application / octet-stream');
header ('Content-Disposition: attachment; filename ='. basename ($ file));
header ('Content-Transfer-Encoding: binary');
header ('Expires: 0');
header ('Cache-Control: must-revalidate, post-check = 0, pre-check = 0');
header ('Pragma: public');
header ('Content-Length:'. filesize ($ file));
ob_clean ();
flush ();
readfile ($ file);
exit;
)
?>

相关文章
  • PHP read the background image, front view restrictions 2010-06-30

    <? Php $ File = 'FGLGSls27E3II441.jpg'; if (file_exists ($ file)) ( header ('Content-Description: File Transfer'); header ('Content-Type: application / octet-stream'); header ('Content-Disposition: attachment; filename ='. basename ($ file)); header

  • Toast to change the background and degree settings 2010-08-26

    1.Toast toast = Toast.makeText (context, "Toast text", Toast.LENGTH_SHORT); View view = toast.getView (); view.setBackgroundResource (/ * your background * /); toast.setView (view); toast.show (); 2.myTextView.setText ("78" + (char) 0x

  • Management skills in Oracle database view 2010-10-25

    View of the database, it is a basic, and it is one of the most important functions. The quality of the database design view, associated directly with the database performance. Moreover, the design of large databases, we division of labor, basic table

  • Maegen obtain background information on the current user 2010-11-08

    $admin = Mage::getSingleton('admin/session')->getUser(); if($admin){ return $admin->getId(); } Note that only the corresponding class in the background effective front can not get tested.

  • Background execution log 2010-11-25

    http://192.168.1.35:3000/sqmy/exceptions background error log view sqlplus zbs_ciis / zbs @ / / 192.168.1.29/orcl oracle database link git log-p app / controllers / dispatches_controller.rb View change history

  • Oracle database management experience skills view 2010-10-25

    View, for the database, it is a basic, one of the most important functions. The quality of the database design view, directly related with the performance of the database. Moreover, in a large database design, we division of labor, basic table design

  • Materialized view query rewrite constraints [Reserved] 2011-02-28

    Materialized view is an important feature is support for query rewrite. If the initialization parameter query_rewrite_enabled set to TRUE, and the CBO, when issuing the query on the base table, Oracle will automatically determine whether the use of t

  • Android ViewPager+View.setTranslationX实现可滑动的指示器效果 2014-12-13

    对于需求较为严格一些,应该让ViewPager滑动时,那个指示器也应该滑动才符合逻辑,因此如上代码改造为如下代码 public class AnimActivity extends BaseActivity { private View vline; /** * 指示器偏移宽度 */ private int offsetWidth = 0; private ViewPager mViewPager; /** * viewPager宽度 */ private int screenWith = 0;

  • News Publishing System Design and Implementation 2010-06-05

    Summary With the emergence of the network, web gradually integrated into people's lives. Quick and timely news browsing, colorful online information, the network and people's daily life. It breaks geographical restrictions, to truly make the informat

  • Linux command Daquan (rpm) 2010-12-23

    Original link: http://huagenli.javaeye.com/blog/513677 linux directory structure / Root / Bin commonly used commands binary file directory / Boot storage system startup files to be read, including the core (kernel), including / Boot / grub / menu.lst

  • Linux study notes written just fine 2011-05-27

    Linux study notes written just fine linux directory structure / Root / Bin commonly used commands binary file directory / Boot storage system startup files to be read, including the core (kernel), including / Boot / grub / menu.lst GRUB settings / Bo

  • Software project development process with the idea 2009-04-22

    INTRODUCTION Computer software, especially database software, has become the mainstream of contemporary computer applications. Thus software developers must have the right to develop the means to understand the main software development process, so t

  • [Change] Java learning topics for (9) 2010-04-21

    J2ee open source framework for many, I can only introduce themselves familiar with several other applications currently in the Chinese IT industry was not many. Hope that the new framework should not blindly out of admiration, first of all must be fa

  • Chapter JSTL variable 2010-05-08

    A: To use the C tag library, it first has to join in the JSP page: <% @ Taglib uri = " http://java.sun.com/jsp/jstl/core "prefix =" c "%> 2: Core Core tag library Operator: out, set, remove, catch Flow Control: if, choose, when,

  • discuz! x1.0 second development program to teach you to identify a list of directories and files 2010-06-28

    As a community-based professional Jianzhan platform, Discuz! X1 community platform for the Forum (BBS), social networking (SNS), portal (Portal), Group (Group), open platform (Open Platform) fully integrated in one, one-stop services to help websites

  • discuz! x1.0 second development recognition program to teach you a list of directories and files 2010-06-28

    As a community-based professional Jianzhan platform, Discuz! X1 community platform for the Forum (BBS), social networking (SNS), portal (Portal), Group (Group), open platform (Open Platform) fully integrated in one, one-stop services to help websites

  • Progress bar (ProgressBar) drag section (SeekBar) android 2010-07-12

    This article from http://www.cnblogs.com/TerryBlog/archive/2010/06/17/1759542.html Progress bar (ProgressBar) When an application in the background, the front interface is not changed, but since Android configuration different from the models, and so

  • [Change] Spring integration velociy / freemaker related configuration 2010-07-16

    Spring Framework Developer Reference: 14.4. Velocity and FreeMarker Velocity and FreeMarker are two templating languages that can be used as view technologies within Spring MVC applications. Their language style and applies to the object are very sim

  • RHCE course-RH033Linux Note 6 of the basic editing tools VIM. Network configuration. The process priority. Log file Introduction (2) 2010-07-16

    Let me tell you a trick, we have to edit a configuration file with VIM, when, for example: ifcfg-eth0 So that he would end the monopoly, in the graphical interface that is nothing, in the open a terminal on the line Trouble in the CLI mode, this case

  • GLUT common function description 2010-07-29

    GLUT common function description stephenxjc_ Millennium smile 2010-7-29 Object: GLUT entry level (beginner) Keywords: GLUT, function Core content: mainly through the program in a specific role in the function Platform: visual studio2008, need to conf