Hey guys,
I'm looking for a PHP script that will hide my file names, but downloading off a different server than mine. For example, if you have any experiece with phpBB and attachments, when a user uploads an attachment, it is shown as the following when someone attempts to download it: http://website.com/forums/download/file.php?id=1 for example, where the ID of 1 is the filename on the remote server.
The difference here being I would want it like this: http://website.com/out.php?file=X and it would be linking off site, not on my remote server.
Example: I uploaded a file to http://website2.com/storage/file.zip and I want to directly link to it from my website at http://website.com/out.php?file=X, where X is the specified file for that link.
I understand the links to the files must be added manually and that's fine but I will pay for a good code that works effectively.
I'm willing to pay 200 Frih$ for this with any options I later can think of. It should be pretty simple for any PHP people.
If interested, post back and then I will PM you. Any questions please post.
Thanks.
if you are looking to change the download link, its not possible for me right now. But if you want to place the download link on a page similar to this (the example you said) i can do it, but you have to provide more details. The details you provided are insufficient.
Try asking at this website - http://www.programmingtalk.com - post in the Script Requests board - I'm sure you'll get an answer there!
Thanks guys.
Well to be more specific, or try to be... say I hosted "doc.zip" on a website, and let's call that website example.org. Now, I want to link to "doc.zip" on my website, and let's call my website mysite.com.
Now, let's say that a user would browse my site and click download on "doc.zip" file. I don't want it shown to the user as "example.org/doc.zip" as the link but instead "mysite.com/out.php?id=1, for example.
I know a PHP function can do this, similar to how it is done in phpBB but phpBB is set up so that the downloads lie in a remote folder, usually "downloads" which isn't what I want, since they will be hosted off-site.
If this didn't help... sorry, but please do post back any questions.
Also, thank you flung I will later visit the website.
so, you wan the script make a link like page.php?id=X , and when the user clicks the link, it redirects to the download URL and the download stats.
Infact, in this way too, if the user is using Opera (i dont know about other browsers), it can easily see the actual download link when it is downloading the file.
i can try it, if you say.
| Freezon wrote: |
Hey guys,
I'm looking for a PHP script that will hide my file names, but downloading off a different server than mine. For example, if you have any experiece with phpBB and attachments, when a user uploads an attachment, it is shown as the following when someone attempts to download it: http://website.com/forums/download/file.php?id=1 for example, where the ID of 1 is the filename on the remote server.
The difference here being I would want it like this: http://website.com/out.php?file=X and it would be linking off site, not on my remote server.
Example: I uploaded a file to http://website2.com/storage/file.zip and I want to directly link to it from my website at http://website.com/out.php?file=X, where X is the specified file for that link.
I understand the links to the files must be added manually and that's fine but I will pay for a good code that works effectively.
I'm willing to pay 200 Frih$ for this with any options I later can think of. It should be pretty simple for any PHP people.
If interested, post back and then I will PM you. Any questions please post.
Thanks. |
| Code: |
<?php
switch ($file) {
case "file.zip":
$server_file = file.zip';
$server_file = 'server.zip';
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
echo "Successfully downloaded";
} else {
echo "There was a problem\n , make a file with name local.zip to download";
}
ftp_close($conn_id);
break;
}
?> |
see - http://www.php.net/manual/en/function.ftp-get.php
note-do not pay me the frih because i like to ern by posting more than getting for free
RTFM
hmmm... i can do it for u... pm me with your details
i'm quite busy with college... so it'll take a week to do this.. tell me if its alright
hello buddy, I need a web based php inbox mailer to reach out to my prospects. If anybody out there have one confirned php inbox mailer link, please send it to me. I'm in need of it urgently