1

After googling I didn't find answer to my question. So, question. I have site with http://www.emathhelp.net Inside it there is folder with pdf files.

I want to restrict direct access to pdf files, so http://www.emathhelp.net/1/3192849.pdf will return error, but a page with code <object data="pdf/1/3192849.pdf"></object> will correctly fetch pdf.

One of the attempts was to redirect all urls that end with .pdf to php script which then will find the page where pdf is embedded and redirect there. It was done, however inside <object></object> there is black screen, because I guess data="pdf/1/3192849.pdf" is rewritten also an thus infinite loop is created.

Can you help me? Maybe there are some solutions through .htaccess, maybe I don't need to use <object>. Please, write your suggestions.


As of 3/5/2012, Android Market (aka Google Play) is supporting the attachment of up to two "expansion files" of up to 2 Gigabytes each. Your APK must still be under 50 MB, but the attached files can total an additional 4GB.

Whether the resulting SD card storage requirements are acceptable is now between you and your users; Google is stepping out of the way and letting the other "market" decide!

Google's announcement of this policy update appears here:

http://android-developers.blogspot.in/2012/03/android-apps-break-50mb-barrier.html

4

1 に答える 1

1

Webルートフォルダから取り出します。ただし、表示されることになっている場合は、PHPを使用してWebルートフォルダーの一時的な場所にコピーし、表示するユーザーに表示します。一時ファイルの記録をデータベースに保存して、たとえば1〜2時間後に削除されるようにします。

リンク:

于 2012-04-26T23:18:51.413 に答える