|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Installing PEAR (cache)
I downloaded the PEAR cache package and unzipped. Now what do I do with those files and to use it in my php code can I just use "include 'Cache/DB.php';" in my code?? I got this line of code from a book. thanks for any help.
|
|
#2
|
|||
|
|||
|
RE: Installing PEAR (cache)
ok, I finally figured out how to install the PEAR db (I'm guessing you just have to double click the "go-pear.bat" file and follow the instructions).
now I have another problem. I get an error when I try to use fetchRow(). this is the error I am getting: Fatal error: Call to undefined function: fetchrow() in C THIS IS MY CODE. $cache = new Cache_DB('file',array('cache_dir'=>'.','filename_prefix'=>'quiery_'),86400); $ab = $cache->query("SELECT * FROM service"); while ($row = $ab->FetchRow()) { echo "hi there"; } |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Installing PEAR (cache) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|