php
Ubuntu lucid: downgrading to php 5.2
I'm attaching the shell script I used to do this...Slightly modified from other variations online. Obviously don't run this without understanding it- it will remove your existing php packages
Then if you need to install any additional php packages, just install them with ( notice the -t karmic option )
sudo aptitude install -t karmic php5-mysql php5-xdebug phpmyadminFor more info:
http://jtrancas.wordpress.com/2010/05/04/cakephp-1-1-and-php-5-3/
http://ubuntuforums.org/showthread.php?t=1459163&page=2
red5node alpha release
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);
?>