2011-08-27 110 views
7

沒有發現對於這條線致命錯誤:類「內存緩存」在

$MEM = new Memcache; 

我得到這個錯誤「致命錯誤:類‘內存緩存’中找不到的......」。我把這個放在我的php.ini中,但仍然沒有成功。

extension=memcache.so 

這是否意味着我的虛擬主機沒有memcached?我是否必須下載memcached並將任何內容上傳到服務器才能正常工作?

+0

是的,您是否檢查:「php -i | grep -i memcache」(不帶引號)來查看它是否存在? –

+0

我不熟悉這些命令,我​​該怎麼做才能看到這些? – user892134

+0

對不起,你有一臺Linux?視窗?該命令可以在shell命令中執行(如果您願意,可以使用命令行) –

回答

5

下面是Justhost的

John H.: [6:28:55 PM] Welcome to our real-time support chat. My name is John H. Please be patient, as I may be assisting multiple customers. Also, please provide your main domain name, and a brief description of the problem or request. Thank you. 
ME: [6:28:55 PM] is memcache enable for share host? 
[6:30:01 PM] hi 
John H.: [6:30:31 PM] Let me see what I can find out for you. Just one moment please. 
ME: [6:30:37 PM] thanks 
John H.: [6:41:04 PM] I have asked an L2, and am waiting for a response. sorry for the delay. 
ME: [6:41:39 PM] no problem 
John H.: [6:41:49 PM] no, it's not enabled. 
[6:41:52 PM] we don't support it 
ME: [6:42:11 PM] ok thank you 

的答覆我會建議下一次使用聊天功能,你還是會爲了一個新的共享主機,並要求代表他們是否有memcached的實現。

+0

難怪爲什麼它不工作謝謝你的信息 – Tech4Wilco

相關問題