Let zymic old free space to become your outside chain diagram bed combat

Source: Internet
Author: User
Keywords Free space

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Foreign many more well-known and very stable free space there is a situation is not allowed outside the chain of pictures, of course this is also for the sake of other users on the server, such as zymic this old and stable free space are disabled a lot of functions, although the quality of space is very good, but is not let you outside the chain, Many friends are using toll space to do the station, in order to save the flow to find a stable free space to do the map bed, but bitter find no fruit.

Generally more well-known free space, the stability of a good love to delete the station, do not love to delete the station's restrictions and more, not well-known, not to mention, may use a few days space business on the run, to the time the data lost crying no place to cry, so today to zymic as an example to teach you how to let these old stable free space to become your outer chain map bed.

One thing to note: Using this method may cause the deletion of the station, please judge for yourself

Here's how to do it:

1, first copy down the following code and save for index.php, in order to facilitate the search on the desktop bar:

$queryStr = $_server[' query_string '];

if (!empty ($QUERYSTR)) {

$outFile = implode ('/', explode ('/', $_server[' script_filename '],-1)). "/$queryStr";

if (!file_exists ($outFile)) {

Echo ' File not Found: ', $queryStr;

else {

Header ("Cache-control:public, must-revalidate");

Header ("Content-type:image/gif");

Header ("Content-transfer-encoding:binaryn");

Echo file_get_contents ($outFile);

}

}

?>

2, will be ready to index.php this file using FTP upload to your zymic space root directory, preferably in the subdirectory, in the root directory to put something to do a station to prevent the deletion of the station

  

3, the above preparation work done, the picture can be outside the chain, but also need methods, the following to tell you about the chain link format:

The root directory to do picture space link writing: http://your domain name/?/picture name. picture suffix;

Example: http://eyaa.zxq.net/?/aaa.jpg

Sub-directory to do picture space link writing: http://your domain name/directory/?/picture name. picture suffix;

Example: http://eyaa.zxq.net/img/?/aaa.jpg

Note: Use the root directory or subdirectory to do the outer chain space depending on the location of the index.php in the text, index.php in which folder can be outside the chain

So far your zymic free space has become your outer chain diagram bed, of course this method can also be used for other restrictions on the external chain picture of free space use, but index.php code to change:

Find: $outFile = implode ('/', explode ('/', $_server[' script_filename '],-1)). "/$queryStr";

Modified to: $outFile = $_server[' Document_root ']. $QUERYSTR;

Then follow the zymic operation method to

This article from the babbling Information network http://www.eyaa.net, reprint please keep the link, thank you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.