PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- //show_image.php
- require_once "../my_scripts/app_config.php";
- require_once "../my_scripts/database_connection.php";
- try {
- handle_error("not indicated image to download");
- }
- $image_id = $_REQUEST['image_id'];
- handle_error("not find this picture", "not find picture with id " . $image_id);
- }
- echo $image['image_data'];
- }
- catch (Exception $exc) {
- handle_error ("When you upload your image there was an error", "Error in upload: " . $exc->getMessage());
- }