1. 程式人生 > >PHP:Fatal error: Class 'COM' not found in … 的解決辦法

PHP:Fatal error: Class 'COM' not found in … 的解決辦法

1.檢查php目錄ext資料夾下面php_com_dotnet.dll是否存在

2.在php.ini裡面加入以下語句:

    [PHP_COM_DOTNET]     extension=php_com_dotnet.dll     如圖所示:     3.php.ini中設定     com.allow_dcom = true 4.PHP 5.4.5以前的版本,只需要在php.ini中把com.allow_dcom = true開啟就可以了,但是5.4.5版本以後,PHP把com/dotnet 模組整合到了一個單獨的擴充套件中,所以需要在php.ini中加一行擴充套件extension=php_com_dotnet.dll,是加一行,不是開啟,預設配置檔案中沒有這一行的,然後重啟IIS或Apache,再次執行就正常了!

相關推薦

PHPFatal error: Class 'COM' not found in … 的解決辦法

1.檢查php目錄ext資料夾下面php_com_dotnet.dll是否存在 2.在php.ini裡面加入以下語句:     [PHP_COM_DOTNET]     extension=php_com_dotnet.dll     如圖所示:     3.php.in

nginx+php+memcache Fatal error: Class 'Memcache' not found

安裝過程: (nginx+php已經安裝完成,僅寫與memcache相關步驟) [[email protected] src]# yum install libevent libevent-devel [[email protected] src]# w

linux 下 Fatal error: Class ‘mysqli’ not found in

linux php5 erro all nbsp csdn -m 我不知道 mysql 先試用這種方法 http://blog.csdn.net/u010429424/article/details/43063211 我不知道自己安裝的php 沒他們路徑,所以用了以下這種方

Class ‘mysqli’ not found in解決辦法

數據 出現 代碼 mysq name l數據庫 dll 數據庫 .dll 在使用 $conn = new mysqli($servername, $username, $password); 連接msql數據庫的時候出現錯誤:【Fatal error: C

svnmanager1.09:Fatal error: Class 'PEAR_ErrorStack' not found

之前使用Apache2.4.16+SVN1.7.9+PHP5.6.20+MySQL5.7+SVNManager1.09  一直沒有問題,但是因為安全原因, 升級Apache到2.4.25, PHP到5.6.30, SVN到1.8.17後,使用SVNManager1.09 遇

PHP錯誤 Deprecated: Function split() is deprecated in ... 解決辦法

本地測試的程式上傳到伺服器出現很多錯誤,Deprecated: Function split() is deprecated  查了原因是因為PHP的版本不同所導致的,本身程式開發的時候用的是PHP5.2以下版本,而現在空間上用的是PHP5.3的版本,很多PHP函式已經過時不

解決ndk-build : fatal error: 'iostream' file not found

出錯資訊如下: ./helloworld.h:1:10: fatal error: 'iostream' file not found #include <iostream>      

android studio 建立動畫時報錯Error: style attribute '@android:attr/windowExitAnimation' not found解決辦法

在編寫安卓動畫時,遇到了Error: style attribute '@android:attr/windowExitAnimation' not found的報錯style中的程式碼如下<!-- 進出場動畫都用到的anim style--> <s

解決 LLVM 錯誤 fatal error: ‘csignal’ file not found

/Users/exchen/Downloads/Unity-iPhone/Classes/main.mm:3:10: fatal error: ‘csignal’ file not found#include ^~~~~~~~~1 error generated.————————–解決方法:由於專案

無法查詢功能包路徑的解決辦法[rospack] Error : package 'chapter2_tuorials' not found

今天在ROS工作空間下建立功能包的時候遇到一個問題:當我找到我的工作空間(cd ~/dev/catkin_ws/src)之後,正確的輸入建立功能包命令$ catkin_create_pkg chapter2_tutorials std_msgs roscpp.顯示建立成功。如

Mac下安裝第三方模塊報錯‘sqlfront.h‘ file not found解決辦法

for found ins 解決辦法 第三方模塊 mssql erro ref div 1.軟件環境:     mac環境:10.11.6(15G31)     python: 3.6 2.問題:     sudo pip install pymssql 後出現下面問題:

sudo: npmcommand not found 問題解決辦法

body and bin install chmod pre usr ash -s 在輸入sudo npm install ... 出現sudo: npm:command not found的報錯提示的解決辦法: 建立軟鏈 sudo chmod -R 755 opt/no

Hexo - ERROR Local hexo not found in xxx

height AR spa 解決 idt .net HR 新的 wid 1.出現的問題   執行 hexo d 和 hexo g 時報錯。      此時可參考此鏈接或此鏈接 2.若上述鏈接不能解決問題,很可能是因為你的node.js的版本過低,請重新安裝更新的版本。   

Android Studioresource android:attr/dialogCornerRadius not found 出錯解決方案

報錯資訊: error: resource android:attr/dialogCornerRadius not found error: resource android:attr/fontVariationSettings not found error:

MFC專案中報錯fatal error LNK1561: 必須定義入口點”解決方法

編譯的時候,報錯:“fatal error LNK1561: 必須定義入口點”   解決方案1: 右鍵->屬性->連結器->高階->入口點,設定成:WinMainCRTStartup       解決方案2: 右鍵->屬性-&

MFC項目中報錯fatal error LNK1561: 必須定義入口點”解決方法

系統 窗口 sys mfc c項目 解決 方案 下拉框 屬性 編譯的時候,報錯:“fatal error LNK1561: 必須定義入口點” 解決方案1: 右鍵->屬性->鏈接器->高級->入口點,設置成:WinMainCRTStartup

關於class not found解決辦法

java.lang.NoClassDefFoundError一般是指在引用的類在當前專案的lib中不存在,這樣就會出現這樣的錯誤。這樣的錯誤解決的難度就在於如何確實所在的包,然後找到相應的jar檔案。來解決這一類的錯誤。解決這一類錯誤,大部分都有一個共同點。例如下面這個錯誤1. java.lang.Clas

Eclipse: class file editor: source not found 問題解決辦法

Eclipse: class file editor: source not found。。。。問題 在搜了很多資料之後,自己試驗總結了下面的辦法: 在eclipse編輯器中,當點選某個類時,想看一下這個類的具體實現,但是總是出現   Class File Edit

搭建Hexo部落格在git上執行 hexo d /hexo g 報錯:ERROR Local hexo not found in D:\hexo 解決

Hexo搭建部落格的時候,已經使用命令在cmd中下載了依賴包,但是執行 hexo d 和hexo g 報錯,報錯如截圖:ERROR Local hexo not found in D:\hexoERROR Try running:'npm install hexo --sav

Centos出現-bash: unzip: command not found解決辦法

沒有 找到 安裝 zip centos and 壓縮 command nbsp 利用unzip命令解壓縮的時候,出現-bash: unzip: command not found的錯誤。 unzip——命令沒有找到,其原因肯定是沒有安裝unzip。 利用一句命