Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Problem allowing large pdf files to download
Old 06-22-2009, 06:25 PM Problem allowing large pdf files to download
Junior Talker

Posts: 2
Name: Iain
Trades: 0
Hi,

I'm a newbie here and I think my question would be better on the Website Hosting Forum but I note I can't post there until I have 15 posts so please forgive me for putting this here - it sort of fits as the site is a Joomla site running php.

I'm also relatively new into website hosting. I am trying to get a web-page running where users can download pdf files that have been zipped (to prevent large files of approx 90MB being rendered - yes I know that I can write a php script for this but my hosting service won't allow the script to run for long enough to complete). My problem is that the files download to a greater or lesser extent but don't open when downloading completes. I have the following code:

<td valign="top">
<form>
<input value="Download" onclick="window.location.href='http://www.mysite.com/pdf/filename.zip'" type="button" />
</form>
</td>

This is set up in table format to give button appearance which should trigger the user to select to open or save.

Interestingly the same file is pointed to on another page as follows. This time the file is right clicked and the user then chooses to 'save target as' / 'save link as' which works without any problem.

<a href="pdf/filename.pdf">
<img src="folder/pdf.png" width="30" height="30" />
</a>

Any ideas will be followed up and thanks for taking the time to read this.
__________________
Bytsy
If you can keep your head whilst all around are losing theirs you have clearly underestimated the seriousness of the situation :o)
Bytsy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-22-2009, 07:47 PM Re: Problem allowing large pdf files to download
Experienced Talker

Posts: 40
Trades: 0
There must be a problem with the actual PDF then..
wjewlery is offline
Reply With Quote
View Public Profile
 
Old 06-22-2009, 08:08 PM Re: Problem allowing large pdf files to download
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Typically a ZIP file does not open as a PDF file would. The avarage computer with no special software would not be able to open a ZIP file, but only save it.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 06-26-2009, 09:15 AM Re: Problem allowing large pdf files to download
Junior Talker

Posts: 2
Name: Iain
Trades: 0
Hi,

thanks both for your replies - not a corrupt pdf but a corrupt zip file!

Cheers,

Bytsy
__________________
Bytsy
If you can keep your head whilst all around are losing theirs you have clearly underestimated the seriousness of the situation :o)
Bytsy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem allowing large pdf files to download
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13574 seconds with 12 queries