duanqilupinf67040 2012-12-14 12:22
浏览 39

TideSDK中的php.ini和php扩展

i have installed tideSDK 1.3 beta and TideSDK developer. i look at in TideSDK module/win32/php/ext folder and there is a php_gd2.dll file. i want to add another extension like php_mbstring, but where is php.ini,php_mbstring in TideSDK? how do it works without php.ini at now?

  • 写回答

1条回答 默认 最新

  • dongzhuo3202 2013-02-04 19:40
    关注

    On my Mac, the php.ini file for my TideSDK is at /opt/php/lib

    I was able to get all phpinfo for my set up by doing this:

    <script type="text/php">
      function pinfo(){
        global $Ti;
    
        $fn = $Ti->Filesystem->getFile($Ti->Filesystem->getDesktopDirectory(), "phpinfo.txt");
    
        ob_start();
        phpinfo();
        $i = ob_get_clean();
        file_put_contents($fn, $i);
    
        return $i;
      }
    </script>
    
    <script type="text/javascript">
      var i = pinfo();
      document.write("<pre>" + i + "</pre>");
    </script>
    

    This outputs a some of the info to your app's window but you can see all of it by opening the "phpinfo.txt" file that was placed on your desktop.

    From this info you should be able to find anything you need to know about the php installation used by your TideSDK.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据