Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method to solve the problem that DEDECMS5.5 can not be collected under foreign Linux host

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to solve the problem that DEDECMS5.5 can not be collected under foreign Linux host? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

What if the DEDECMS5.5 cannot be collected under the foreign Linux host?

I have played with dedecms again these days to see how powerful the function of dedecms5.5 is. So I uploaded it to my Dreamhost host and ran with a temporary domain name. When you are playing, you will find that you can't collect it, and you can't even use the downloading remote pictures and resources of articles published by DEDE. That's weird.

Recommended study: dream weaving cms

Then remembered that it seems to have seen the article that the host of Dreamhost disabled allow_url_fopen, resulting in unable to collect. So I searched and searched on the Internet, and found several articles that compiled php by myself to make Dreamhost support collection. So also refer to the introduction of the official website of Dreamhost, through ssh, after more than half a day finally completed the compilation of their own php, cheerfully ran to the system to collect, still failed. Upload a probe to see, allow_url_fopen is indeed enabled, strange. Then continue the Google, and then repeated tests have proved that, in fact, Dreamhost is enabled by default, and the articles introduced on the Internet are basically articles from 2008 or before, so it must be Dreamhost himself who has figured out to let go of this restriction.

After tossing about for two days, I didn't believe in evil, so I uploaded multiple Supesite and php168, installed and collected them in one go. You boy, it turns out that dede can't collect it himself. Wonder. After searching on the dede official website, I also found that some netizens could not collect it under the foreign Linux host. As a result, we finally found a solution, which is to change the document. I forgot where I read the article that found the solution. There is only a revised document from this machine. I would like to thank that man here.

The file in question is in include/dedehttpdown.class.php. After it is overwritten with the attachment provided in this article, you can easily use the collection function, and you can also use the function of "downloading remote pictures and resources" when publishing articles. After comparing this file, it is found that two changes have been made.

1. Comment out the 280 line of code as follows:

The code is as follows:

/ / fputs ($this- > m_fp, $headString)

2. Find the 304 lines of code and replace them with the following code:

The code is as follows:

$headString. = "Connection: Close\ r\ n\ r\ n"; / / fputs ($this- > m_fp, "Connection: Close\ r\ n\ r\ n")

3. Find 308 lines of code and replace them with the following code:

The code is as follows:

$headString. = "\ r\ n"; / / fputs ($this- > m_fp, "\ r\ n")

4. Insert the following code on line 315, "/ / get the status information of the transponder":

The code is as follows:

Fputs ($this- > m_fp, $headString); thank you for reading! After reading the above, do you have a general understanding of the solution to the problem that DEDECMS5.5 cannot be collected under foreign Linux hosts? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report