I want to forward a file with a known path to a script that was intended for $_FILES["uploadfile"]. So how to get this code working:
<?PHP
$uplfile = "somefileinscriptdirectory.txt";
echo $uplfile["name"];
echo $uplfile["size"];
?>
Is there a way to get a file handle on the txt-File to work with like you would with a $_FILES[...]?
Thank you in advance!
Have you tried fileinfo ( which is apparently native since php 5.3.0 )? http://us1.php.net/manual/fr/function.finfo-file.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.