vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP to WML ? (https://vborg.vbsupport.ru/showthread.php?t=45768)

QiQme 11-15-2002 08:14 PM

PHP to WML ?
 
Hi,

I know on these forums are a lot of great great programmers and technicians.

I have a question about php to wml :

I have an page content.php with php code in it :

PHP Code:

<?

$fd= fread(fopen("http://www.mysite.com/page.html", "r"), 1000000); 
$start= strpos($fd, "start content"); 
$finish= strpos($fd, "end content"); 
$length= $finish-$start; 
$code=Substr($fd, $start, $length); 

echo $code;

?>

This page displayes every htmlcode from http://www.mysite.com/page.html between "Start Content" and "End Content".

But now i'd like to have the same output on a wml page so i can access it with my mobile phone.

How can i do this.

I tried very very hard but nothing worked :(

Can someone help me ?

Thanx

Regards Michel

NTLDR 11-15-2002 08:16 PM

Just have WML file read in instead of a HTML file.

QiQme 11-16-2002 12:02 PM

The html file is from another webpage.

It generates the trafficjams


All times are GMT. The time now is 07:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03430 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete