Reply to Re: Can't display local file

Re: Can't display local file new!
by Kim, 14 years, 8 months ago
Hello Colin,

Thank you for helping with this.

I uploaded a png file using this class then tried to access it with both of your code examples and got this error each time: The image “view-source:https://mydomain.com/~lifespa/demo/getfile.php?t=svc&id=7” cannot be displayed, because it contains errors.

Here's the output from LiveHTTPHeaders.

https://mydomain.com/~lifespa/demo/getfile.php?t=svc&id=7

GET /~lifespa/demo/getfile.php?t=svc&id=7 HTTP/1.1
Host: mydomain.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://mydomain.com/~lifespa/demo/index.php?p=service&action=edit&sid=7
Cookie: __utma=63748150.1862303144.1225142372.1260905107.1265309473.21; __utmz=63748150.1256751018.18.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=9b9bf89c40caccf4f6f7f21811be1fa7

HTTP/1.1 200 OK
Date: Wed, 03 Mar 2010 19:37:43 GMT
Server: Apache
X-Powered-By: PHP/4.4.9
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important