What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-29 13:13:03
php create temporary file
// Works on Native Server // $tmp = tmpfile(); // $newfilename = 'newfile.txt'; // fwrite($tmp, "This is a sample string as a content."); // fseek($tmp, 0); // Works on Google App Engine $dir = sys_get_temp_dir(); $tmp = tempnam($dir, "foo... Add solution -
Javascript 2021-08-28 04:35:02
How to download canvas image into database
//ajax;;;;;;;;;; save.click((e)=>{ var data = canvas.toDataURL('image/png'); $.post('save.php',{'img':data},function(e){ console.log(e); }) }) //php <?php $data = $_POST['img']; $file = "data/file.png"; // where you wan... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5