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28fXYe8LOtNOoQZlBD36a12ZwZKS9DcmVhdG9yKBuq+V3oOhRPsezuc60Fe1xyD5zn95v+WzIT2dTQOgU3F8cpPj4KZW5kb2JqCjE1IDAgb2JqPDwvTyAocVaKvlJcYuUi0dhDu6ACmZQvxaiorou69lKxnQuF+xaLKS9QIC0xMzQwL1IgMy9MZW5ndGggMTI4L1UgKOfWzVmHJGN7QdY4ZBi+otYAAAAAAAAAAAAAAAAAAAAAKS9WIDIvRmlsdGVyL1N0YW5kYXJkPj4KZW5kb2JqCnhyZWYKMCAxNgowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDg4OTcgMDAwMDAgbiAKMDAwMDAwOTI0MiAwMDAwMCBuIAowMDAwMDAwMDE1IDAwMDAwIG4gCjAwMDAwMDI4NjMgMDAwMDAgbiAKMDAwMDAwMzUwMCAwMDAwMCBuIAowMDAwMDA0Nzk3IDAwMDAwIG4gCjAwMDAwMDQ5ODQgMDAwMDAgbiAKMDAwMDAwNTQ2NCAwMDAwMCBuIAowMDAwMDA5MzI5IDAwMDAwIG4gCjAwMDAwMDkyMDcgMDAwMDAgbiAKMDAwMDAwOTM3OSAwMDAwMCBuIAowMDAwMDA5NDM0IDAwMDAwIG4gCjAwMDAwMDk0NjcgMDAwMDAgbiAKMDAwMDAwOTU3MSAwMDAwMCBuIAowMDAwMDA5NzQ1IDAwMDAwIG4gCnRyYWlsZXIKPDwvU2l6ZSAxNi9Sb290IDEzIDAgUi9FbmNyeXB0IDE1IDAgUi9JRCBbPGZjOTRkOGI2ZTIxOTQ3NGNmYjU0MjUyZmI4YzE2MmViPjw1YmE3NGI3N2FlMzlhYzBhMjQ2NTY1MmJhY2U2YTU3Yz5dL0luZm8gMTQgMCBSPj4Kc3RhcnR4cmVmCjk4ODMKJSVFT0YK"; //Get File content from txt file //Decode pdf content $pdf_decoded = base64_decode ($pdf_content); //Write data back to pdf file $pdf = fopen ('test.pdf','w'); fwrite ($pdf,$pdf_decoded); //close output file fclose ($pdf); echo 'Done';
based on cHQ3c
Output for 5.3.0 - 7.2.0
Warning: fopen(test.pdf): failed to open stream: Permission denied in /in/dP8Jl on line 8 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/dP8Jl on line 9 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/dP8Jl on line 11 Done
Output for 4.3.2 - 5.2.17
Warning: fopen(test.pdf): failed to open stream: Permission denied in /in/dP8Jl on line 8 Warning: fwrite(): supplied argument is not a valid stream resource in /in/dP8Jl on line 9 Warning: fclose(): supplied argument is not a valid stream resource in /in/dP8Jl on line 11 Done
Output for 4.3.1
Warning: fopen(test.pdf) [http://www.php.net/function.fopen]: failed to create stream: Permission denied in /in/dP8Jl on line 8 Warning: fwrite(): supplied argument is not a valid stream resource in /in/dP8Jl on line 9 Warning: fclose(): supplied argument is not a valid stream resource in /in/dP8Jl on line 11 Done
Output for 4.3.0
Warning: fopen(test.pdf) [http://www.php.net/function.fopen]: failed to create stream: Read-only file system in /in/dP8Jl on line 8 Warning: fwrite(): supplied argument is not a valid stream resource in /in/dP8Jl on line 9 Warning: fclose(): supplied argument is not a valid stream resource in /in/dP8Jl on line 11 Done