SOLR is a JAVA application but you can access it using any language that provides HTTP GET/POST functionality.
for your need you should refer to http://wiki.apache.org/solr/DataImportHandler
but before jumping on the Indexing part go through the tutorial at lucene.apache.org /solr /tutorial.html