Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory How to check which type of storage is used in unix Post 302566447 by galanom on Thursday 20th of October 2011 11:14:19 AM
Old 10-20-2011
it says "PHP Code" in the tags
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check a column contain numeric or char data type ??

I have a file called clientname_filename.csv whose contents are like col1|col2|col3|col4| 510|abc|xxx|450| 510|abc11|yyy|350 510|pqr99|zzz| 670 512|222|439|110 Here i have check the contents of column for data type. i have a constraints that col1 always contain Numeric value column 2... (12 Replies)
Discussion started by: jambesh
12 Replies

2. Shell Programming and Scripting

Check file content type

I have a shell script that takes a file and uses "syncsort" to sort contents. I want to add a condition to check whether the input file is textual or binary format. If textual, the "syncsort" will be used to sort the files contents. Otherwise, the sorting process will be skipped. Note that the... (3 Replies)
Discussion started by: synthea
3 Replies

3. Red Hat

how do we check SAN storage?

Hello, I am using LINUX OS. I want to check what is the SAN storage size. How do i check this in server? Any help is really appreciated.. (3 Replies)
Discussion started by: govindts
3 Replies

4. UNIX for Dummies Questions & Answers

Display storage type and storage size

Can anybody help me ont to get the command to check storage type and storage size in unix. Thank u in advanced!! (4 Replies)
Discussion started by: manisham
4 Replies

5. UNIX for Advanced & Expert Users

How to check which type of storage is used in unix

SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240 how can i check the storage type being used in unix solaris sparc system? please help me its urgnet.. thank you (1 Reply)
Discussion started by: aesgs
1 Replies

6. Solaris

How to check which type of storage is used in unix?

SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240 how can i check the storage type being used in unix solaris sparc system? please help me its urgnet.. thank you (22 Replies)
Discussion started by: aesgs
22 Replies

7. AIX

UNIX cmd to check for non expiry type password

Hi, Here's the version of unix that we are working on. > uname -a AIX yyyyyyyy 1 6 00F613E24C00 @:on(cluster303)/iishomea/kmani00-> i have application id: aaabbb Now i need to check whether the password for the application id set to non expiry type or not. Moreover, with that unix... (3 Replies)
Discussion started by: kmanivan82
3 Replies

8. Shell Programming and Scripting

Check if a file type exists repeatedly

Hi, I have the below script that checks if the .tar file exists in my present directory. If so, extract it and then delete it except if the .tar filename is blent.tar #!/bin/bash while ; do echo "TAR BALL EXISTS" for f in *.tar; do echo "File -> $f" tar -xvf $f rm -ir $f... (7 Replies)
Discussion started by: mohtashims
7 Replies
FGETSS(3)								 1								 FGETSS(3)

fgetss - Gets line from file pointer and strip HTML tags

SYNOPSIS
string fgetss (resource $handle, [int $length], [string $allowable_tags]) DESCRIPTION
Identical to fgets(3), except that fgetss(3) attempts to strip any NUL bytes, HTML and PHP tags from the text it reads. PARAMETERS
o $handle -The file pointer must be valid, and must point to a file successfully opened by fopen(3) or fsockopen(3) (and not yet closed by fclose(3)). o $length - Length of the data to be retrieved. o $allowable_tags - You can use the optional third parameter to specify tags which should not be stripped. RETURN VALUES
Returns a string of up to $length - 1 bytes read from the file pointed to by $handle, with all HTML and PHP code stripped. If an error occurs, returns FALSE. Example #1 Reading a PHP file line-by-line <?php $str = <<<EOD <html><body> <p>Welcome! Today is the <?php echo(date('jS')); ?> of <?= date('F'); ?>.</p> </body></html> Text outside of the HTML block. EOD; file_put_contents('sample.php', $str); $handle = @fopen("sample.php", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgetss($handle, 4096); echo $buffer; } fclose($handle); } ?> The above example will output something similar to: Welcome! Today is the of . Text outside of the HTML block. NOTES
Note If PHP is not properly recognizing the line endings when reading files either on or created by a Macintosh computer, enabling the auto_detect_line_endings run-time configuration option may help resolve the problem. SEE ALSO
fgets(3), fopen(3), popen(3), fsockopen(3), strip_tags(3). PHP Documentation Group FGETSS(3)
All times are GMT -4. The time now is 06:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy