I'm looking an alternative function to glob. I got this and it work perfectly.
<?php
$tipof = 'FACTURA';
$cliente = '455928';
$files = glob("$cliente-$tipof*.pdf");
foreach ($files as $rows): ?>
<td align="center"> <?php echo end((explode('-', str_replace('.pdf','', $rows)))); ?> </td>
<td align="center"> <?php echo $cliente ?> </td>
<td align="center"> <?php echo "<a target=_blank href="".$rows."">Ver</a>"; ?> </td>
</tr>
The file is in the project folder but how can I do if the file is in a URL? for example something like this: http://192.168.0.196:8080/pdf/
in that url my file is 455928-FACTURA-A106-8694-20171019.pdf
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…