Woot!!! We have a winner
. Ding Ding Ding!!
Ok the parser has been re-written as of this morning to handle "mixed" php/html entities of the type posted by hstraf in this thread on 05-08-06. However, I believe that it still needs one more handler for cases like so: <img src="<?php (some code) ?>"/> (note the xhtml style of tag closing), will be testing it today. The parser should be finished this evening, thank god for long weekends!!! I still need some examples of code strings, not actual code (you don't have to give away the farm here), just examples of the types of strings I need to handle.
This is what we can handle so far:
<?(php)
If ($test)
{
print "test is defined";
}
else
{
echo ('test is undefined');
}
?> (yes this can be all on one line, but the parser atempts to preserve line breaks for readability if you have them
)
also the one found in this thread:
<a href="images/<?php echo($year.'/images/'.$month.'-1.gif'); ?>">link</a>
and any other "normal" php constructs like
<?(php) echo myfunction(); ?>
any of these can be within html (xhtml?) "elements"
<table>
<tr><td><strong><?php print("This is 'cool'!!"); ?></strong></td></tr>
</table> (or however you structure you code/html)
So the question you guys have is WHEN DO WE GET TO SEE IT?!, and the answer I have is give me some strings of code in formats I have not thought of yet. The ultimate good feeling for a programmer is to release a beta that becomes the package without any changes and, on a more practical note, no way do I wish to recieve 10,000 emails when it does not work. So help me help everyone.
Last edited by gforce301 (2006-05-29 22:07:50)
Duct tape is like the force,
it has a light side, a dark side
and it holds the universe together