Announcement

Collapse
No announcement yet.

PHP in Actinic HTML Question

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

    #16
    What is odd is that when I put in a fragment the code you suggested
    !!<<?php phpinfo(); ?>>!! I didn't see anything in the actinic preview pane.
    That's normal. We're using PHP that runs on your server. <?php ... ?> will not work offline. Actinic's built-in PHP is not in use here.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #17
      Thanks Dave - that was just a test page - the page I am trying to get working is
      http://www.puddlepetcare.co.uk/acata...rd_Winners.php

      weird as its not generating any code - even after a web refresh!
      Kathy Newman

      Comment


        #18
        oops my bad - didn't read the content of the embedded page - it was meant to be there!

        Comment


          #19
          additionally, when a server is configured for silent errors, a php page with syntax or compilation errors will appear simply blank.

          Comment


            #20
            really, in this code this is the only useful part:

            PHP Code:
            <? php
                
            include("http://www.puddlepetcare.co.uk/scratchcard/include/functions.inc.php");
                include(
            "http://www.puddlepetcare.co.uk/scratchcard/include/pagination.php");
                
            connect();
                
            $limit=25;
                if(!isset(
            $_GET[page]))
                    
            $page=1;
                else
                    
            $page=$_GET[page];
                
            $winners getLatestWinners($page,$limit);
                
            $total getTotalWinners();
                if(
            $total>0)
                {
                    
            $p = new pagination();
                    
            $p->Items($total);
                    
            $p->limit($limit);
                    
            $p->target('winners.php');
                    
            $p->currentPage($_GET['page']);
                    
            $p->calculate();
                    
            $p->changeClass("pagination");
                }
              include(
            "templates/winners.html");
            ?>
            tell us where its from, and a testing download, and then perhaps i can get you some actinic code...

            thats last include path is:
            Code:
            http://www.puddlepetcare.co.uk/scratchcard/templates/winners.html

            Comment


              #21
              Thanks Gabe (and everyone else trying to help me!)

              What I am trying to achieve is to get the following into actinic brochure pages so that whole thing is branded as Puddle Pet Care.

              http://www.puddlepetcare.co.uk/scratchcard/

              I have no problems with the standard html pages (such as rules) but the issues start when there is php code.

              Thought this was going to be easy (should have known better )
              Kathy Newman

              Comment

              Working...
              X