The site encountered an exception while retrieving. The site may be closed for maintenance or incorrectly configured

Source: Internet
Author: User
The site encountered an error while retrieving. The site may be closed for maintenance or incorrectly configured.
Upload my files to the server and open the Web site prompt:

The site encountered an error while retrieving http://www.hu0010.com/. The site may be closed for maintenance or incorrectly configured.

Do not know what is going on, at first I was index.html upload, but the inside of the PHP code does not seem to be used, the others are displayed normal, and then save as index.php after opening the above prompts, with this will not open!



Website content index.php










<title>Blog</title>

















"Hello world!"

















    • Home


    • Blog


    • Message boards





























Include ("conn.php");

?>


if (!empty ($_get[' Keys ')) {

$w = "' title ' Like '% '. $_get[' Keys ']." %'";

}else{

$w = 1;

}

Page out

$pagesize = 10; Show number of bars per page

$rs =mysql_fetch_row (mysql_query ("SELECT count (*) from ' blog ')") [0]; The total number of records reached

$pages =ceil ($rs/$pagesize); Total/Number of pages = Page Ceil represents 1

This is the page that gets the value of page, if there is no page, then the number of pages is 1.

$page =isset ($_get[' page ')? Intval ($_get[' page ')): 1;

$offset = $pagesize * ($page-1); //

$query =mysql_query ("Select * from ' blog ' ORDER by id desc limit $offset, $pagesize");



while ($rs =mysql_fetch_array ($query)) {

?>

">







> read the full text >>

Category:


Switch ($rs [' f_id ']) {

Case 1:

echo "Personal log";

Break

Case 2:

echo "Category 2";

Break

Case 3:

echo "Category 4";

Break

Case 4:

echo "Category 4";

  • 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.