Current location: Hot Scripts Forums » General Community » Script Requests » Temporary download page generator...


Temporary download page generator...

Reply
  #1 (permalink)  
Old 01-15-05, 11:46 PM
LittlBUGer's Avatar
LittlBUGer LittlBUGer is offline
Newbie Coder
 
Join Date: Jan 2005
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Question Temporary download page generator...

Hello. I don't know if this is possible (though I see these sorts of pages everywhere), but I need a script or something that can automatically create a temporary download page based off of a download link to a file on a certain subdomain on my website. Meaning, I need something that once I post a link to a file on a certain subdomain on my site, I want a script to create a temporary download page that the link goes to which just includes a little information that would be the same no matter where the link goes to, and then it would actually download the file after 10 seconds or so. It would be like clicking on a link and going to a temp page where, say, a few Google ads would be displayed and some text would say, "You're download will start in 10 seconds.... If you do not want to wait, please click here.", or something like that. Is there a script or something to generate such pages on the fly, no matter what file I link to, or would I have to manually create such a page per file (which would take way too much time)? Any suggestions or pointers would be great. Thanks.
__________________
LittlBUGer.info
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Albert Einstein
Reply With Quote
  #2 (permalink)  
Old 01-16-05, 03:34 AM
phprogramming phprogramming is offline
Wannabe Coder
 
Join Date: Nov 2004
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
you can do it all in one file using a mysql database, pm me for more information,
__________________
Source Code Talk - Programming Discussion, Tutorials, and More!
Reply With Quote
  #3 (permalink)  
Old 01-16-05, 08:38 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
use meta to refresh the page and start downloading the file. create the temporary download page in template, parse the template with the file (or such file masking) to download and here you go. you can do that in only several minutes. so easy..
__________________
just an ignorant noob with moronic solution...
Reply With Quote
  #4 (permalink)  
Old 01-16-05, 02:13 PM
LittlBUGer's Avatar
LittlBUGer LittlBUGer is offline
Newbie Coder
 
Join Date: Jan 2005
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Quote:
Originally Posted by moronovich
use meta to refresh the page and start downloading the file. create the temporary download page in template, parse the template with the file (or such file masking) to download and here you go. you can do that in only several minutes. so easy..
As I said, I'm not a great programmer (when it comes to web design), so could you enlighten me a little? I wont be uploading the files nor putting out the links myself, someone else will and there will probably be new files every week, so I don't see a way to do each page myself, if that's what you're asking. If you are saying something else, then please let me know. Thanks. Any detailed information will be helpful.

@ phprogramming

I'll PM you in a minute... Thanks.
__________________
LittlBUGer.info
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Albert Einstein
Reply With Quote
  #5 (permalink)  
Old 01-17-05, 03:45 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
here is a snippet, hope you understand
File lists:
1.thankyou.tpl
2.thankyou.php
3.download.php
Code:
//File thankyou.tpl
<html>
<head>
<meta http-equiv="refresh" content="3;url={MYURL}" />
</head>
<body>
Your download is about to start
Please click our ads before downloading the file, it will help us much avoid bankruptcy
---Your Ads---
</body>
</html>
PHP Code:

//File download.php

...bla...bla..
$path '/your/path/';
$myFile 'myFile.ext'//or get value from variables

if($_GET['unique']) {
    
$myFile base64_decode(urldecode($_GET['unique']));
    
//Your function
    
download($myFile);
    exit();
}
header('Location: thankyou.php?unique='.urlencode(base64_encode(($myFile))); //a bit waste of time, but it's ok


//File thankyou.php
$myTPL myTemplate::createObject();
if(
$_GET['unique']) {
     
$myTPL->updateTemplate('MYURL','download.php?unique='.$_GET['unique']);
     print 
$myTPL->finale();

__________________
just an ignorant noob with moronic solution...
Reply With Quote
  #6 (permalink)  
Old 01-17-05, 01:48 PM
LittlBUGer's Avatar
LittlBUGer LittlBUGer is offline
Newbie Coder
 
Join Date: Jan 2005
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Smile :)

Like I said I'm not really a PHP programmer. I can only program somewhat in Assembler, C++, and Java. What that looks like above is incomplete code (meaning you want me to code and fill in several gaps) but I can't be sure. I would like something that is mostly complete or at least some very detailed instructions on how to go about something. I don't quite understand the syntax very well, so it's hard for me to follow what you've written, plus I don't have a ton of time to test and rewrite and test some more. Please, if anyone can help me with some complete (or nearly complete) and detailed (such as code having many comments on what's going on) or other instructions, please feel free to post. I really appreciate everyone's help and responses. Thank you.
__________________
LittlBUGer.info
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Albert Einstein
Reply With Quote
  #7 (permalink)  
Old 01-17-05, 02:18 PM
phpnut's Avatar
phpnut phpnut is offline
Newbie Coder
 
Join Date: Aug 2004
Location: CA USA
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
hello
that is a somewhat complicated script and if ur gona get soemone to build it for you because it is timeconsumming so.........
do you have any budget?
just so people can see if it is worthit to take that much time so.....
__________________
Check out http://Luc.iferSam.com
Reply With Quote
  #8 (permalink)  
Old 01-17-05, 03:56 PM
LittlBUGer's Avatar
LittlBUGer LittlBUGer is offline
Newbie Coder
 
Join Date: Jan 2005
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Possibly...

Yes I have a budget, if that is what needs to happen to motivate some people to help (unfortunately). I don't know what the cost would be but I wouldn't expect it to be very high. If anyone will do such a thing for a price, throw a price out and a way of payment and I'll let you know. I may also need help with another script, though the other would be much simpler (I think). Thank you.
__________________
LittlBUGer.info
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Albert Einstein
Reply With Quote
  #9 (permalink)  
Old 01-17-05, 04:27 PM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
hello littlebuger,
why i only wrote code snippet is because it's pretty simple and you can try a google search on how to do that.

anyway, check your pm. it will avoid this thread getting longer.

thanks
__________________
just an ignorant noob with moronic solution...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
need help creating an update & confirm page mikewooten PHP 1 11-08-04 04:28 PM
page browsing problem mivec PHP 3 04-17-04 03:43 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
Running an ASP Page & it wants to download in stead of running. crobinson ASP 4 11-24-03 04:45 PM


All times are GMT -5. The time now is 10:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.