summaryrefslogtreecommitdiff
path: root/jpeg_metadata_tk
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-08-02 20:23:07 +0000
committerChristian Fowler <spider@viovio.com>2007-08-02 20:23:07 +0000
commit53e5aed2023584c3d6b8245b09018c57304e3115 (patch)
treeb6febf92016e76803d1f733f6a4713202e17bd0b /jpeg_metadata_tk
parent1abee6471faf18e65d9299fdc1861109fb6603bb (diff)
downloadutil-53e5aed2023584c3d6b8245b09018c57304e3115.tar.gz
util-53e5aed2023584c3d6b8245b09018c57304e3115.tar.bz2
util-53e5aed2023584c3d6b8245b09018c57304e3115.zip
convert echo's to error_logs
Diffstat (limited to 'jpeg_metadata_tk')
-rw-r--r--jpeg_metadata_tk/JPEG.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/jpeg_metadata_tk/JPEG.php b/jpeg_metadata_tk/JPEG.php
index ddbb8ba..2004192 100644
--- a/jpeg_metadata_tk/JPEG.php
+++ b/jpeg_metadata_tk/JPEG.php
@@ -79,7 +79,7 @@ function get_jpeg_header_data( $filename )
if ( ! $filehnd )
{
// Could't open the file - exit
- echo "<p>Could not open file $filename</p>\n";
+ error_log( "Could not open file $filename" );
return FALSE;
}
@@ -91,7 +91,7 @@ function get_jpeg_header_data( $filename )
if ( $data != "\xFF\xD8" )
{
// No SOI (FF D8) at start of file - This probably isn't a JPEG file - close file and return;
- echo "<p>This probably is not a JPEG file</p>\n";
+ error_log( "This probably is not a JPEG file" );
fclose($filehnd);
return FALSE;
}
@@ -236,7 +236,7 @@ function put_jpeg_header_data( $old_filename, $new_filename, $jpeg_header_data )
if ( strlen($segment['SegData']) > 0xfffd )
{
// Could't open the file - exit
- echo "<p>A Header is too large to fit in JPEG segment</p>\n";
+ error_log( "A Header is too large to fit in JPEG segment" );
return FALSE;
}
}
@@ -250,7 +250,7 @@ function put_jpeg_header_data( $old_filename, $new_filename, $jpeg_header_data )
if ( ! $newfilehnd )
{
// Could't open the file - exit
- echo "<p>Could not open file $new_filename</p>\n";
+ error_log( "Could not open file $new_filename" );
return FALSE;
}
@@ -970,4 +970,4 @@ $GLOBALS[ "JPEG_Segment_Descriptions" ] = array(
-?> \ No newline at end of file
+?>