• PHP參數說明
  • 推文至Facebook  
  • 在資料夾裡面有檔案
    config.php
    在這裡面是網頁及資料庫設定檔

     $mydbhost = "";資料庫主機
     $mydbuser = ""; 資料庫使用者名稱
     $mydbpw = ""; 資料庫密碼
     $mydbname = ""; 資料庫名
     $mydbcharset = "UTF8"; 資料庫編碼
     $db = @mysql_connect($mydbhost,$mydbuser,$mydbpw);
     if (!$db) {
     exit('Unable connect MYSQL at this time');
     }
     if (!@mysql_select_db($mydbname)) {
     exit ('Unable connect DB at this time');
     }
     mysql_query("SET NAMES $mydbcharset", $db);
     //以下是smarty參數設定
     $smarty_template_dir ='./templates/';
     $smarty_compile_dir ='./templates_c/';
     $smarty_config_dir ='./configs/';
     $smarty_cache_dir ='./cache/';
     $smarty_caching =false;
     $smarty_delimiter =explode("|","{|}");

    在以下檔案中可找到參數如
    index.php
    global.php
    news.php
    newslist.php
    state.php
    file.php

    $sm_class[]        //倒出分類參數
    $sm_state[]       //倒出文章參數
    $sm_link[]          //倒出友情連結參數
    $sm_company[]  //倒出首頁訊息參數
    $sm_news[]       //倒出最新消息參數
    $sm_file[]          //倒出檔案下載參數

    以上是PHP與smarty語法
    如想把參數轉至其他頁面
    可自行修改之

    新竹網頁設計,竹北網頁設計,竹南網頁設計,中壢網頁設計,網頁設計,免費模板,免費網頁套件,架設網站,網站架設 ,修改模板,主機代管,Android App

  • 標籤:PHP, 參數,
NetYea 客服 NetYea 客服
NetYea 客服

PHP參數說明 -