Thanks for your helps, balajesuri, Don Cragun and vgersh99!
Now I can save my csv file as csv file itself. and personally, i like one line code because it looks simple and not complex. So, i prefer to use Don Cragun's code. I used this code:
Because when i tried to run this code:
the output that i got is like this:
the header is written below the data. Would you tell me why it can be like that?
Hi i have wriiten a script which fetches the data from text file, and saves in the output in a text file itself, but i want that the output should save in different columns.
I have the output like:
For Channel:response_time__24.txt
1547 data points
0.339
0.299
0.448
0.581
7.380
... (1 Reply)
Hi
I need to execute a select statement in a solaris environment with oracle database. The select statement returns number of rows of data.
I need the data to be inserted into a CSV file with proper format. For that we normally use "You have to select all your columns as one big string,... (2 Replies)
Hi Unix gurus,
Maybe it is too much to ask for but please take a moment and help me out. A very humble request to you gurus. I'm new to Unix and I have started learning Unix. I have this project which is way to advanced for me.
File format: CSV file
File has four columns with no header... (8 Replies)
Hi,
I have a text file with the following format. Some of the fields are blank.
1234 3456 23 45464 327837283232 343434
5654353 34 34343 3434345 434242
....
....
....
I need to convert this file to a CSV file, like
1234, ,23, ... (3 Replies)
FILE_ID extraction from file name and save it in CSV file after looping through each folders
My files are located in UNIX Server, i want to extract file_id and file_name from each file .and save it in a CSV file. How do I do that?
I have folders in unix environment, directory structure is... (15 Replies)
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Hi, I am newbie in shell script.
I need your help to solve my problem.
Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file.
File1:
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Hi,
I have another problem. I want to sort another csv file by the first field.
result.csv
SourceFile,Airspeed,GPSLatitude,GPSLongitude,Temperature,Pressure,Altitude,Roll,Pitch,Yaw
/home/intannf/foto5/2015_0313_090651_219.JPG,0.,-7.77223,110.37310,30.75,996.46,148.75,180.94,182.00,63.92 ... (2 Replies)
Discussion started by: refrain
2 Replies
LEARN ABOUT PHP
gd_info
GD_INFO(3) 1 GD_INFO(3)gd_info - Retrieve information about the currently installed GD librarySYNOPSIS
array gd_info (void )
DESCRIPTION
Gets information about the version and capabilities of the installed GD library.
RETURN VALUES
Returns an associative array.
Elements of array returned by gd_info(3)
+-------------------+---------------------------------------------------+
| Attribute | |
| | |
| | Meaning |
| | |
+-------------------+---------------------------------------------------+
| GD Version | |
| | |
| | |
| | string value describing the installed libgd ver- |
| | sion. |
| | |
| FreeType Support | |
| | |
| | |
| | boolean value. TRUE if FreeType Support is |
| | installed. |
| | |
| FreeType Linkage | |
| | |
| | |
| | string value describing the way in which FreeType |
| | was linked. Expected values are: 'with freetype', |
| | 'with TTF library', and 'with unknown library'. |
| | This element will only be defined if FreeType |
| | Support evaluated to TRUE. |
| | |
| T1Lib Support | |
| | |
| | |
| | boolean value. TRUE if T1Lib support is |
| | included. |
| | |
| GIF Read Support | |
| | |
| | |
| | boolean value. TRUE if support for reading GIF |
| | images is included. |
| | |
|GIF Create Support | |
| | |
| | |
| | boolean value. TRUE if support for creating GIF |
| | images is included. |
| | |
| JPEG Support | |
| | |
| | |
| | boolean value. TRUE if JPEG support is included. |
| | |
| PNG Support | |
| | |
| | |
| | boolean value. TRUE if PNG support is included. |
| | |
| WBMP Support | |
| | |
| | |
| | boolean value. TRUE if WBMP support is included. |
| | |
| XBM Support | |
| | |
| | |
| | boolean value. TRUE if XBM support is included. |
| | |
| WebP Support | |
| | |
| | |
| | boolean value. TRUE if WebP support is included. |
| | |
+-------------------+---------------------------------------------------+
Note
Previous to PHP 5.3.0, the JPEG Support attribute was named JPG Support.
EXAMPLES
Example #1
Using gd_info(3)
<?php
var_dump(gd_info());
?>
The above example will output something similar to:
array(9) {
["GD Version"]=>
string(24) "bundled (2.0 compatible)"
["FreeType Support"]=>
bool(false)
["T1Lib Support"]=>
bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(false)
["JPEG Support"]=>
bool(false)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XBM Support"]=>
bool(false)
}
CHANGELOG
+--------+------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+------------------------------------------------+
| 5.5.0 | |
| | |
| | |
| | WebP Support added. |
| | |
| 5.3.0 | |
| | |
| | |
| | JPG Support attribute renamed to JPEG Support. |
| | |
+--------+------------------------------------------------+
SEE ALSO imagepng(3), imagejpeg(3), imagegif(3), imagewbmp(3), imagetypes(3).
PHP Documentation Group GD_INFO(3)