01-08-2007
One-time use files/links
Im in the process of developing a content based website in which people will be able to upload movies(which are then converted to flv format and displayed in a flash based player.) In order to protect the submitted content I would like to setup an offsite folder for the videos and create symbolic/hard links to the files only when in use.
My question:
Is there a way to create a file, symbolic link, hard link... that destroys itself after it has been used?
(In other words I want the script to create this file then once the player initiates the download I want all further attempts to download the video to be rejected. In other words the file can only be accessed via the given video script.)
Site information that might be important:
PHP 4
MySQL
ffmpeg is used to convert the submitted video
Debian GNU/Linux
I do NOT have root access on the server(I was able to get ffmpeg to install to a local directory)
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all
I wander of there is small utility that gives me the possibility to download direct links to specific folder
say if i have http://www.blah.com/foo.java and I like to download the foo.java without opening the browser and such... (2 Replies)
Discussion started by: umen
2 Replies
2. Filesystems, Disks and Memory
Hi,
I am trying to duplicate a symbolic link, the new link should be the exact replica of the original one, with same file attributes, permissions, owner, group and even the time.
i m successful in changing the owner and group, but when i try to change the time using utime, the time of the... (1 Reply)
Discussion started by: avanigadhai
1 Replies
3. Shell Programming and Scripting
Hi,
I am new to unix
I am removing some unwanted files from the directory by using the following command
find . -name "*" -exec rm -f {} \;
But i want the corresponding links also to be removed
can one help me
Thanks (1 Reply)
Discussion started by: Satyak
1 Replies
4. Solaris
When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies
5. Shell Programming and Scripting
Hi all!
I have the following problem:
I want to create a symbolic link at the root: /a
which points to the folder: /b/MyFiles
It's simple, but here comes the troubling part. If I log in with an other user at the same time, I would like to see the following under a:
/b/HisFiles
so... (1 Reply)
Discussion started by: Emri Balázs
1 Replies
6. AIX
Hi
I'm logged in as root in an aix box
Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies
7. UNIX for Advanced & Expert Users
I have folder ABC and files in ABC are links.
I want to create the same ABC folder in different path and copy the actual files from source ABC dir.
Can anyone provide HP-UX command for this?
note: cp -L is not working in HP-UX
Thanks in advance. (1 Reply)
Discussion started by: venkatababu
1 Replies
8. Shell Programming and Scripting
I want count size of all directories on my current File System including size of links only if the target of these links is on same filesystem.
I tried below but it gives size of link target even if its on a different FS:
du -skL *
also the -x option did not help.
Any help. (2 Replies)
Discussion started by: pratikgupta123
2 Replies