I would like to save the pdf that is generated inside my server with different names depending on the client and the actual date.
$pdf = $dompdf->output();
file_put_contents("pedidos/saved.pdf", $pdf);
Actually is working but instead of using saved.pdf as the name of the file, I would like it to be the name of the client and the actual date. For example cocacola26-11-2012.pdf
I have the name of the client inside $nombrecliente. I have tried to do it in many ways without success. Thanks.
1 Answer