04-15-2009
after adding it,I am still not getting the image.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Anybody knows how to write a script to
open a file and store the weekday(mon-sun) on first line and current datetime on
the second line of the file.
If file doesn't exist, create a new one and store the weekday and current datetime.
If it already exists, open it and get both... (2 Replies)
Discussion started by: k_oops9
2 Replies
2. Programming
Can you help me with my code?
I wrote a Java program and ran it in gdb, the debugger said that :
(gdb) run handhelditems 1 1000
Starting program: /home/wqq/crawl/handhelditems/crawl_what_i_want handhelditems 1 1000
Program received signal SIGPWR, Power fail/restart. (2 Replies)
Discussion started by: cf.george
2 Replies
3. Shell Programming and Scripting
Hey guys! This is my first post, as im new here :S
I have a simple problem for a big program.
We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has to do with the syntax, as the person who made it is not a linux pro. I... (3 Replies)
Discussion started by: Drags111
3 Replies
4. Programming
Hi Guys,
I am working with Solaris 9 and we are developing the application which will work on different OS.So we develop the GUI using JAVA swings...
we want to display a Splash screen before starting the installation of the application...
1st we develop our application for windows and it is... (1 Reply)
Discussion started by: smartgupta
1 Replies
5. Shell Programming and Scripting
Hi,
I have
TDATE=$(date '+%b %d')
That stores "Sep 01" in the TDATE.
How I can store "Sep 1"?
Thanks in advance (3 Replies)
Discussion started by: dipeshvshah
3 Replies
6. Red Hat
I re-installed grub on /dev/sdb on a 3ware raid machine and now the grub splash screen is not displayed when booting. Server when boots up comes and halt in the grub menu and I need to manually load kernel and initrd to get the machine up. I have not changed any grub setting.
I used the command... (0 Replies)
Discussion started by: anil510
0 Replies
7. Emergency UNIX and Linux Support
Hi all,
I am customizing the Xubuntu 12.04 live cd..
Using uck-gui , i extracted the iso file and mounted in a location. Can anyone please help me out how to proceed with removing the splash screen ( the screen that gives loading image with xubuntu logo) or to change the logo that is in the... (1 Reply)
Discussion started by: selvarajvs
1 Replies
8. UNIX for Advanced & Expert Users
Hi all,
I am customizing the Xubuntu 12.04 live cd..
Using uck-gui , i extracted the iso file and mounted in a location. Can anyone please help me out how to proceed with removing the splash screen ( the screen that gives loading image with xubuntu logo) or to change the logo that is in... (1 Reply)
Discussion started by: selvarajvs
1 Replies
9. Shell Programming and Scripting
Hello,
I have a file temp.txt with the below contents :
Sep 9 03:04:51 adcsdp01 MAPDR2_00: Unable to open trace file adpstartarv.log. (Error 110 Resource temporarily unavailable)
Sep 9 03:05:35 adcsdp01 MAPDR2_00: SAP Service ADPMR2_00 successfully started.
Sep 9 03:04:51 adcsdp01... (7 Replies)
Discussion started by: rahul2662
7 Replies
10. UNIX for Beginners Questions & Answers
Hi there.
I used to use linux a lot a number of years ago but it has been quite a while so ?I really consider myself a beginner again.
I have an old IBM eServer X Series 335 machine and I want to get it back up and running for a number of reasons. I knew that one of the SCSI drives was bad and... (2 Replies)
Discussion started by: filch2
2 Replies
LEARN ABOUT PHP
image_type_to_mime_type
IMAGE_TYPE_TO_MIME_TYPE(3) 1 IMAGE_TYPE_TO_MIME_TYPE(3)
image_type_to_mime_type - Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype
SYNOPSIS
string image_type_to_mime_type (int $imagetype)
DESCRIPTION
The image_type_to_mime_type(3) function will determine the Mime-Type for an IMAGETYPE constant.
PARAMETERS
o $imagetype
- One of the IMAGETYPE_XXX constants.
RETURN VALUES
The returned values are as follows
Returned values Constants
+----------------------------------------+-------------------------------+
| $imagetype | |
| | |
| | Returned value |
| | |
+----------------------------------------+-------------------------------+
| | |
| IMAGETYPE_GIF | |
| | |
| | |
| | image/gif |
| | |
| | |
| IMAGETYPE_JPEG | |
| | |
| | |
| | image/jpeg |
| | |
| | |
| IMAGETYPE_PNG | |
| | |
| | |
| | image/png |
| | |
| | |
| IMAGETYPE_SWF | |
| | |
| | |
| | application/x-shockwave-flash |
| | |
| | |
| IMAGETYPE_PSD | |
| | |
| | |
| | image/psd |
| | |
| | |
| IMAGETYPE_BMP | |
| | |
| | |
| | image/bmp |
| | |
| | |
| IMAGETYPE_TIFF_II (intel byte order) | |
| | |
| | |
| | image/tiff |
| | |
| | |
|IMAGETYPE_TIFF_MM (motorola byte order) | |
| | |
| | |
| | image/tiff |
| | |
| | |
| IMAGETYPE_JPC | |
| | |
| | |
| | application/octet-stream |
| | |
| | |
| IMAGETYPE_JP2 | |
| | |
| | |
| | image/jp2 |
| | |
| | |
| IMAGETYPE_JPX | |
| | |
| | |
| | application/octet-stream |
| | |
| | |
| IMAGETYPE_JB2 | |
| | |
| | |
| | application/octet-stream |
| | |
| | |
| IMAGETYPE_SWC | |
| | |
| | |
| | application/x-shockwave-flash |
| | |
| | |
| IMAGETYPE_IFF | |
| | |
| | |
| | image/iff |
| | |
| | |
| IMAGETYPE_WBMP | |
| | |
| | |
| | image/vnd.wap.wbmp |
| | |
| | |
| IMAGETYPE_XBM | |
| | |
| | |
| | image/xbm |
| | |
| | |
| IMAGETYPE_ICO | |
| | |
| | |
| | image/vnd.microsoft.icon |
| | |
+----------------------------------------+-------------------------------+
EXAMPLES
Example #1
image_type_to_mime_type(3) example
<?php
header("Content-type: " . image_type_to_mime_type(IMAGETYPE_PNG));
?>
NOTES
Note
This function does not require the GD image library.
SEE ALSO
getimagesize(3), exif_imagetype(3), exif_read_data(3), exif_thumbnail(3).
PHP Documentation Group IMAGE_TYPE_TO_MIME_TYPE(3)