What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-08-28 14:35:01
create and download text file in php
$file = "test.txt"; $txt = fopen($file, "w") or die("Unable to open file!"); fwrite($txt, "lorem ipsum"); fclose($txt); header('Content-Description: File Transfer'); header('Content-Disposition: attachment; filenam... Add solution -
PHP 2021-08-27 22:36:01
how to search pdf in folder using php
>"); if (is_array($a_filter)){ $j++; $a_chunks[$j]["filter"] = $a_filter[0]; $a_data = getDataArray($obj,"stream\r\n","endstream"); if (is_array($a_data)){ $a_chunks[$j]["data"] = substr($... Add solution -
TypeScript 2021-08-27 10:59:01
read/write linked lists to file
#include <stdio.h> #include <stdlib.h> typedef struct Node { char name[50]; int age; struct Node *next; }Node; // user-defined functions void printPetRecord(Node *head); void writeToFile(FILE *fptr, Node *head); // main() int ma... Add solution