PHP include problems

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default PHP include problems

    I'm having a problem with php includes and contribute. I use a php include to
    bring in my header and footer with the following code.

    <? include ($_SERVER['DOCUMENT_ROOT']."/includes/header.php"); ?>

    Sometimes in contribute when the document will publish it will save the actual
    contents of header.php in the file itself and replace the include line. This is
    a huge problem b/c if I make a change to the header it no longer applies to
    that page. Has anyone else had this problem before? I'm using both contribute
    3.1 and 4 and I seem to only notice it in 4 at the moment. It looks like it's
    writing the file out like the browser sees it rather then how the actual code
    of the template is.

    If no one knows why this is happening is there at least some code I can use to
    tell contribute to ignore an include?

    test1man Guest

  2. Similar Questions and Discussions

    1. Strange Include problems: Repeat regions will Not workwith include file
      I have a strange problem. I have an Index.asp page and on that page I have a poll that is displays. This poll is located in a sub folder, so to call...
    2. PHP include + Music = Problems!!
      Hi all I've a 'little' problem with my website. I added a simple flashplayer, which is on by default. (don't worry: very quiet peaceful...
    3. #26259 [Opn->Bgs]: relative include path not working with include() from shell command line execut
      ID: 26259 Updated by: iliaa@php.net Reported By: orsaini at allainet dot com -Status: Open +Status: ...
    4. [PHP] include () problems
      If you are having a problem that tells you that output was displayed on a given line in a given file. And you found this because after the output...
    5. [PHP] Include Problems
      On Jul 24, 2003, "Eric Fleming" claimed that: |I am having some problems using variables in included files. Can someone |please look at my code...
  3. #2

    Default Re: PHP include problems

    Can someone please help out with this? It will probably take some actually from
    adobe to answer this question but it is a very serious problem. I use
    contribute all the time and sell it to all my clients but if this can not get
    resolved I'm going to have to look into other CMS solutions.

    test1man 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