Including a file from another website on a Mac (PHP)


i'm working on mac, , websites in folder @ following
location...

macintosh hd > users > myname > sites

let's i'm working on page on website named beta...

hd > users > myname > sites > beta

...and want include file different website, alpha...

hd > users > myname > sites > beta

this include looks on pc, though isn't directed
to website:

$baseinc = $_server["document_root"];
include ($baseinc."/a1/inc/footer/index.php");

can tell me how modify code includes hd >
users > myname > sites > alpha > a1 > inc > footer > index.php on page
in sites > beta? (i'm focused on doing locally; know how
include files across websites online.)

i assume

include ("alpha/a1/inc/footer/index.php");

thanks.


> can tell me how modify code includes hd >
> users > myname > sites > alpha > a1 > inc > footer > index.php on page
> in sites > beta? (i'm focused on doing locally; know how
> include files across websites online.)

includes web server functionality. such, you'll need place
folders inside default apache folders (assuming apache web server
you running on mac).

secondly, ssis crossing sites typically not supported on web server
afaik. example grabbing file different folder,
though...not different site (ie, it's own root directory on
the server).

-darrel




More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support