Announcement

Collapse
No announcement yet.

Can I hide online PHP code from the Perl scripts?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can I hide online PHP code from the Perl scripts?

    Using v9.0.3

    Hi - does anyone know of a way of hiding php code from a perl script.

    I have a site where the product page contains php code that runs on the server to check if a file exists before displaying a piece of code.

    This works fine until there is an error on the page and the ca000001.pl perl script is called. When this happens the php source code is displayed.
    Regards
    David

    #2
    Just tried using my Actinic Cover to at least try to get some pointers in finding a solution to this but they would not provide support for this type of customisation.

    A bit more information.
    The php code only breaks the actinic perl script if there is a ">" in the code. At this point it will display all of the source code after the ">".

    So
    <?php echo "hello"; ?>
    appears to be ignored and works fine.

    <?php echo "<div>hello</div>"; ?>
    will display all of the source code after the first ">". So it displays
    hello</div>"; ?>
    Regards
    David

    Comment


      #3
      Very tricky. This is probably an Actinic bug.

      Hideous workaround would be to use urldecode('%3e') wherever you want a ">" output. E.g.

      <?php echo urldecode("<div%3ehello</div%3e"); ?>

      Appears to work.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Hi Norman - that works just fine.

        Thanks for your help once again.
        Regards
        David

        Comment

        Working...
        X