Skip to content

Monster Oasis

  • 浪況預測
  • KML2CSV
  • World Marathon
  • Privacy Policy

Month: May 2015

[PHP] Sample code : Berkeley DB , bdb , dba_open , db4 , key-value database ,

2015/05/13 by Monster
$id = dba_open("bdb4_tsid.db", "w", "db4");

if (!$id) { echo "dba_open failed\n"; exit; }

dba_replace("key", "This is an example!", $id);

if (dba_exists("key", $id)) {
        echo dba_fetch("key", $id);
        dba_delete("key", $id);
}

dba_close($id);

Screenshot 2015 05 13 20 28 39

 

 

Screenshot 2015 05 13 20 37 56

 

This is an example!
exist:
This is an example!
---> This is an example!

Categories DATABASE, Programming/php Tags bdb, DATABASE, php

PHP Regex Validation of Hexadecimal Values / check hex number

2015/05/10 by Monster
preg_match( '/^[A-F0-9]{15,18}/',$v)

 

Screenshot 2015 05 10 10 53 23

Categories Programming/php Tags php

2015.0501 福隆 繞一圈 路跑

2015/05/03 by Monster

RUnkeeper : http://runkeeper.com/user/rimmon/activity/560273441

2015 05 01 08 40 54 1

Read more

Categories Exercise Tags 福隆
© 2025 Monster Oasis • Built with GeneratePress