if i have a string ( containing pdf file ) is possible to make a "virtual" file to avoid writting on hard disk, to be later used on a function who requires a existing file?
// theorical code
$file=stringToVirtualFile($string);
require($file);
You can use the special php://memory to have a file handle that reference in-memory data instead of data written to a file. You may also use php://temp to have a file backed memory store (where the file will be written to disk if it exceeds 2MB by default).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With