Godaddy free space problem and solution Summary

Source: Internet
Author: User

After purchasing two domain names, Godaddy applied for two free spaces: Linux + PHP + MySQL and Windows + IIS + ACCESS. After several months of trial research, the problems found are summarized as follows:

1. the Godaddy advertisement is automatically added to each page. The solution is found everywhere in Baidu. It is nothing more than destroying the script at the bottom.CodeTo achieve the effect, the perfect point is to write the code first to identify the browser language. When it comes to English, it will not break the advertisement code. When it comes to a Chinese browser, it will destroy its advertisement code. This method is relatively safe; in addition. add the following code to htaccess:

Layoutignoreuri *. php
Layoutignoreuri *. cgi
Layoutignoreuri *. htm
Layoutignoreuri *. html
Layoutignoreuri *. XHTML

2. To implement the URL rewrite function, you can use. htaccess on a Linux host. on a Windows host, you can only use web. config of. net2.0 for configuration.

3. In addition,. htaccess and web. config have more powerful functions.

Add the default homepage code in. htaccess as follows:

Directoryindex index.html default. php index. php

4. You can customize the php. ini configuration on a Linux host.

If PhP4 is used, the php. ini file is created in the root directory for configuration. If PhP5 is used, the php5.ini file is created.

There are important configurations in this INI file, such as "auto_append_file =". This configuration is used to automatically add code to the end of a webpage file suffixed with. php. Its usage is as follows: auto_append_file =/append. php. This configuration is very effective for solving advertising problems.

When the size of the uploaded file is limited, you must configure the upload_max_filesize =, post_max_size =, and memory_limit = parameters at the same time. If a timeout occurs, you must configure max_execution_time =, max_input_time =, enter the value after "=" as required.

5. the Linux host can connect to the MySQL database and use the PHP + ACCESS database. SQLite has not been tried yet (in theory, PhP5 has built-in SQLite support files)

However, Windows free hosts only support Access database connection, because Windows hosts support PHP, and its PHP is safemode (safe mode, equivalent to eunuch), and its PHP. INI cannot be configured on its own and does not support MySQL extension (equivalent to eunuch and Eunuch, that is, the demon, and the INI file cannot be customized. netProgramDLL files are not supported, and MSSQL database connections are not supported. The final conclusion is that Windows hosts can only use ASP + ACCESS.

6. then the problem arises. The use of a non-UTF-8 encoded Chinese ASP program + ACCESS database will cause garbled data, and there is a solution on the Internet (convert the Access database to a database in 97 format, but occasionally encounter conversion failures), in fact, the simplest way is to use the UTF-8 encoded ASP + ACCESS Program, which can perfectly solve the garbled problem.

7. when you are pleasantly surprised to find that you can use ASP + access or PHP + MYSQL to build a website, the problem arises again. The GD library of the Free Linux host has a problem, failed to generate the Verification Code (the test was conducted multiple times and the code and advertisement issues were basically ruled out). Fortunately, the ASP program does not need the support of the GD library, when you use the Code , you can see the verification code as expected.

8. it's just too early to be happy. Suddenly you findArticleNeither the number of reads nor the Digg top number is displayed ......, Gradually you will find that the original <scrui scr = XX/xx. asp> </SCRIPT> or <scrui scr = XX/xx. php> </SCRIPT> code is no longer valid and seems to be close to the verge of despair ....

9. By accident, I found that the number of times Z-blog articles were read can be dynamically displayed on the static page. I checked the code and found that it did not directly call the dynamic file, but used jquery ......

GD free space research has come to an end, To be continued .........

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.