:) Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on this.........Let me... (1 Reply)
:confused: Hi
i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error
Function i used it as
$ iconv -f UTF8 -t ANSI filename
Error iam getting is NOT Supported UTF8 to ANSI
please some help me out on... (9 Replies)
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source .
Can any one suggest a way a logic to convert such... (5 Replies)
Hi All,
I have data in the following format.
Australia,"CISCO877-SEC-K9
CISCO1841-ADSL
CISCO2821"
Australia,"CISCO877-SEC-K9
CISCO1841-ADSL
CISCO2821"
Austria,"CISCO871-K9
CISCO1841
CISCO1841-SEC/K9
CISCO1812/K9"
Austria,"CISCO1841-SEC/K9
CISCO1812/K9" (3 Replies)
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Hi All,
I need read the file and out put format as below using ksh, I wrote below script its keep on repeating first line in the file.
may i know the best way to get the below out put while incrementing line in the file.
cat b.txt |awk '{print $0}' |while read line
do
aa=`cat $line |head -1... (7 Replies)
I have a bunch of files in various folders. I want to go through each of them and display certain lines in a particular format
All files have a similar format
Date:
Time:
User:
Message:
Miscellaneous:
(and some other stuff)I want to display to only the "Date:", "Time:" "User:" lines in... (7 Replies)
Hi Team,
The content of the file is as follows.
asdf
234
asdf
asdf
dsfg
gh
67
78
The file is in DOS format (not in Unix Format). The file is transferred to Unix. I need a unix command to check the number of blank lines in a input (comming from Windows). If it is greater than... (4 Replies)
Gurus,
I have a data file which has a certain number of columns say 101. It has one description column which contains foreign characters and due to this some times, those special characters are translated to new line character and resulting in failing the process.
I am using the following awk... (4 Replies)
Discussion started by: tumsri
4 Replies
LEARN ABOUT PHP
session_cache_limiter
SESSION_CACHE_LIMITER(3) 1 SESSION_CACHE_LIMITER(3)session_cache_limiter - Get and/or set the current cache limiter
SYNOPSIS
string session_cache_limiter ([string $cache_limiter])
DESCRIPTION session_cache_limiter(3) returns the name of the current cache limiter.
The cache limiter defines which cache control HTTP headers are sent to the client. These headers determine the rules by which the page
content may be cached by the client and intermediate proxies. Setting the cache limiter to nocache disallows any client/proxy caching. A
value of public permits caching by proxies and the client, whereas private disallows caching by proxies and permits the client to cache the
contents.
In private mode, the Expire header sent to the client may cause confusion for some browsers, including Mozilla. You can avoid this problem
by using private_no_expire mode. The Expire header is never sent to the client in this mode.
Setting the cache limiter to '' will turn off automatic sending of cache headers entirely.
The cache limiter is reset to the default value stored in session.cache_limiter at request startup time. Thus, you need to call ses-
sion_cache_limiter(3) for every request (and before session_start(3) is called).
PARAMETERS
o $cache_limiter
- If $cache_limiter is specified, the name of the current cache limiter is changed to the new value.
Possible values
+------------------+------------------------------------------------------------------------------------------------------------------------------------+
| Value | |
| | |
| | Headers sent |
| | |
+------------------+------------------------------------------------------------------------------------------------------------------------------------+
| | |
| public | |
| | |
| | |
| | |
| | Expires: (sometime in the future, according session.cache_expire) |
| | Cache-Control: public, max-age=(sometime in the future, according to session.cache_expire) |
| | Last-Modified: (the timestamp of when the session was last saved) |
| | |
| | |
|private_no_expire | |
| | |
| | |
| | |
| | Cache-Control: private, max-age=(session.cache_expire in the future), pre-check=(session.cache_expire in the future) |
| | Last-Modified: (the timestamp of when the session was last saved) |
| | |
| | |
| private | |
| | |
| | |
| | |
| | Expires: Thu, 19 Nov 1981 08:52:00 GMT |
| | Cache-Control: private, max-age=(session.cache_expire in the future), pre-check=(session.cache_expire in the future) |
| | Last-Modified: (the timestamp of when the session was last saved) |
| | |
| | |
| nocache | |
| | |
| | |
| | |
| | Expires: Thu, 19 Nov 1981 08:52:00 GMT |
| | Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 |
| | Pragma: no-cache |
| | |
+------------------+------------------------------------------------------------------------------------------------------------------------------------+
RETURN VALUES
Returns the name of the current cache limiter.
EXAMPLES
Example #1
session_cache_limiter(3) example
<?php
/* set the cache limiter to 'private' */
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
echo "The cache limiter is now set to $cache_limiter<br />";
?>
SEE ALSO
session.cache_limiter.
PHP Documentation Group SESSION_CACHE_LIMITER(3)