| Author |
file download problem (Web server returned a too large message) |
juanin Joined: Aug 30, 2004 Posts: 6 PM |
Hi,
Not sure if it's the right forum...
I'm programming some PHP scripts, for people to connect to them and download ringtones and screensavers
I have a test PHP to download a 6kb 101x68 gif file, which works fine with a Sony Ericsson T610 and a Nokia 6100, but with a Sony Ericsson T230 it gives the following error:
"Web server returned a too large message 6007"
If I upload the gif file to a webserver, and point the T230 it downloads ok, but not with my PHP script, so there must be something about it that the T230 does not like..
You can download a zip file including the test.php file and test.gif file I'm using to test with from:
http://www.juanin.com/test.zip
Any ideas on what may be wrong??
I repeat, it does work with other phones...
Thanks in advance,
Juan |
|
|
DSF Joined: Dec 01, 2002 Posts: > 500 From: Romania PM, WWW
|
hey,
try this:
if (is_file($file))
{
header("Location: $file");
}
?>
call the script with script_name?file=filename
Also configure the .htaccess file:
AddType text/vnd.wap.wml wml
AddType image/jpeg jpg
AddType image/jpeg jpeg
AddType image/gif gif
However not on all web hosters let users to use personal .htacess file.. but try maybe it will work
|
DSF Joined: Dec 01, 2002 Posts: > 500 From: Romania PM, WWW
|
if you do not want to use a .htaccess file try this:
Quote:
|
$file = 'test.gif';
$content_type = 'image/gif';
if (is_file($file))
{
header("Content-type: ".$content_type."");
header("Content-Disposition: attachment; filename=$file");
readfile($file);
}
?>
|
|
If the previous code won't work try this:
Quote:
|
$file = 'test.gif';
$content_type = 'image/gif';
if (is_file($file))
{
header("Content-type: ".$content_type."");
readfile($file);
}
?>
|
|
If this still didn't work ... the only way is to use a .htaccess file...
Please let me know if it works or not.
_________________
http://xpc.go.ro/wap/ WEB
http://xpc.go.ro/wap.wml WML/WAP
[ This Message was edited by: DSF on 2004-10-23 17:44 ] |
vanquish Joined: Mar 20, 2003 Posts: > 500 From: Wor Newcastle Phone: V600i PM, WWW
|
Are you sure this belongs in the Sony Ericsson general thread? |
govigov Joined: Jul 30, 2004 Posts: > 500 From: Back home - Cochin PM |
pls note 230 has wap version 1.2.1 and the 610 has wap2.0.
i am used to that error messages.. usually i send the link to shyam335's mobile and ask him to download for me.
i read in a thread that wap2.0 was not working in someplace and only 1.2.1 was working and the reason was a proxy server or something. leks had strong views i think |
DSF Joined: Dec 01, 2002 Posts: > 500 From: Romania PM, WWW
|
so juanin did you resolved the problem?
|
govigov Joined: Jul 30, 2004 Posts: > 500 From: Back home - Cochin PM |
Did i help in any way?
This message was posted from a K500 |
|
|