i solved the problem by myself....
function GetMoonPhase($timestamp) {
$days = abs(gregorianToJD(1, 12, 1975) - gregorianToJD(date("m",$timestamp),date("d",$timestamp), date("Y",$timestamp)));
$part = $days%$moonphase;
if ($part==0) $part = 29;
return $part;
}
$timestamp is a unix-timestamp of the day you want to calculate the moon - phase.
1 .... newmoon
2-14.. increase
15.... full moon
16-29. decrease
maybe i could help some people...