Page 2 of 3

Posted: Wed Sep 22, 2010 9:07 am
by ciberyan
Hello Naval

I have very few users that complain that instead of downloading the target file, this downolad an empty file with the name of the php script itself ....

Any clue where I have to look ? as this never happen on my side

Thanks in advance

Posted: Wed Sep 22, 2010 1:50 pm
by Navaldesign
These users are probably using a download manager. This type of software have this issue.

Only solution I can suggest is that when this download Manager window opens, they should click on Cancel. Immediately after that, the classic Windows download window will appear and they can download normally (save or open)

Re: How to protect a download ?

Posted: Sun Nov 28, 2010 11:10 am
by ciberyan
Hello Naval !

I am in big trouble as for an unknwon reason (at least for me !) the script is not working anymore suddendly ...

Each try to load a file resend me on the login page exactly as I was no logged then I am with no error from WB7

What can I do to check where can be the problem ?

You speak of the STAT() problem, how can I check if this is the issue ? any way to bypass that

Thanks in advance for your time and patience ...

Re: How to protect a download ?

Posted: Sun Nov 28, 2010 11:22 am
by Navaldesign
Let me understand this correctly.....

You are sying that actually the user can't log in and is always sent to the login page ?

If yes, and you have not changed anything, then probbaly the issue is that sessions are no longer preserved in your site.

Can you log in normally in other protected pages (not the download page) ? If not, it is (almost certainly) an issue with sessions, and you should ask your hosting company to check it.

Re: How to protect a download ?

Posted: Sun Nov 28, 2010 5:37 pm
by ciberyan
Arghhh ...

It seems I cant log to any page protected

I have added a "logging name" tool to my redirect after logging page and it say : "Welcome Not logged in"
So this seems a problem on the site itself not in your code

To help during fixing, can you see a mean to systematically allow the download, logged or not ?
What should I add or modify in the PHP code of the page to do that
At least visitors will can download !

Thanks in advance

Re: How to protect a download ?

Posted: Sun Nov 28, 2010 5:46 pm
by Navaldesign
Not sure what you are asking me....

If you want to allow download, to non logged in visitors, just remove the protection code from the downloader script, and you are done.

Re: How to protect a download ?

Posted: Sun Nov 28, 2010 6:04 pm
by ciberyan
I think I have solved the last part by my self !

I put comment around the test so now users have allowed download up to I solve the last part with my provider !

Thanks

Re: How to protect a download ?

Posted: Fri Dec 03, 2010 3:42 pm
by me.prosenjeet
R-Alalia wrote:You can easily protect the download while having a antivirus in your computer.And if you want to protect it while downloading than you must try internet downloader software.It will helps you in downloading files securely.
Elaborate please

Re: How to protect a download ?

Posted: Fri Mar 11, 2011 4:27 pm
by ciberyan
Hello
It was some time before I come back again with my questions ... :)

The logging system works like a charm no problem BUT to avoid boring visitors unnecessarily, how can I, once logged in, stay logged even if the visitor close his browser and shut off his computer ??
is there a way to save that somewhere ?
with this system, when the visitor come back, he will be directly logged

Thanks in advance for you valuable idea !

Re: How to protect a download ?

Posted: Fri Mar 11, 2011 4:45 pm
by Pablo
how can I, once logged in, stay logged even if the visitor close his browser and shut off his computer ??
This is not possible, unless you modify the code yourself.

Re: How to protect a download ?

Posted: Fri Mar 11, 2011 5:27 pm
by ciberyan
Hello

Of which code are you speaking about ??

Re: How to protect a download ?

Posted: Fri Mar 11, 2011 5:49 pm
by Pablo
Of which code are you speaking about ??
The code generated by Web Builder for the login tools.

Re: How to protect a download ?

Posted: Sat Mar 12, 2011 1:09 pm
by ciberyan
Ok
Seems difficult
Offering this possibility could be interesting anyway

edit : Does a system using cookie can achieve that may be ?

Re: How to protect a download ?

Posted: Fri Apr 01, 2011 4:39 am
by Navaldesign
This might be due to server settings: memory_limit and buffer settings.

For big files there are different pieces of code that outut each chunk whithout buffering the entire file in memory. However, these are out of the limits of the free help I can provide in this forum.

Re: How to protect a download ?

Posted: Fri Aug 19, 2011 9:50 pm
by Navaldesign
In just a few words: No
The download is not immediate but through the script that "reads" the file and outputs it to the browser, so it is slower than a direct download.

However the difference should be minimum and not visible to the user.

I don't know why the "Pause" button is disabled. Furthermore the script might have issues with Download Managers as they usually download an empty php file instead of the file itself.