php
red5node alpha release
Submitted by benl on Tue, 12/29/2009 - 22:54
Attached is the first alpha release of red5node, a little present for the holidays for any drupal webcam developer :)
Unlike the pre-alpha released earlier, this one should be as secure as the components it stands upon- Drupal, Flex, Services & AMFPHP. If you see how it isn't please let me know as I'd like to address it.
The major differences from the prior release are behind the scenes but very substantial- namely fixing gaping security holes. Please try this module out now.
Drupal taxonomy snippet - get all terms for a vocabulary
I was unable to find this anywhere online, but it's a pretty basic one - get all terms for a vocabulary and create a list with their names...
<?php
/*
* Get all terms for a vocabulary
*
* @author Benjamin Lowenstein, Colingo Labs LLC
*/
// set vocabulary id #
$vid = 1;
$sql = "SELECT * FROM {term_data} WHERE vid = %d";
$result = db_query(db_rewrite_sql($sql), $vid);
$terms = array();
while ($data = db_fetch_object($result)){
$term = $data->name;
$terms[] = $term;
}
echo theme_item_list($terms);
?>