I am trying to make an BTML-parser.
(BTML-Some Markup Language invented by Me)
I have 3 files:
read-tags.php:
---
?php
function parseTags($file) {
/* readfile... here */
$filedata = file_get_contents($file);
$tag_match = !bttag=(\w*)\s*([^]*)\s*/bttag!is;
preg_match_all($tag_match,
Bas wrote:
...
echo IMG SRC=\ . $bttags['image'] . \;
Seems that U don't have closing double-quote () in line above.
It should be:
echo IMG SRC=\ . $bttags['image'] . \;
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Now I get the output:
(in html, if you get a mail, you get the real output.)
HTMLHEADTITLEWelcome!
/TITLE/HEADBODYH1Welcome!
/h1brbr /
bNotice/b: Undefined index: text in bC:\pub\include\btml.php/b on
line b13/bbr /
IMG SRC=noimage.gif
/body/html
Pavel Jartsev [EMAIL PROTECTED] wrote in
3 matches
Mail list logo