スポンサーサイト

2023.04.20 Thursday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    今さらだけどxml.php 廃止になってたからsimplexml_load_fileを使うように変更jした

    2017.08.08 Tuesday 02:10
    0
      xml.php 廃止になったので、simplexml_load_fileをつかうようになって以下に変更した

      $data = simplexml_load_file($RSSURL);
      $data2 = json_decode(json_encode($data), true); // オブジェクトを連想配列に変換(いったんjsonしてる)
      foreach ( $data2['Shop'] as $d ) {
      category:php | by:ittoocomments(0)trackbacks(0) | -

      smartyでエラーでてた

      2017.08.06 Sunday 19:54
      0
        smartyでエラーでてた

        なおした箇所は2つ
        env.php の以下のディレクトリの場所が間違ってた
        ini_set("error_log" , "C:¥¥xampp¥¥htdocs¥¥" . DOMAIN . "¥¥logs¥¥error_log"); // サーバーエラーログ
        define( "DIR_ROOT" , "C:¥¥xampp¥¥htdocs¥¥" . DOMAIN . "¥¥") ; // php5
        smarty/lib を最新にした

        [php7:warn] [pid 8512:tid 1844] [client ::1:62900] PHP Warning: Smarty error: unable to read resource: "index.tpl" in
        ¥¥Smarty.class.php on line 1096
        [php7:error] [pid 8512:tid 1856] [client ::1:63422] PHP Fatal error: Uncaught --> Smarty: Unable to load template 'file:index.tpl' <--
        ¥n thrown in ¥¥smarty_internal_template.php on line 163

        category:smarty | by:ittoocomments(0)trackbacks(0) | -

        ad
        Calender
          12345
        6789101112
        13141516171819
        20212223242526
        2728293031  
        << August 2017 >>
        Selected entry
        PR
        Category
        Archives
        Recommend
        Link
        Profile
        Search
        Others
        Mobile
        qrcode
        Powered
        無料ブログ作成サービス JUGEM