LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-14-2005, 03:45 PM   #1
latheesan
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de


hi everyone.

i have one simple question.

basically, i have a simple upload site. what i want is a little control over the upload. i.e. not to give the file straight away, show a page where they can click on the file and then download it. the purpose of it, so i can make some money out of ads.

basically, lets say someone upload a movie file called cat.avi

i want to give them the link to the file http://www.mysite.com/cat.avi.html

i dun want to give the link http://www.mysite.com/uploads/videos/cat.avi.html

an example of this kind script/system can be found at http://www.rapidhsare.de

i know tiney bit all the language, lolz. all the basic that is to understand whats going on and how to edit it so it suits my need.

so anyone know how it is done?

anyhelp is most appreciate it.

thank you
 
Old 06-14-2005, 03:55 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
What I would do is create a php script accessible via http://www.mysite.com/download.php?file=cat.avi. Or, better, would be to use Apache's mod_rewrite and get http://www.mysite.com/downloads/cat.avi -> they will never be able to figure out the real path... especially if you pipe the actual download through a php script.
 
Old 06-14-2005, 04:35 PM   #3
latheesan
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Matir
What I would do is create a php script accessible via http://www.mysite.com/download.php?file=cat.avi. Or, better, would be to use Apache's mod_rewrite and get http://www.mysite.com/downloads/cat.avi -> they will never be able to figure out the real path... especially if you pipe the actual download through a php script.
wow.. hehehe it sound so simple but im not that smart to write my own php script or do stuff with the apache

are there any scripts like this?

or, if u dun mind, id most appreciate it if anyone could help me get started on this script

take a look at what i've done so far

http://www.mp3host.info

for time being, use login demo and password demo to try the uploader

and tell me where about i can put the script to pipe the link of the file

omg, allready lost
 
Old 06-16-2005, 05:33 AM   #4
latheesan
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
any help plz?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
filename- and filename~ files? slinky2004 Linux - Newbie 5 10-17-2004 11:32 PM
How to change a mass of filename in a dir? superztnt Linux - General 4 07-27-2004 08:29 AM
Script to change several filename jan_81 Linux - Newbie 5 04-28-2004 12:10 PM
html .avi tag ?? itsjustme Programming 2 07-30-2003 01:32 PM
Converting avi to mpg OR creating an SVCD from an avi MasterC Linux - Software 5 03-28-2003 06:42 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration