Posts: 28
Threads: 8
Joined: Jan 2013
How i can in common.php replace
/**
* Basic file inclusions
*/
include('basic.php');
include('template_functions.php');
include('logging.class.php');
With this
/**
* Basic file inclusions
*/
include('http://mydomain.com/basic.php');
include('http://mydomain.com/template_functions.php');
include('http://mydomain.com/logging.class.php');
This don't work but are you know how to fix this
Posts: 6,266
Threads: 181
Joined: Sep 2011
You cannot include files via http.
Maybe if you explain what you want to do.
Posts: 28
Threads: 8
Joined: Jan 2013
2013-02-15, 01:35:41
(This post was last modified: 2013-02-15, 01:40:21 by wampir.)
My wish to make folder includes separated to get simple
Myfolder to go
http://www.mydomain.com/inc
and getsimple folder to go
http://www.mydomain.com/getsimple/admin
Posts: 6,266
Threads: 181
Joined: Sep 2011
You can adjust php ini include path, if you want to move includes around.
But why ? includes are internal not urls
Posts: 28
Threads: 8
Joined: Jan 2013
2013-02-15, 01:50:49
(This post was last modified: 2013-02-15, 02:30:41 by wampir.)
Hmm. Do you know how to create this to includes like this mydomain.com/basic.php. I think how i can create inherit inc file to work on 2 website.
(2013-02-15, 01:30:39)shawn_a Wrote: You cannot include files via http.
Hmm how i can activate to work with http
Posts: 2,928
Threads: 195
Joined: Feb 2011
(2013-02-15, 01:50:49)wampir Wrote: Hmm how i can activate to work with http
this is against the idea and intention of PHP, in my opinion
for me it never worked with http..., as said already: only internal, with relative paths....