You quoted my correct code in your post last time but didn't use it, use my correct code.
Below code was going no where as it is just hanging for long times and i killed the script. Can you please let me know how can i capture error file as i am able to capture list_file.
I am able to capture list_file from the below code:
---------- Post updated at 01:43 PM ---------- Previous update was at 01:27 PM ----------
Quote:
Originally Posted by Corona688
That would have been nice to know three pages ago...
Btw when i am using this code with input file named ID which contains all 8 digit numbers and once the while loop is executed what is the file named inputfile from your command? if i execute the same script it says it cannot open input file.
hi
i am having four files in a directory.like
1)sampleRej
2)exampleRej
3)samplemain
4)examplemain
my requirement is i have to search for the rejected files (sampleRej,exampleRej) in a directory.if these files in that directory then i have to delete the main files... (3 Replies)
I have a file <filestodelete> containing names of files to to be deleted from a directory <filesstore>.
I want a script file which accptes the <filestodelete> and also the location of the directory(<filestore>) and deletes all files matching.
Thanks in Advance.. (3 Replies)
I need to write a shell script for below scenario
My input file has data in format:
qwerty0101TWE 12345 01022005 01022005 datainala alanfernanded 26
qwerty0101mXZ 12349 01022005 06022008 datainalb johngalilo 28
qwerty0101TWE 12342 01022005 07022009 datainalc hitalbert 43
qwerty0101CFG 12345... (19 Replies)
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall:
I regularly need to delete files from many directories.
A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Help needed urgently please.
I have a large file - a few hundred thousand lines.
Sample
CP START ACCOUNT
1234556
name 1
CP END ACCOUNT
CP START ACCOUNT
2224444
name 1
CP END ACCOUNT
CP START ACCOUNT
333344444
name 1
CP END ACCOUNT
I need to split this file each time "CP START... (7 Replies)
I will simplify the explaination a bit, I need to parse through a 87m file -
I have a single text file in the form of :
<NAME>house........
SOMETEXT
SOMETEXT
SOMETEXT
.
.
.
.
</script>
MORETEXT
MORETEXT
.
.
. (6 Replies)
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Hi GUys
I have a script where i am counting the number of files that the user has read permissions to in a folder . They are asked for this folder at the start
if they dont enter anything then i want to be able to do the search on the current directory, can you help me with that part please... (25 Replies)
Hello, my first thread here.
I've been searching and fiddling around for about a week and I cannot find a solution.:confused:
I have been converting all of my home videos to HEVC and sometimes the files end up smaller and sometimes they don't. I am currently comparing all the video files... (5 Replies)
Discussion started by: Josh52180
5 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)