|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
XHTMLMP - How to combine php with xhtml-mp?
Hi
[I have two questions in the same thread] Q1: I have started making the site and stuck in a step. I have to show the videos list in a page. now this video list will be calculated in real time from the videos folder then I will run a loop to display their title using list element. but my N70 gives me ERROR CODE: 0 when I click on a page like mywapsite.com/show_videos.php I guess it is not understanding .php so how should I go from here to show the videos present in the videos folder dynamically because the number of videos will keep changing therefore I want to show the list dynamically. Q:2 I made two logos one of .gif and other of .wbmp type. then I wanted to read the accept headers to make the decision in real time that what format of logo should I display. I wrote the following code PHP Code:
but again I had to rename my index.html to index.php for this code and once i renamed it I start to get error code: 0. I am confused that how I will make dynamic decisions for wap sites? any help is much appreciated.
__________________
($tired) ? "working in PHP" : "PHP working in me"; PHP Manual | Free Email Based Contact Form | Free Guest Book | Free FAQs System | Backlink Checker FREE Scripts Directory and Resource Repository PHP,Apache,MySQL,Oracle,Linux,Telecommunications,Games and Cars Articles Download Free Videos From Youtube,Google Video,MySpace,iFilm etc |
|
#2
|
||||
|
||||
|
Are you sending any other headers?
If you are sending this as any wap variant, then you must use valid wml or xhmtl mp - the page will break if you don't. PHP won't parse .html files unless you specifically make it.
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
||||
|
||||
|
sorry I didn't your point. I made a .php page with the following code
PHP Code:
but when I browse it on my N70 or online emulator it gives error code: 0 what I am confused at is that how am I going to mix php code with xhtml so that they can be browsed on handsets? thanks |
|
#4
|
||||
|
||||
|
error code: 0 is an unknown error usually a connection error - usually DNS related.
Are you sure the site is accessible globally? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > XHTMLMP - How to combine php with xhtml-mp? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|