[PHP]Confusion About WordPress Cache

2010-12-17 Thread
I am using WordPress Cache to cache data retrieved from database, using WP_Cache . After I used wp_cache_set to set some data in the cache, I try to get it by wp_cache_get in ANOTHER post request. However, it failed to retrieve the data I h

[PHP]any way to iterate the fields in a class

2010-11-25 Thread
Actually, what I am seeking is how to assign values to the fields in a class via an array. I have tried like this. However failed. I have a class. *class book{ var name;* *var price;* *}* * * And I have got an array. *$array=array('name'=>'harry potter','price'=>'$122');* By using function *extra

[PHP] database design in a survey/poll system

2010-11-17 Thread
I plan to design a small survey/poll system similar to polldaddy . And I have some confusion in designing the database for the multiple/single choice questions. Of course, it is possible to use one table to store the question title and another table to store the choice item

[PHP] confusion about the file extension for php interpreter to interpret

2010-11-13 Thread
Apache defaultly use php interpreter to execute files ended with '.php' extension. How can I change this rule?Can I change the default extension to any arbitrary name? Such as .PHP or .Php and so on. And I am using Ubuntu/Linux, Apache2 and php5. Thanks very much!

[PHP] question about preventing polling for more than once

2010-11-12 Thread
I noticed that some websites such as polldaddy has fascinating poll service. And I am just curious about how it prevents user from polling the same poll for more than once. Or more accurately, I am a dynamic IP user. And I found that if I have polled once for

[PHP]About Character Set

2010-10-17 Thread
There is a "download" directory(to provide download links) in my site. http://vedaclub.org/download/ Some of the filenames contain Chinese characters, which, however cannot be recognized. Is there anything I can do to solve problem? Thanks in advance!

[PHP] searching for application like Google Doc

2010-10-14 Thread
Is there any application like Google Doc(here I mean the spreadsheet). thanks