View Full Version : Bibtex/Latex and PHP

05-16-2011, 05:40 PM
does anyone have experience using Bibtex with PHP? I am working on a project where I must generate bibliographic entries in Bibtex formats on a page using information from a database.

Any way to do this?

05-16-2011, 05:47 PM
I don't believe there is any native way (built into PHP) for you to simply pull information from a database, feed it to a function, and be done with it.

You can do one of two things.

A) Try to obtain a pre-written class in PHP (http://lmgtfy.com/?q=bibtex+php+class)


B) Code your own

If you choose option B, you're basically going to be pulling information from your database and then using PHP's string functions (http://php.net/manual/en/ref.strings.php) to format it the correct way.

If you need help on any particular problem, or encounter a problem while coding, please post back your specific questions.