call full function via HTML single code

Started on the old forum in January 2013 · view the original in the archive · old links redirect here

10 replies · 5,196 views · started 13 years ago · 1 min read

TL;DR · summary of 10 replies
  • - RajivMeg asked how to create HTML tags that call PHP functions, outputting the results on an HTML page.
  • - Arnage suggested using JavaScript instead of calling PHP functions directly from HTML.
  • - Analyzer and others recommended using PHP for creating such HTML tags.
  • - No specific working code was provided in the thread.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

5 participants
rajivmeg Junior · 30 posts #1

PHP MASTERS, How to call full internal function on html page put a single html code. Ex. if I want to show "date with timezone" in any html page putting a single html code like {date-5.5} or [date-5.5] or %date-5.5% (india timezone) WHAT I DO.?

arnage Lead · 811 posts #2

Can't be a html page to call php function. You can use something like this time and date function on php page. On html tags are useless as it just shows browser time.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
rajivmeg Junior · 30 posts #3

I said html page, that mean plain html page use html code/tage. Ok I explan it. I see a wap creator html function code that show date with time zone. Ex. Today is [date|+5.5] output Today is 02-01-2013 and the html code [date|+5.5] call the time function and show it on a (that wap creator) html page.

kevk3v Senior · 332 posts #4

i'm pretty sure no one here will understand what you are trying to do... what about javascript?

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

analyzer Developer · 104 posts #5

kevk3v wrote: i'm pretty sure no one here will understand what you are trying to do... what about javascript?

i agree with this 1, but my suggestion is.. Better use php.

It's n0t that i am afraid to die. Its just that if i die, wh0 wilL loVe her as muCh as i Do?

rajivmeg Junior · 30 posts #6

ok look the xtgem function. xt:blog/ is a html code that call the blog function and show it which page u put. same in wapka code (wcode) %user% call the user function. wapego [pm] calllthe private massaging system. and ooooon.....

I mean to say full php array function html code that output on a html page

arnage Lead · 811 posts #7

Things like xt:blog/ are tags, not functions and any dynamics most likely is php or asp, and that what you see like html is most likely rewritten url. On html its Javascript. You can make your own tags in html if you have a need, for example ct:rajivmeg/...

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
rajivmeg Junior · 30 posts #8

Yes how to make this type of html code that call and show full function. mean if I create a SHOUTBOX php script and give to my users for install there html page this code <rt id="shoutbox" /> OR [shoutbox]::variable::[/shoutbox] OR %shoutbox%. what the prosidior to make this type of code

Added after 2 minutes:

Can u guide me how to create this type of spacial html code

Any PHP master know and explan with code that how to create this type of html code that call and show the full function. Like 1. <wc type="shoutbox"/> (wapcreate) 2. xt:filelist/ (xtgem) 3. [news] or [time] (wapego/yourwap] How can we create spacial html tag that only work my site and users page...?

something else Fellow · 2,296 posts #9

You need to use a string replace or preg replace.. here's some examples:

$text = str_replace("[time]",gettime(),$text);
$text = preg_replace("/\[b\](.*?)\[\/b\]/is","<b>$1</b>",$text);
rajivmeg Junior · 30 posts #10

something else wrote: You need to use a string replace or preg replace.. here's some examples:

$text = str_replace("[time]",gettime(),$text);
$text = preg_replace("/\[b\](.*?)\[\/b\]/is","<b>$1</b>",$text);

can u post working code with a demo. I need it and full understanding method...!

something else Fellow · 2,296 posts #11

Try something like:

function timebb($str)
{
    return preg_replace ('/\[date-(.*?)\]/is', date("m:d:Y H:i:s",$1), $str);  
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close