Browse Source

updates documentation

explains how to load Bibtex data from a dynamic string
pull/28/merge
Martin Monperrus 10 years ago
parent
commit
24c854a811
  1. 10
      bibtexbrowser-documentation.wiki

10
bibtexbrowser-documentation.wiki

@ -338,8 +338,18 @@ Add in ''bibtexbrowser.local.php'' (see "creating a bibtexbrowser.local.php" bel
define('BIBTEXBROWSER_ROBOTS_NOINDEX', true);
</pre>
====How to load Bibtex from a dynamic string?====
You can use the special ''php://memory'' feature as follows:
<pre>
$test_data = fopen('php://memory','x+');
fwrite($test_data, "@book{aKey,title={A Book},author={Jan Doe},publisher={Springer},year=2009}\n");
fseek($test_data,0);
$this->btb = new BibDataBase();
$this->btb->update_internal("inline", $test_data);
</pre>
=====Related tools=====
Old-fashioned:

Loading…
Cancel
Save