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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Files with apostrophe in them not downloading
Old 07-22-2006, 01:13 AM Files with apostrophe in them not downloading
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
Hi,
my site uses html and css to force downloads, howerver whenever you select a file with an apostrophe ( ' for those who failed grade school) the file seems to not download. Here's my error message:
PHP Code:
ERRORFile not found. USE force-download.php?file=filepath 
An example is here, just click on the 5th link down.

Thanks for your help
carter
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
 
Register now for full access!
Old 07-22-2006, 02:21 AM Re: Files with apostrophe in them not downloading
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,111
Name: Matt. (>',')>
Location: London, England.
Trades: 0
try replacing the apostrophe with %27
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 07-22-2006, 09:46 AM Re: Files with apostrophe in them not downloading
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
Because the information is supplied via a URL you must do URL encoding, simply make sure your script encodes them with urlencode() and make sure that if you do a string comparison to make sure you also urlencode the string it compares against so that it would match.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 07-23-2006, 10:43 PM Re: Files with apostrophe in them not downloading
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
Quote:
Originally Posted by mastercomputers View Post
Because the information is supplied via a URL you must do URL encoding, simply make sure your script encodes them with urlencode() and make sure that if you do a string comparison to make sure you also urlencode the string it compares against so that it would match.
I don't quite understand what you are talking about with the "url encode()" can you please explain?
thanks
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 07-23-2006, 10:52 PM Re: Files with apostrophe in them not downloading
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
Quote:
Originally Posted by stOx View Post
try replacing the apostrophe with %27
I tried that and it doesn't work
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 08-01-2006, 04:14 PM Re: Files with apostrophe in them not downloading
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
could anyone help me please?
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Reply     « Reply to Files with apostrophe in them not downloading
 

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.22804 seconds with 12 queries