Sony Ericsson / Sony : Technical : file download problem (Web server returned a too large message)
>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
Technical
> file download problem (Web server returned a too large message)
Bookmark topic
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
--
Posted: 2004-10-22 18:50:35
Edit :
Quote
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
--
Posted: 2004-10-23 15:34:53
Edit :
Quote
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 ]
--
Posted: 2004-10-23 18:42:10
Edit :
Quote
Are you sure this belongs in the Sony Ericsson general thread?
--
Posted: 2004-10-23 19:19:09
Edit :
Quote
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
--
Posted: 2004-10-23 21:40:50
Edit :
Quote
so juanin did you resolved the problem?
--
Posted: 2004-10-25 23:03:37
Edit :
Quote
Did i help in any way?
This message was posted from a K500
--
Posted: 2004-10-25 23:09:48
Edit :
Quote
New Topic
Reply