Jump to content

[SOLVED] find files in a directory


samoht

Recommended Posts

very cool now how can I push them into and array called $attachments?

 

I have:

 

<?
$f=1;
$fdate = "invoices/*-invoice_".date('m-d-Y').".doc";
foreach (glob("$fdate") as $filename) {
	echo '<input type="hidden" id="att'.$f.'" name="att'.$f.'" value="'.$filename.'"> '. "\n";
	$f++;
}

which works fine for putting the files into hidden inputs - but I need to have them in an array

??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.