Simple question?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • loic_e_bertrand@yahoo.fr

    Simple question?

    I would like to include HTML code generated through a PHP script. The
    reason why I try to do this is because the HTML file depends on a model
    that I keep updating (using GoLive).

    I tried to use the following piece of code:
    <p>The database contains <object type="text/html"
    data="determine size.php"></object> objects.</p>

    Where am I wrong?

    Thank you!

  • Aaron Askew

    #2
    Re: Simple question?

    Try

    <p>The database contains
    <?php include("determ inesize.php"); ?>
    objects.</p>



    -aaron

    Comment

    • loic_e_bertrand@yahoo.fr

      #3
      Re: Simple question?

      It does not seem to be working (?)

      Comment

      • Philip  Olson

        #4
        Re: Simple question?

        What's not working? include() is for including files, such as PHP
        files. Although a little needless overhead exists when include()ing
        plain text (like HTML) it still will work fine. Then again, "not work"
        isn't an official PHP error or easy to decipher so we have no idea what
        your problem is ;-)

        Anyway, read http://php.net/include for details on using include (or
        simply use readfile() to output the HTML files).

        And realize that this must be parsed so I'm not sure how golive works
        or is setup but somehow PHP needs to be initiated, like through the web
        server.

        Comment

        Working...