Jump to content
php.lv forumi

Unload Directory Using Php


andre

Recommended Posts

kaa var uplodot direktorijas izmantojot php skriptu

 

piemeeram, vailus var uploadot taa :

 

$filedata = stat($path.$filename);

$filesize = $filedata[7];

$ft = gettype($path.$filename);

header("Content-Type: $ft[1]");

header("Content-Length: $filesize");

header("Content-Disposition: attachment; filename=$filename");

readfile($path.$filename);

exit;

Link to comment
Share on other sites

×
×
  • Create New...