I continually get a parse error on line
4 with no specific error message.
It seems odd that I get that error right on the call to extend the class.
This is my first experince I have with extending classes and I think I'm doing it right. Any ideas when I'm getting the error.
Thanks
<?php
require_once("fpdf.php");
class_PDF extends FPDF
{
_function_RoundedRect($x,_$y,_$w,_$h,$r,_$style_=_'')
____{
________$k_=_$this->k;
________$hp_=_$this->h;
________if($style=='F')
____________$op='f';
________elseif($style=='FD'_or_$style=='DF')
____________$op='B';
________else
____________$op='S';
________$MyArc_=_4/3_*_(sqrt(2)_-_1);
________$this->_out(sprintf('%.2f %.2f m',($x+$r)*$k,($hp-$y)*$k_));
________$xc_=_$x+$w-$r_;
________$yc_=_$y+$r;
________$this->_out(sprintf('%.2f %.2f l',_$xc*$k,($hp-$y)*$k_));
________$this->_Arc($xc_+_$r*$MyArc,_$yc_-_$r,_$xc_+_$r,_$yc_-_$r*$MyArc,_$xc_+_$r,_$yc);
________$xc_=_$x+$w-$r_;
________$yc_=_$y+$h-$r;
________$this->_out(sprintf('%.2f %.2f l',($x+$w)*$k,($hp-$yc)*$k));
________$this->_Arc($xc_+_$r,_$yc_+_$r*$MyArc,_$xc_+_$r*$MyArc,_$yc_+_$r,_$xc,_$yc_+_$r);
________$xc_=_$x+$r_;
________$yc_=_$y+$h-$r;
________$this->_out(sprintf('%.2f %.2f l',$xc*$k,($hp-($y+$h))*$k));
________$this->_Arc($xc_-_$r*$MyArc,_$yc_+_$r,_$xc_-_$r,_$yc_+_$r*$MyArc,_$xc_-_$r,_$yc);
________$xc_=_$x+$r_;
________$yc_=_$y+$r;
________$this->_out(sprintf('%.2f %.2f l',($x)*$k,($hp-$yc)*$k_));
________$this->_Arc($xc_-_$r,_$yc_-_$r*$MyArc,_$xc_-_$r*$MyArc,_$yc_-_$r,_$xc,_$yc_-_$r);
________$this->_out($op);
____}
____function__Arc($x1,_$y1,_$x2,_$y2,_$x3,_$y3)
____{
________$h_=_$this->h;
________$this->_out(sprintf('%.2f %.2f %.2f %.2f %.2f %.2f c ',_$x1*$this->k,_($h-$y1)*$this->k,
____________$x2*$this->k,_($h-$y2)*$this->k,_$x3*$this->k,_($h-$y3)*$this->k));
____}
}
$pdf=new_PDF();
$pdf->Open();
$pdf->AddPage();
$pdf->SetLineWidth(0.5);
$pdf->SetFillColor(192);
$pdf->RoundedRect(70,_30,_68,_46,_3.5,_'DF');
$pdf->Output();
?>