<?php// Set the headerheader("Content-type: image/jpeg");
// Start the sessionsession_start();
// Generate the 5 digits string$text = rand(10000,99999);
// Store the generated code into the _SESSION captcha$_SESSION['captcha'] = $text; // Define the Image Height & Width$width =...