| Subject: | Re: Template Headaches (PHP includes & links getting rewritten) |
|---|---|
| From: | "glockops" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Mon, 7 Jul 2008 19:24:21 +0000 (UTC) |
| Newsgroups: | macromedia.contribute.general_discussion |
OK, so I've worked on this for a little longer, and here is what I've found.
You apparently cannot use php includes like the one below
<?php include('/home/smwc/public_html/someinclude.php'); ?>
where you include a file from the server's root path.
You can however, use an include like the one below (which does the same thing)
<?php include($_SERVER['DOCUMENT_ROOT'].'someinclude.php'); ?>
I am however, still having a problem with referencing images, stylesheets, and
links that start at the domain's root - example -- /index.php
Contribute still turns a link (to anything) that starts with a ' / ' into a
relative path; resulting in ../../index.php
I really didn't want to specify a domain for the resource, because we will
soon be changing domain names (parallel development server) - but it looks like
I'm going to have to anyway...
Why can't Contribute just leave links starting with a forward slash alone!!!
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: should I advise my client to purchase contribute?, glockops |
|---|---|
| Next by Date: | Re: CSS Layout Issues in Edit Mode, tunghoy |
| Previous by Thread: | Template Headaches (PHP includes & links getting rewritten), glockops |
| Next by Thread: | Re: Template Headaches (PHP includes & links getting rewritten), Connor Doyle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |