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
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.
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.
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
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?
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
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/...
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...?
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);
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...!
Try something like:
function timebb($str)
{
return preg_replace ('/\[date-(.*?)\]/is', date("m:d:Y H:i:s",$1), $str);
}