Godaddy free space perfect installation and deployment dedecms
Many of my friends will provide a free 10 Gb space when purchasing a godaddy.com domain name. This space is not slow and stable compared to most of the domestic paid hosts, there will be two major advertisements at the top of the space. Well, these solutions can be solved. Please savor this article carefully and you will feel a lot of benefits.
Http://www.godaddy.com/
Http://www.dedecms.com/
When dedecms is installed, two problems will occur. The database deployment and background Verification Code cannot be displayed, resulting in login failure.
Key 1: database connection must be configured in advance. For example, localhost does not work, and godaddy has a database address. [If you do not configure it in advance, a blank page will appear. (Installation should not be the same as in domestic space )]
Key 2: You must cancel the system verification code. Otherwise, you cannot enter the background. To cancel the verification code, you only need to open data \ safe \ inc_safe_config.php and delete 6 from $ safe_gdopen = '1, 2, 3, 5, 6. You do not have to perform tedious settings.
Alternatively, you can first install it locally and then [system] → [verification code security settings] to set the places where the verification code is enabled and where it is not enabled. [Here, the verification code function is canceled beforehand]
After the database problem is solved, we need to solve the advertisement problem.
The advertisement cannot be completely blocked, because the official agreement clearly indicates that, if the advertisement is blocked, the official website will reclaim the space.
At this time, we only have to sacrifice some performance to skillfully solve the space advertisement problem.
We study that there is a conash3D0 layer in the advertisement code. In this case, we only need to set this layer to an invisible state. How can we do this?
This code solves <style ># conash3D0 {display: none} </style>.
However, this code is not the best solution, and you will also encounter an official manual review from godaddy.com. If you simply use the code above, it will only make you in trouble, during the official manual review, you will find that the advertisement is missing. At this time, you should close the site.
HOHO ~! I hope Mi will scare you. Here are some solutions.
The official People will basically use English operating systems and browsers. At this time, we only need to judge the language of the browser to make a good judgment.
The following code can be interpreted as follows: when the browser language is Chinese, the Code <style ># conash3D0 {display: none} </style> is automatically output, on the contrary, browsers other than Chinese do not have any content that affects advertisements.
<? Php
$ Lang = substr ($ _ SERVER ['HTTP _ ACCEPT_LANGUAGE '], 0, 4 );
If (preg_match ("/zh-c/I", $ lang ))
Echo "<style ># conash3D0 {display: none} </style> ";
?>
Of course, in addition to PHP code, there are also JS Code to choose from
<Script>
If (navigator. browserLanguage = 'zh-cn ')
Document. write ('<noscript>'); // creat
</Script>