夢幻之旅

          DEBUG - 天道酬勤

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            671 隨筆 :: 6 文章 :: 256 評論 :: 0 Trackbacks

          Others] epp3.0 的CI自動完成插件 [復制鏈接]

          php debug:
          epp3報錯: no php executables defined 或
          Session could not be started. In order to generate debug information, please make sure that the debugger is properly configured as a php.ini directive.

          在php.ini中添加
          xdebug.auto_trace = On
          xdebug.remote_autostart = On
          xdebug.remote_enable = on
          xdebug.remote_host = localhost
          xdebug.remote_port = 9000
          xdebug.remote_mode = req
          xdebug.remote_handler = dbgp
          xdebug.profiler_enable = on
          xdebug.profiler_enable_trigger = off
          xdebug.profiler_output_name = cachegrind.out.%t.%p
          ; 工作目錄
          xdebug.profiler_output_dir = "e:/wamp/tmp"

           

          1.aparche 配置虛擬目錄:
          可以把epp3的workspace目錄配置為aparhce的虛擬目錄

          Alias /php/ "E:/workspace/php/"
          <Directory "E:/workspace/php/">   
            Options Indexes MultiViews   
            AllowOverride None   
            Order allow,deny   
            Allow from all 
          </Directory>

          訪問方式:
          http://localhost/php/項目/php頁面

           


          2.強制不緩存文件:
          在開發調試web的時候,經常會碰到因瀏覽器緩存(cache)而經常要去清空緩存或者強制刷新來測試的煩惱,提供下apache不緩存配置和nginx不緩存配置的設置。

          apache:
          首先確定配置文件httpd.conf中確已經加載mod_headers模塊。
          LoadModule headers_module modules/mod_headers.so
          我們可以根據文件類型來讓瀏覽器每次都從服務器讀取,這里測試用css、js、swf、php、html、htm這幾種文件。
          <FilesMatch “\.(css|js|swf|php|htm|html)$”>
          Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
          Header set Pragma "no-cache"
          </FilesMatch>

          nginx:
          location ~ .*\.(css|js|swf|php|htm|html )$ {
          add_header Cache-Control no-store;
          }

          posted on 2013-09-23 17:38 HUIKK 閱讀(346) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 宁波市| 天峻县| 博客| 蕲春县| 永州市| 佛山市| 若羌县| 瑞昌市| 贵阳市| 安西县| 客服| 天津市| 育儿| 岳普湖县| 呼和浩特市| 普洱| 张北县| 宁武县| 华池县| 黔江区| 习水县| 玉环县| 肇州县| 哈密市| 犍为县| 宁安市| 白河县| 上杭县| 隆德县| 安溪县| 乃东县| 福鼎市| 老河口市| 舞钢市| 镇江市| 穆棱市| 始兴县| 迭部县| 称多县| 静海县| 长子县|