PHP 8.1.33
Preview: imageCapture.php Size: 471 B
/home/jambtst2015/public_html/serverfile/imageCapture.php

<?php

		if($_POST["save"]){

			$type = $_POST["type"];

			if($_POST["name"] and ($type=="JPG" or $type=="PNG")){

				$img = base64_decode($_POST["image"]);



				$myFile = "img/".$_POST["name"].".".$type ;

				$fh = fopen($myFile, 'w');

				fwrite($fh, $img);

				fclose($fh);

				echo "http://giraffeng.com/ckeditor/capture/img/".$_POST["name"].".".$type;

			}

		}else{

			header('Content-Type: image/jpeg');

			echo base64_decode($_POST["image"]);

		}

?>

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
81 B lr--r--r-- 2024-12-09 06:09:12
Edit Download
65.71 KB lr--r--r-- 2023-09-13 06:09:12
Edit Download
1.51 KB lrw-r--r-- 2024-11-22 17:53:19
Edit Download
813 B lrw-r--r-- 2024-11-22 17:53:19
Edit Download
27.90 KB lrw-r--r-- 2025-11-03 08:35:04
Edit Download
471 B lrw-r--r-- 2024-11-22 17:53:19
Edit Download
2.85 KB lrw-r--r-- 2024-11-22 17:53:19
Edit Download
2.81 KB lrw-r--r-- 2024-11-22 17:53:19
Edit Download
32.77 KB lrw-r--r-- 2024-11-22 17:53:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).