Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7729179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:54:11+00:00 2026-06-01T05:54:11+00:00

I use a program call php easy calendar. Into that, there is a lot

  • 0

I use a program call php easy calendar. Into that, there is a lot of php file, most of them good php or HTML. In some file, there is some variable written in bracket like [time] [date] and so on…. it output a perfect valid value nicely formatted…

because the content of the file that DO something are encrypted with ioncude (what a shame) i cannot learn how they do that… is it a php function or a template engine…

can you explain to me, how to get a echo of a variable by telling it’s name like [name]

please share the light !


maybe it’s a template system, because when i try to use php function, it just don do anything

as request here is the code in file modern.php

<!--head-->
<style type="text/css">
<!--
.tableListings {
    width: 450px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    margin-left: 0px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #666666;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 10px;
    padding-left: 0px;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 12px;
    line-height: 15px;
}
.tableDate {
    color: #000000;
    font-weight: bold;
}
.tableTitle {
    color: #812459;
    font-weight: bold;
}
.tableCategory {
    width: 8px;
}
.tableDescr {
    color: #000000;
    font-weight: normal;
}
.tableTime {
    color: #000000;
    font-weight: normal;
}
.newDate {
    color: #000000;
}
.newTime {
    color: #666666;
}

-->
</style>
<!--head-->


<!--body-->
<table class="tableListings" [mouseover]>
  <tr>
<!--    <td align="left" valign="top" class="tableCategory s2[category]">-->    
<td align="left" valign="top" >
    <span class="tableDate">[date]</span> - <span class="newTime">[time]</span><br />
    <span class="tableTitle">[title]</span>
    <span class="tableDescr">[descr]</span>
<!--    <span class="tableDescr">[categories]</span>
    <span class="tableDescr">[category]</span>
-->        
    </td>
  </tr>
</table>
<!--body-->

<!--foot-->

<!--foot-->

<!--empty-->
<table border="0" class="tableListings tableTime">
  <tr>
    <td bgcolor="#FFFFFF"><center>
      Il n'y a pas d'&eacute;v&eacute;nement au calendrier
    </center></td>
  </tr>
</table>
<!--empty-->
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:54:13+00:00Added an answer on June 1, 2026 at 5:54 am

    Yes, that’s some sort of custom template feature.
    It’s not any functionality that PHP ships with out of the box.

    As for how to do that yourself, a very quick and dirty way are regular expressions:

    $replacements = array('foo' => 'f00', 'bar' => 'b4r');
    echo preg_replace_callback('/\[(\w+)\]/', function ($match) use ($replacements) {
        return $replacements[$match[1]];
    }, $template);
    

    It may be much simpler or much more complicated than this, there are infinite ways to do this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wirte a simple program that use unix sockets to download a html file
I have a java program that generates an HTML file. The Java program takes
I have a program that I use on several sites. It uses require('config.php'); to
I wrote a PHP program that hooks into syslog-ng (via syslog-ng.conf ) and it's
There are many approaches, one could use create a Program and just call the
I'm making a program use JNI to call some native directives. My code is:
I am trying to write an application that will use PHP as a scripting
I have to log into Linux servers from different customers and use there essential
I want to use a php session variable as a parameter when I call
I am developing a program that use DirectShow to grab audio data from media

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.