What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP - filename editing on the fly.

Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
PHP - filename editing on the fly.
Author: Message:
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: PHP - filename editing on the fly.
offtopic: scrolling is kinda laggy but its fine. The background has no issues.

SOMEONE FUCKING FIX MY WIZARD SO I CAN GET TO WORK ON TOUCH INNOVATION :'(
* John Anderton runs back to studies for his on going exams :dodgy:
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
10-20-2008 10:10 AM
Profile E-Mail PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: PHP - filename editing on the fly.
No, I want the background to stay in view at all time and not move and repeat... That's the desgin. Anyway were going off topic...

Help :p

EDIT: Thanks JA :P, yeah get it fixed whore :(

This post was edited on 10-20-2008 at 10:13 AM by Nathan.
Touch Innovation - touch friendly programs/applications for the windows mobile!


10-20-2008 10:13 AM
Profile E-Mail PM Web Find Quote Report
thorerik
New Member
*

Avatar
One random php dude

Posts: 2
34 / Male / Flag
Joined: Oct 2008
RE: PHP - filename editing on the fly.
as eljay said:
header('Content-Disposition: attachment; filename="Messenger.zip"');
should do the trick(as i use it on my own download script)
10-20-2008 10:23 AM
Profile E-Mail PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: PHP - filename editing on the fly.
I currently use a header to fetch the file.
Basically when you click download it goes to the download page, which then fetches the id, and searches the db and finds relative results. It then headers it to the file (after adding +1 to the download counter).

So I tried using the Content-Disposition, but it doesn't work properly :S.

code:
header("Location: {$download}");


That's whats in my download page (minus the counter).

Help :P
Touch Innovation - touch friendly programs/applications for the windows mobile!


10-20-2008 03:11 PM
Profile E-Mail PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: PHP - filename editing on the fly.
code:
header('Content-type: application/zip');
header('Content-Disposition: attachment; filename="download.zip"');
readfile($download);
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
10-20-2008 04:05 PM
Profile E-Mail PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: PHP - filename editing on the fly.
Yeah but not all of them are zip, this is the complication. It can be exe, cabs, zip, rars and the list goes on...

I tried that originally (what you posted dempsey).

Thanks though :)
Touch Innovation - touch friendly programs/applications for the windows mobile!


10-20-2008 05:52 PM
Profile E-Mail PM Web Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: PHP - filename editing on the fly.
quote:
Originally posted by Nathan
Yeah but not all of them are zip, this is the complication. It can be exe, cabs, zip, rars and the list goes on...

I tried that originally (what you posted dempsey).

Thanks though :)
You could very easily change that to use a variable, and grab the random file name, run it through the database, match with the new filename, output that, and bam.
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
10-20-2008 09:17 PM
Profile PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: PHP - filename editing on the fly.
I see, like explode() it to get the file extension, and then do it that way. Hmm I thought there would be an easier way :(

Ah well, looks like I'll be doing it like that. Unless anyone else wants to post a sollution?
Touch Innovation - touch friendly programs/applications for the windows mobile!


10-20-2008 09:32 PM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: PHP - filename editing on the fly.
quote:
Originally posted by Nathan
I see, like explode() it to get the file extension

Or just use basename :P
10-20-2008 09:44 PM
Profile PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. RE: PHP - filename editing on the fly.
How would that work? If I want to just get the file extension and add a totally different filename :S

I'm confusing myself now :(
Touch Innovation - touch friendly programs/applications for the windows mobile!


10-20-2008 09:54 PM
Profile E-Mail PM Web Find Quote Report
Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On