FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » can one make a php function or macro with arguments to generate HTML code?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: can one make a php function or macro with arguments to generate HTML code? [message #181777 is a reply to message #181776] Sat, 01 June 2013 13:23 Go to previous messageGo to previous message
steve nospam is currently offline  steve nospam
Messages: 11
Registered: May 2013
Karma:
Junior Member
On Jun 1, 8:10 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:


> As Luuk said, you can do it in PHP.  But in reality, how much are you
> going to save?  You'll have to copy/paste the PHP code instead of the
> HTML, and your code (which is basically static).
>
> Maybe a better solution would be to use an editor which support macros.
>


Good idea! why do the php processing each time, if it can be done
once.
I thought about this after posting the question, that now the server
has to do this string replacement each time the page is called, which
is silly actually.

What do recommend for this "macro" part? I use notepad now
and it does not have many features. do you one which is HTML/php/
javascript
friendly? so many editors and will take long time to try them all.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UML
Next Topic: Best Online Shop
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 13:21:45 GMT 2024

Total time taken to generate the page: 0.04300 seconds