07-22-2009
Ofcourse...
You can avoid accidental modification to the file.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I want to access another users files and directories.Is there any command to do in unix ??.I think CHOWN would work.May i know the exact command for it.
Regards, (1 Reply)
Discussion started by: William1482
1 Replies
2. UNIX for Advanced & Expert Users
Hi the following c-code utilizing the 'read()' man 2 read method cant read in files larger that 2gig.
Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()'
The following program wont allow to allocate... (14 Replies)
Discussion started by: monkeyking
14 Replies
3. Shell Programming and Scripting
Hi
i am looking a way to look at a log file(log.txt) from the last time I've read it.
However after some days the main log file(log.txt) is rename to (log.txt.1).
So now i will have two log files as below.
log.txt.1
log.txt
Now, i have to read the log from the point where i have left... (3 Replies)
Discussion started by: sumitsks
3 Replies
4. Shell Programming and Scripting
I have a script which do validation check and perform code migration from one env. to another, this is built for users/developers.
How can I prevent this shell script from copy or read from users, as they can modify it and run it as per their requirement where as this has to be standard script and... (1 Reply)
Discussion started by: pramendra
1 Replies
5. Solaris
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies
6. Shell Programming and Scripting
HI,
I am trying to implement a simple shell script program that does not make use of ls or find commands as they are quite expensive on very large sets of files. So, I am trying to generate the file list myself. What I am trying to do is this:
1. Generate a file name using shell script, for... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
7. Shell Programming and Scripting
Hi all. I need a shell script that can, in short, read through a text file line by line and create a new user in Ubuntu, as well as assign that user to a group. The format of the text file is not important but preferably: 'username:group'. I don't have much programming knowledge no matter shell... (3 Replies)
Discussion started by: LewisWeekly
3 Replies
LEARN ABOUT PHP
http_cache_last_modified
HTTP_CACHE_LAST_MODIFIED(3) 1 HTTP_CACHE_LAST_MODIFIED(3)
http_cache_last_modified - Caching by last modification
SYNOPSIS
bool http_cache_last_modified ([int $timestamp_or_expires])
DESCRIPTION
Attempts to cache the sent entity by its last modification date.
If the supplied argument is greater than 0, it is handled as timestamp and will be sent as date of last modification. If it is 0 or omit-
ted, the current time will be sent as Last-Modified date. If it's negative, it is handled as expiration time in seconds, which means that
if the requested last modification date is not between the calculated timespan, the Last-Modified header is updated and the actual body
will be sent.
A log entry will be written to the cache log if the INI settinghttp.log.cache is set and the cache attempt was successful.
Note
This function may be used in conjunction with http_send_data(3), http_send_file(3) and http_send_stream(3).
PARAMETERS
o $timestamp_or_expires
- Unix timestamp
RETURN VALUES
Returns FALSE or exits on success with 304 Not Modified if the entity is cached. See the INI settinghttp.force_exit for what "exits"
means.
EXAMPLES
Example #1
A http_cache_last_modified(3) example
Caching for 5 seconds.
<?php
http_cache_last_modified(-5);
printf("%s
", http_date());
?>
SEE ALSO
http_cache_etag(3), the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_CACHE_LAST_MODIFIED(3)