dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Posted by tom 4 years 24 weeks ago

pic
 tom
mobiForge Newbie
Posts: 2
Joined: 4 years ago
[offline]

Hi,

I try to develop mobile website based on PHP language. Everything is ok on the computer screen, but when i check it on my Sony Ericsson K750i, i can see some unexpected characters. I've localized this problem: when i use include(); function, it returns character on my mobile phone screen (small square). The same situation is when i check my site with ready.mobi (visualization). Whenever i use this function (include,require,inlude_once...), it is always the same... ;(

Does anyone know good solution to solve this problem?

Posted by admin 4 years ago

pic
 admin
Mobile Grandmaster
Posts: 697
Joined: 3 years ago
[offline]

Hi Tom,

Can you post some code?

Posted by tom 4 years ago

pic
 tom
mobiForge Newbie
Posts: 2
Joined: 4 years ago
[offline]

header looks like this:

<?xml version="1.0" encoding="UTF-8"?>
&lt;!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" 
        "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
&lt;link rel="stylesheet" type="text/css" href="css/style.css" />
&lt;head>&lt;title>&lt;/title>
&lt;meta http-equiv="Cache-Control" content="max-age=6000" />
&lt;/head>&lt;body>...

and php code:
<?php include( 'test.php') ?>

test.php file:

<?php
echo 'WTF?';
?>