php include / image path

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

  1. #1

    Default php include / image path

    I have a site that uses php includes and i need to make those editable. The
    text is not the problem, I can tell the users to access the pages via 'choose
    file'. But since the included file is in a different folder than the including
    one, the embedded images are shown as broken links. This also means that if an
    editor shoud want to change an image, it will be displayed correctly within
    contribute but when rendered online the image path will be wrong again...
    Any suggestions how to work around this issue?
    Thanks.

    Peter

    p.resize 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 / image path

    Have you tried using absolute links: [url]http://www.yourdomain.com/images/yourimage.jpg[/url]
    ThinkInk Guest

  4. #3

    Default Re: php include / image path

    Also you could place the includes at the same level of course and mark 'm as
    'inc.namefile.php' to tell them apart from other files, but I think you
    considered that probably, if not, here's the suggestion...

    ThinkInk Guest

  5. #4

    Default Re: php include / image path

    I did consider changing the structure, but I would very much like to avoid
    this, the site is bilingual and the includes are separated in 'en' & 'de'
    folders, and I would have to give up this structure.

    If I use absolute links for the images, what happens when an editor changes
    one of the images? As far as I saw, Contirbute creates a folder 'images' and a
    relative path... or is there a way to tell Contribute to alway use absolute
    links?

    Thanks

    p.resize 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