2013-06-01 86 views

回答

-1

你可以找到關於建設SQLCipher爲PHP here

+0

這是ubanutu操作系統是什麼如果我們有Windows操作系統 –

-1

試試這個,一旦安裝和PHP MODS啓用了WAMP(應該已經安裝)說明:

<?php 
try { 
    $db = new SQLite3("demo.db"); 
    $version = $db->query("PRAGMA cipher_version"); 
    if($version){ 
    var_dump($version->fetchArray()); 
    } else { 
    throw new Exception($db->lastErrorMsg()); 
    } 
    $db->close(); 
} 
catch (Exception $e){ 
    echo "Exception", $e->getMessage(), "\n"; 
} 
?> 
+0

這是用於sqlite而不是sqlcipher –