Problem with my Content Block

Discussion in 'PHP' started by ElectroSpark, Dec 30, 2007.

  1. #1
    Is there a Function that can execute an external PHP page (I need it to execute a file in the content block in my index page)?
    And don't say Include or Require, these functions require to be the first in the page.
    Something like “Server.Execute()” in ASP ..

    Thanks for help and sorry about my weak English.
     
    ElectroSpark, Dec 30, 2007 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    hey you can use include anywhere on page

    <?

    ?>

    page should be php

    Regards

    Alex
     
    kmap, Dec 30, 2007 IP
  3. kendo1979

    kendo1979 Peon

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <?php
    include ('theFileLocation/fileName');
    ?>

    or

    <?php
    require ('theFileLocation/fileName');
    ?>
     
    kendo1979, Dec 30, 2007 IP
  4. ElectroSpark

    ElectroSpark Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    My mistake.. sorry guys and thank you very much =)
     
    ElectroSpark, Dec 31, 2007 IP