A navigation exception occurs when the php website is transplanted from the windows platform to the Linux platform.

Source: Internet
Author: User
Tags centos server
For help, the php website was transplanted from the windows platform to the Linux platform, and the navigation error php + mysql website was displayed. it was transplanted from the original windows platform to the centos server platform, there are no other problems, that is, the home page navigation cannot be seen, and it does not work if clicked. The original homepage code: & lt; help: the php website is transplanted from the windows platform to the Linux platform, and a navigation error occurs.
The php + mysql website has been transplanted from the platform set up in the original windows to the centos server platform. there are no other problems, that is, the homepage navigation cannot be seen, and it doesn't work anymore.
Original homepage code:

  •  
     
    Hospital situation overview


  •  
     
    Introduction


     

  •  
    The main page code generated after transplantation:
  •  
     
    "   >


  •  
     
    " >


     



  • Home page source code:

    Session_start ();
    Error_reporting (E_ALL ^ E_NOTICE );
    Header ('content-Type: text/html; charset = utf-8 ');
    Define ('thisadmini ', true );
    $ DirName = dirname (_ FILE __);
    $ ShlConfig = $ dirName. '/config/dt-config.php ';
    If (! Is_file ($ shlConfig) | filesize ($ shlConfig) = 0 | filesize ($ shlConfig) = 3)
    Exit ('shlcms has not been installed, please go to the installation directory ');
    Else
    Require ($ shlConfig );

    Require (ABSPATH. '/loader/html. php ');

    Function_exists ('date _ default_timezone_set ') & @ date_default_timezone_set ('etc/GMT-'. TIMEZONENAME );
    Require_once (ABSPATH. '/inc/class. database. php ');
    Require_once (ABSPATH. '/inc/function. php ');

    $ _ REQUEST = cleanArrayForMysql ($ _ REQUEST );
    $ _ GET = cleanArrayForMysql ($ _ GET );
    $ _ POST = cleanArrayForMysql ($ _ POST );
    $ Request =$ _ REQUEST;
    $ Menu_arr = array ();
    // Write route statement
    $ PfileName = $ request ['F'];
    If (! Empty ($ pfileName) & $ pfileName! = 'Search ')
    $ Request ['P'] = getIdByMenuName ($ pfileName );
    Elseif ($ pfileName = 'search ')
    $ Request ['M'] = 'search ';

    $ Params ['id'] = $ request ['P'] = isset ($ request ['P'])? Intval ($ request ['P']): 0;
    $ Params ['CID'] = $ request ['c'] = isset ($ request ['c'])? Intval ($ request ['c']): 0;
    $ Params ['args'] = $ request ['R'] = isset ($ request ['R'])? Intval ($ request ['R']): 0;
    $ Params ['I'] = $ request ['I'] = isset ($ request ['I'])? Intval ($ request ['I']): 0;
    $ Request ['comment'] = isset ($ request ['comment'])? Intval ($ request ['comment']): 0;
    $ Request ['mdtp '] = isset ($ request ['mdtp'])? Intval ($ request ['mdtp ']): 0;
    $ Menu_arr = get_model_type ($ params ['id']);

    $ Request ['M'] =! Isset ($ request ['M'])? '': $ Request ['M'];
    $ Params ['model'] = empty ($ request ['M'])? $ Menu_arr ['type']: $ request ['M'];
    $ Request ['A'] =! Isset ($ request ['A'])? '': $ Request ['A'];
    $ Params ['action'] = empty ($ request ['A'])? 'Index': $ request ['A'];
    $ Params ['related _ common'] = empty ($ menu_arr ['related _ common'])? $ Params ['model']: $ menu_arr ['related _ common'];

    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.