Author Topic: [MOD] WAP page to download files.  (Read 78198 times)

0 Members and 1 Guest are viewing this topic.

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #15 on: April 11, 2005, 04:38:09 AM »
you see, if you define some parameters here:

Code: [Select]
<?
$something = 'some text';
?>

later you can print it in the script any where, byt typing this:

Code: [Select]
<?
echo $something;
?>
Again this addres?!
http://www.funny.lt

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #16 on: April 12, 2005, 12:37:52 PM »
now mine is showing the code. any thoughts ?

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #17 on: April 12, 2005, 02:23:05 PM »
some phones shows the code, others say file type unrecognised.

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #18 on: April 12, 2005, 02:45:22 PM »
ok, ive tried it on a wap emulator and it works, maybe phones in australia dont support it ? this is really annoying me, i have no idea what the problem is.

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #19 on: April 16, 2005, 03:00:41 PM »
does anyone ?

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #20 on: April 16, 2005, 03:07:53 PM »
On monday I will test this site with few phone models. But now I have no time, sorry.
Again this addres?!
http://www.funny.lt

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #21 on: April 16, 2005, 03:38:18 PM »
thats fine, thanks. my url is www.yanos.net/wap incase you would like to look at that.

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #22 on: April 16, 2005, 06:48:37 PM »
can you describe what the problem is? what u can see and what no.
Again this addres?!
http://www.funny.lt

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #23 on: April 18, 2005, 01:20:09 PM »
sorry the server is down at the moment, it will be back up tomrorow, ill do it then. sorry again, but thanks for helping.

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #24 on: April 18, 2005, 01:22:39 PM »
no problem. the only problem I saw in your page was bad mysql db password given ;]
Again this addres?!
http://www.funny.lt

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #25 on: April 21, 2005, 01:13:57 PM »
when i goto the page, it says file format unknown, other phones do that also. Your right about the sql bd password, i couldnt remember what i made it, but that shouldnt effect the 'file format unknown' error shoudl it ?

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #26 on: April 21, 2005, 01:19:19 PM »
Hmm, so the problem might be in the header

Make sure that this is in the place:

Code: [Select]
//dont need to change after this
header("Content-type: text/wml");
echo("<?xml version=\"1.0\" encoding=\"windows-1257\"?>\n");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
." \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n");
Again this addres?!
http://www.funny.lt

Offline ryann

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [MOD] WAP page to download files.
« Reply #27 on: April 24, 2005, 01:47:47 PM »
ok, ive tried the page on 3 different phone models...

Nokia 3200: Displays 'File type invalid' error
Nokia 6200: Displays the source code
Motorola V3: The page works, but I didnt get to push the 'submit' button, so im not sure if that works or not... should.

And the header is correct too, i never changed it.

Any ideas ? at all ?



Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #28 on: April 24, 2005, 03:01:22 PM »
Yes I have one Idea ;)

Replace this:
Code: [Select]
header("Content-type: text/wml");
echo("<?xml version=\"1.0\" encoding=\"windows-1257\"?>\n");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
." \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n");

With this:
Code: [Select]
header("Content-Type: text/vnd.wap.wml");
echo '<?xml version="1.0"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">';


Must work :)
Again this addres?!
http://www.funny.lt

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] WAP page to download files.
« Reply #29 on: April 24, 2005, 03:09:03 PM »
Quote
Motorola V3: The page works, but I didnt get to push the 'submit' button, so im not sure if that works or not... should.

Change:
Code: [Select]
<form method="post">

To:
Code: [Select]
<form method="post" action="index.php">
Again this addres?!
http://www.funny.lt