Hello,
Our group is just starting to get into UNIX here. We are former REXX users on a VM Mainframe. Can someone point me to the documentation to read a file and write a file in a Unix Shell Script or does this have to be done in another language?
Thank you in advance...
Dave (3 Replies)
I have a zipped file that is ~ 10GB. I tried tarring it off to a tape, but I receive:
tar: <filename> too large to archive. Use E function modifier.
The file is stored on a UFS mount, so I was unable to use ufsdump.
What other options do I have? (I don't have a local file system large... (3 Replies)
Hey Guys,
I was wondering if someone would give me a hand with an issue I'm having, let me explain the situation:
I have a file that is constantly being written to and read from with updated lines:
# cat activity.file
activity1
activity2
activity3
activity4
activity5
This file... (2 Replies)
Is there a command in shell-script that I can use that copies a string or writes it to many files? Say I have files a, b and c and I want to copy or write the text "Hallo, I am a newbie!" to all these files? I know I can do echo "Hallo, I am a newbie!" > a but this only copies it to one file. How... (2 Replies)
Hello:
I have the following code:
----------------------------------
open (OUTPUT_FILE, ">>/usr/users/rovolis/PREPAID/CC/TCG/PP.$cyear$cmonth$cday.txt")||die "$!";
82 open (OUTPUT_FILE2, ">>/usr/users/rovolis/PREPAID/CC/TCG/PR.$cyear$cmonth$cday.txt")||die "$!";
83 # ... (0 Replies)
i've always been of the mind that having to write to disk is very sloppy and dirty. i personally hate this.
so i wonder, is there a way to have a shell script/program write to memory and access whatever it has in memory whenever it wants. pretty much treat memory like hard disk.
can... (2 Replies)
I'm trying to understand the difference between o_direct flag of open system call and dax (direct access) with ext4 filesystem.
According to my understanding both bypass page cache.
But I'm still unclear about the crucial difference between these 2 techniques. If there is a huge difference... (1 Reply)
Discussion started by: BHASKAR JUPUDI
1 Replies
LEARN ABOUT PHP
exif_thumbnail
EXIF_THUMBNAIL(3) 1 EXIF_THUMBNAIL(3)exif_thumbnail - Retrieve the embedded thumbnail of a TIFF or JPEG imageSYNOPSIS
string exif_thumbnail (string $filename, [int &$width], [int &$height], [int &$imagetype])
DESCRIPTION exif_thumbnail(3) reads the embedded thumbnail of a TIFF or JPEG image.
If you want to deliver thumbnails through this function, you should send the mimetype information using the header(3) function.
It is possible that exif_thumbnail(3) cannot create an image but can determine its size. In this case, the return value is FALSE but
$width and $height are set.
PARAMETERS
o $filename
- The name of the image file being read. This image contains an embedded thumbnail.
o $width
- The return width of the returned thumbnail.
o $height
- The returned height of the returned thumbnail.
o $imagetype
- The returned image type of the returned thumbnail. This is either TIFF or JPEG.
RETURN VALUES
Returns the embedded thumbnail, or FALSE if the image contains no thumbnail.
EXAMPLES
Example #1
exif_thumbnail(3) example
<?php
if (array_key_exists('file', $_REQUEST)) {
$image = exif_thumbnail($_REQUEST['file'], $width, $height, $type);
} else {
$image = false;
}
if ($image!==false) {
header('Content-type: ' .image_type_to_mime_type($type));
echo $image;
exit;
} else {
// no thumbnail available, handle the error here
echo 'No thumbnail available';
}
?>
SEE ALSO exif_read_data(3), image_type_to_mime_type(3).
PHP Documentation Group EXIF_THUMBNAIL(3)