Archive

Archive for March, 2012

XML to html table in php

March 7th, 2012 No comments

[code lang=”php”]
<?php
function xml_to_table($file){
$section = file_get_contents($file);

# $arr = json_decode($section);
$arr = new SimpleXMLElement($section);
echo "<table>";
echo "<tbody>";
echo "<tr>";
echo "<th>";
echo "Questions";
echo "</th>";
echo "</tr>";

foreach($arr as $k=>$v){
echo "<tr>";
echo "<td>";
echo "$v";
echo "</td>";
echo "</tr>";
}

echo "</tbody>";
echo "</table>";
}
#xml_to_table("http://letschat.info/wp-content/uploads/2012/03/questions.xml");
?>

[/code]

Categories: Uncategorized Tags:

Php script to for json to html table

March 4th, 2012 3 comments

A simple example of how to make a html table from a json list.

Read more…

Categories: Uncategorized Tags:

List of Facebook Questions

March 4th, 2012 No comments

Facebook questions from glassdoor.

Read more…

Categories: Uncategorized Tags:

Lucene Example in .net

March 1st, 2012 No comments
Categories: Uncategorized Tags:

How to setup github with tortoisegit

March 1st, 2012 No comments

Open up puttygen.exe and hit generate

Read more…

Categories: Uncategorized Tags: