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 9062095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:39:03+00:00 2026-06-16T15:39:03+00:00

Possible Duplicate: Reference – What does this symbol mean in PHP? I am try

  • 0

Possible Duplicate:
Reference – What does this symbol mean in PHP?

I am try somewhat unsuccessfully to run a test script for the PHP-Nemid. I am trying to work my way through the code, but have become a little lost when it gets to the render function, which makes use of the file “nemid.tpl.php”. When I run the script the template file is literally written to the screen, in the sense that rather then PHP filling in the relevant template variables, it instead just writes the literal PHP code. in other words <?= $some_var_value appears just as that in the rendered page’s source code.

Another thing I don’t understand is what is the meaning of the <?= in the template file. This is not a PHP construct I am familiar with. At first I thought I should change <?= $some_var to <? print $some_var, but in this case it still prints the literal PHP code to the page.

Would be grateful if someone could offer me some insight into what is going on here.

Template file (nemid.tpl.php)

<html>
<body>
        <form id="signedForm" name="signedForm" method="post" action="<?= $_SERVER['PHP_SELF'] ?>">
                <div id="applet">
<!-- div ID used for overlay / modal-box -->
                    <applet name="DANID_DIGITAL_SIGNATUR" tabindex="1" archive="<?= $ServerUrlPrefix ?>/bootapplet/1234567" code="dk.pbs.applet.bootstrap.BootApplet" width="200" height="250" mayscript="mayscript" style="visibility: visible; ">
                        <param name="ServerUrlPrefix" value="<?= $ServerUrlPrefix ?>"> 
                        <param name="ZIP_BASE_URL" value="<?= $ZIP_BASE_URL ?>">
                        <param name="ZIP_FILE_ALIAS" value="<?= $ZIP_FILE_ALIAS ?>">
                        <param name="log_level" value="<?= $log_level ?>"> 
                        <param name="paramcert" value="<?= $paramcert ?>">
                        <param name="signproperties" value="<?= $signproperties ?>"> 
                        <param name="paramsdigest" value="<?= $paramsdigest ?>"> 
                        <param name="signeddigest" value="<?= $signeddigest ?>"> 
                        <param name="MAYSCRIPT" value="<?= $MAYSCRIPT ?>"> 
                    </applet>
                </div>
            <input type="hidden" name="signature">
            <input type="hidden" name="result"> 
        </form>
<script type="text/javascript">
    function onLogonOk(signature) {
        document.signedForm.signature.value=signature;
        document.signedForm.result.value='ok';
        document.signedForm.submit();
    }
    function onLogonCancel() {
        document.signedForm.result.value='cancel';
        document.signedForm.submit();
    }
    function onLogonError(emsg) {
        document.signedForm.result.value=emsg;
        document.signedForm.submit();
    }
</script> 
</body>
</html>

Render function

I have tested the contents of $vars in the below function and can confirm that the extracted variables required by the template are present.

function render($template, $vars = array())
{
    extract($vars);
    ob_start();
    include('../templates/' . $template . '.tpl.php');
    $content = ob_get_contents();
    ob_end_clean();
    return $content;
}
  • 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-16T15:39:04+00:00Added an answer on June 16, 2026 at 3:39 pm

    <?= is a short open tag for echo.

    <?='Hello world'?>
    

    Would output Hello world

    And to answer why it’s not parsing, what’s the filename? Do you have PHP installed and configured to work with your Apache/Nginx/other server?

    Another thing to note is that the template you have utilizes PHP_SELF

    PHP_SELF actually opens up many vulnerabilities and is not recommended to be used. You could use the alternative:

    basename(__FILE__);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Reference - What does this symbol mean in PHP? I have a
Possible Duplicate: Reference - What does this symbol mean in PHP? What's the difference
Possible Duplicate: Reference - What does this symbol mean in PHP? In PHP what
Possible Duplicate: Reference - What does this symbol mean in PHP? I am trying
Possible Duplicate: Reference - What does this symbol mean in PHP? I don't know
Possible Duplicate: Reference - What does this symbol mean in PHP? When I use
Possible Duplicate: Reference - What does this symbol mean in PHP? Is there any
Possible Duplicate: Reference - What does this symbol mean in PHP? What does the
Possible Duplicate: Reference - What does this symbol mean in PHP? Consider this code
Possible Duplicate: Reference - What does this symbol mean in PHP? I've been programming

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.