Auciou posted on January 15, 2010 at 21:35
After the tests, finally there was a helpless way instead, create a .htaccess file in the picture folder, may use the 404 error or Rewrite module. Make the 404 error or Rewrite point to a file auf.php, set the expiring time in this auf.php and use header("Expires:"), intercept the picture's file name from the Address Bar as $a1, use include() function to include the picture file, as include($a1). So, the include() function of PHP is powerful.
The long-range picture also can use file_get_contents() function to invoke, write in the auf.php, also can set the expiring time of long-range picture, so the function of PHP is powerful.
Category:
Program | Internet | Computer
Blog Research | PHP | Philosophy
Archives:
January 2011 | January 2010
December 2009 | October 2009 | September 2009 | April 2009
December 2008 | November 2008
May 2007 | April 2007
August 2005 | July 2005 | June 2005
May 2005 | April 2005 | March 2005
February 2005 | January 2005
Recent articles:
My Go Daddy hosting is fast
Create a house with your spouse on the interest
Pending time which add a domain of hosting, was more than 36 hours
Diary: 2010-01-15
Many Linux hostings do not support the mod_expires module
Figured out, there is still a way
About the delicated IP of IXWebHosting
About the QUERY_STRING parameter of URL
About the ping value and speed of site
The relation between program and .htaccess file
Saved a delicated IP
Judge that does a long-range file exist in PHP
How to call the Confederation of Planets and the high evolving beings of alien/pray/make a wish
Use Apache as the local virtual hosting to preview the Blog
Create the development environment of Apache
Reinstall Apache and PHP for one step
The elements of program of preventing the spam and closing IP
How to close the visit log of ixwebhosting
Happy Wedding to a friend
Make an easy Audio/Video converter