jompa Posted June 13, 2008 Share Posted June 13, 2008 Hi. Can anyone tell me about how to use php-tags inside html tags without using the php-tag (<?php ?> <? ?> etc.)? Or are thes tags something else? Examples: 1: <a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a> 2: <p>[{_file.DENIED_MESSAGE}]</p> Please help? Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/ Share on other sites More sharing options...
rhodesa Posted June 13, 2008 Share Posted June 13, 2008 huh???? Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564834 Share on other sites More sharing options...
conker87 Posted June 13, 2008 Share Posted June 13, 2008 PHP only parses code within <?php ?>. So no you can't. Never seen that code before. Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564837 Share on other sites More sharing options...
rhodesa Posted June 13, 2008 Share Posted June 13, 2008 is that SMARTY code? Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564842 Share on other sites More sharing options...
Rayhan Muktader Posted June 13, 2008 Share Posted June 13, 2008 Look into smarty templates. Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564873 Share on other sites More sharing options...
haku Posted June 13, 2008 Share Posted June 13, 2008 I've seen a little PERL code that kind of looked like that, but I don't know PERL, so I can't say whether or not it's PERL. Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564887 Share on other sites More sharing options...
dmccabe Posted June 13, 2008 Share Posted June 13, 2008 almost looks the TPL style code you get in things like phpBB Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564901 Share on other sites More sharing options...
rhodesa Posted June 13, 2008 Share Posted June 13, 2008 if only the poster would shed some light on the mystery!!! Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564921 Share on other sites More sharing options...
ag3nt42 Posted June 13, 2008 Share Posted June 13, 2008 that def looks like some customized code.. probably created for use within a web app. like phpbb or the like. Link to comment https://forums.phpfreaks.com/topic/110072-php-code-without-php-tags-in-html/#findComment-564929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.