Announcement - www.algalarosa.net
Posted by Al Galarosa @ 2008-10-26Hi, yesterday, October 26, 2008, http://www.algalarosa.net is finally opened. Here you can find source codes and sample projects to get you started with your small projects.
Enjoy, and have a nice day. 
PS: ill soon be posting articles and downloads..
Post Comment · Comments(2) · Read 19 Times
Php XML (RSS) Parser
Posted by Al Galarosa @ 2008-11-09If you want to show RSS (Really Simple Syndication) directly in your page. This snippet is for you, it directly fetches the data inside the xml of the rss feed. Here's the code <?php //uri of the rss feed $xml = ('http://vkvvlv.org $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); //get elements from "channel" $channel=$xmlDoc->getElementsByTagName('channel')->item(0); $channel_title = $channel->getElementsByTagName('title') ->item(0)->childNodes->item(0)->n...Read More
Tags: · Comments(2) | · Read 33 Times
Java MySQL connection
Posted by Al Galarosa @ 2008-11-04This tutorial helps you connect your java applications with MySQL. So here goes, you need a mysql connector/j found in this page. http://www.mysql.com And put the jar file inside this directory "jre/lib/ext". Should be around your java installation folder. And with a help of this simple java snippet, Connection conn = null; try { String url = "jdbc:mysql://localhost/databasename?user=username&password=yourpassword"; Class.forName ("com.mysql.jdbc.Driver").newInstance ()...Read More
Tags: · Comments(0) | · Read 16 Times
PHP and MySQL RSS feed
Posted by Al Galarosa @ 2008-10-30If you have a database driven site with regularly updated contents then it is a good idea to setup a RSS feed for your site. RSS (Really Simple Syndication) can be seen on almost every blog and websites this days. In this tutorial, ill assume that you already know PHP and MySQL. First, youll need PHP to declare an XML document. header("Content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; The "hea...Read More
Tags: · Comments(1) | · Read 47 Times
