Button to execute a stored procedure

Hello

I am trying to create a button that executes a stored procedure, previously created in oracle. I am using a button (php) with the following sentence:

$fechaactual = getdate();
$control=‘BEGIN FACT_TERC_AS(’$fechaactual’); END;’;
sc_exec_sql($control);

But i am getting an error in the variable when compiling, I would appreciate your help

$control=“BEGIN FACT_TERC_AS(’$fechaactual’); END;”;
or
$control=‘BEGIN FACT_TERC_AS(’.$fechaactual.’); END;’;