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.
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
Post a Comment