I need to execute some commands and import results in rrd file... Is it possible with php or I need to use perl?

I found some tuts about reading rrd files but I can't find anything about importing data in rrd.

I know that this doesn't have anything with web programming but...