Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: PHP Download script

date posted 16th January 2008 12:02

>> I'm having a slight problem with a PHP download script that I am
helping a client with.
> Thanks every one who has helped. None of the above has worked, I've
tried setting the content-type to jpeg, using the mime type as the same

The headers aren't going to affect the contents of the file, just what
the user-agent does with it. I'd look at the code that squirts out the
image and verify it hasn't got a fault, and also that the images on the
server aren't corrupted.

What also helps is to use something that will show you the http headers,
I use wget -d, and the following is the result for a random jpg:

--12:53:50-- http://www.akelos.org/images/logo.jpg
=> `logo.jpg'
Connecting to www.akelos.org:80... Created fd 744.
connected!
---request begin---
GET /images/logo.jpg HTTP/1.0
User-Agent: Wget/1.6
Host: www.akelos.org
Accept: */*

---request end---
HTTP request sent, awaiting response... HTTP/1.1 200 OK
Date: Wed, 16 Jan 2008 11:53:53 GMT
Server: Apache/1.3.37 (Unix) (extra stuff removed here by me)
Last-Modified: Tue, 10 Jul 2007 11:24:38 GMT
ETag: "788046-1327-46936c8d"
Accept-Ranges: bytes
Content-Length: 4903
Connection: close
Content-Type: image/jpeg


--
--Richard
http://www.zaretto.com



Messages by Day
January 31st 2008
January 30th 2008
January 29th 2008
January 28th 2008
January 27th 2008
January 26th 2008
January 25th 2008
January 24th 2008
January 23rd 2008
January 22nd 2008
January 21st 2008
January 20th 2008
January 19th 2008
January 18th 2008
January 17th 2008
January 16th 2008
January 15th 2008
January 14th 2008
January 13th 2008
January 12th 2008
January 11th 2008
January 10th 2008
January 9th 2008
January 8th 2008
January 7th 2008
January 6th 2008
January 5th 2008
January 4th 2008
January 3rd 2008
January 2nd 2008
January 1st 2008


Messages by Month
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000