Php includes? An html file?

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Php includes? An html file?

    Hi all,
    I'm working on table that has to be updated quarterly by a client using
    either Contribute or DW. The table rotates each week and I have them
    included right now in a page using php.inc

    The problem is the client can't be trusted to edit an inc, so I have used an
    html template with the table for manual editing [ I haven't used the DW
    template lock, just sent a DW page].

    My question, is there a way to include the html page within a page in php
    without duplicating the html/header/body tags??

    Just for clarification, the php.html page right now is structured as
    follows:
    html
    Header
    Body

    Location specific content
    Table // variable content from a called php.inc


    /Body
    /Header
    /html

    Thanks
    Jeff
    ~~~~~~~~~~~~
    Jefferis Peterson, Pres.
    Web Design and Marketing
    [url]http://www.PetersonSales.com[/url]


    Jefferis NoSpamme Guest

  2. Similar Questions and Discussions

    1. Problems with HTML includes
      Hi There, I have a really annoying problem which I'm sure there is a simple solution to but my mind has gone blank. Basically I have a website...
    2. application object vs includes file
      Is it better to : - use an application object to store my database connection string or - use an include file on each asp page that needs to...
    3. textArea's and external html files> linking in the html to a new file
      Is it possible to have a link like an <a href... in a html file loaded into a textArea which then if clicked loads a new html into the same...
    4. Problem occurs when included file includes anther file.
      The directory structure is as follows: / |-- demo.php |-- inc/ |-- inc1.php |-- inc2.php === file demo.php == <?php require 'inc/inc1.php';
    5. [PHP] Problem occurs when included file includes anther file.
      Thank you for your reply first. Yes I know I could set include_path either in the php.ini or at runtime.But it's a little bit dirty I think.What...
  3. #2

    Default Re: Php includes? An html file?

    well you could just make the page you send to your client not include the tags
    and that it only includes the table code?

    Otherwise you could make it into a database - which is probably the better
    solution as then there is little way that the code will change.

    Hope this helps

    boy mackman Guest

  4. #3

    Default Re: Php includes? An html file?

    Thanks, I didn't think the table would display without the tags, but it
    appears that it does.
    Jeff


    On 12/22/05 5:48 AM, in article doe096$5ck$1@forums.macromedia.com, "boy
    mackman" <webforumsuser@macromedia.com> wrote:
    > well you could just make the page you send to your client not include the tags
    > and that it only includes the table code?
    >
    > Otherwise you could make it into a database - which is probably the better
    > solution as then there is little way that the code will change.
    >
    > Hope this helps
    >
    ~~~~~~~~~~~~
    Jefferis Peterson, Pres.
    Web Design and Marketing
    [url]http://www.PetersonSales.com[/url]


    Jefferis NoSpamme Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139