Php Include path errors.

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

  1. #1

    Default Php Include path errors.

    Regular include files seem to have no problem on my host, pair.com.

    I am finding a problem though with php pages not being able to read includes
    and giving me path errors. Not sure what the problem is. However,
    This format is ignored:
    <!--#include virtual="/headerinc.inc" --> even when in regular html areas.
    While this one gives path errors:
    <?php require_once('/headerinc.inc'); ?>

    This file can be read:
    <?php require_once('headerinc.inc'); ?> but I cannot use a relative link for
    creating a template...

    When I do, it gives this kind of local path
    <?php require_once('file:///HD/WebSites/Joden/menu.inc'); ?> in the
    template which produces online errors, obviously.

    Any solutions?
    ~~~~~~~~~~~~
    Jefferis Peterson, Pres.
    Web Design and Marketing
    [url]http://www.PetersonSales.com[/url]


    Jefferis NoSpamme Guest

  2. Similar Questions and Discussions

    1. include path
      Hi, It seems my include path in php.ini is not ok include_path = ".;"C:\Program Files\EasyPHP1-7\www\JeanPierreDaviau\~inc\";C:\Program...
    2. #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: ...
    3. #26259 [NEW]: relative include path not working with include() from shell command line execut
      From: orsaini at allainet dot com Operating system: Lunux Apache 2.0.47 PHP version: 4.3.2 PHP Bug Type: ...
    4. pear include path
      Hi, Is there a way to find the path to pear libraries (such as DB.php) if you do not have shell access? I have access to some space on an ISP's...
    5. ASP File Include Path
      Hi I have a #Include statement in an Asp page. I want to find the path of the included file at runtime. How can I do that? Please Help! -...
  3. #2

    Default Re: Php Include path errors.

    There's no real point using DW templates if you're using PHP, surely? I
    mean, DW templates are just a substitute for real ones...

    Jefferis NoSpamme wrote:
    > Regular include files seem to have no problem on my host, pair.com.
    >
    > I am finding a problem though with php pages not being able to read
    > includes and giving me path errors. Not sure what the problem is.
    > However,
    > This format is ignored:
    > <!--#include virtual="/headerinc.inc" --> even when in regular html
    > areas. While this one gives path errors:
    > <?php require_once('/headerinc.inc'); ?>
    >
    > This file can be read:
    > <?php require_once('headerinc.inc'); ?> but I cannot use a relative
    > link for creating a template...
    >
    > When I do, it gives this kind of local path
    > <?php require_once('file:///HD/WebSites/Joden/menu.inc'); ?> in the
    > template which produces online errors, obviously.
    >
    > Any solutions?
    > ~~~~~~~~~~~~
    > Jefferis Peterson, Pres.
    > Web Design and Marketing
    > [url]http://www.PetersonSales.com[/url]

    rob::db 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