The Daily Click ::. Forums ::. Klik Coding Help ::. Getting the file type from a download.
 

Post Reply  Post Oekaki 
 

Posted By Message

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
15th May, 2006 at 20:56:34 -

Ok, so i'm working on fixing up the TDC Downloads Downloader Engine for use in a new app of mine codenamed GAMr. Don't worry, It's gonna be tons better than The Daily Downloader, and after I finish it and release The Daily Click Downloads Downloader Engine 2.0, i'll make no more TDCDD downloads unless you people want them.

Anyway, one of the major problems in the current version is that when you download things it doesn't always get the file extension (like .zip or .exe) right. TDCDD figures out the file extension by tokening periods in the download URL (Well, it does now, in The Daily Downloader it just grabbed the last 3 characters of the URL), but what about PHP? Like when the download link is www.yourwebsite.com/download.php?fileID=1789234, how do I find the file extension. I think somebody once told me that there was a way to do it with MooSock, but I don't know how. Can you help me?

 
Happily Using Mac Now

I Officially Leave-d !

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
16th May, 2006 at 07:52:33 -

Get the last 3 characters of the connection of the file's address, not the webaddress. What object are you currently using to download files with?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
17th May, 2006 at 16:14:57 -

I'm just using Supa-Supa Download

 
Happily Using Mac Now

I Officially Leave-d !
   

Post Reply



 



Advertisement

Worth A Click