夢幻之旅

          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 閱讀(345) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 罗平县| 鱼台县| 乐至县| 绵竹市| 南川市| 子长县| 西吉县| 丹棱县| 综艺| 农安县| 保山市| 子洲县| 桐柏县| 休宁县| 宜川县| 威信县| 乐昌市| 得荣县| 武陟县| 开封市| 郓城县| 池州市| 马鞍山市| 区。| 临高县| 开封市| 吉木乃县| 温州市| 库伦旗| 若尔盖县| 肇州县| 清涧县| 手游| 利川市| 永宁县| 肇东市| 汕头市| 绥江县| 庄浪县| 澜沧| 太原市|