Search found 5 matches

by domnulnopcea
Mon Jun 18, 2007 5:52 am
Forum: PHP - Code
Topic: php relative path in require or include functions
Replies: 10
Views: 721

in index.php from subdomain1 i require a.php from root...and in a.php i require b.php...

how can i include a.php without the up-level going model (./../../../) and without the http:// form
by domnulnopcea
Mon Jun 18, 2007 5:43 am
Forum: PHP - Code
Topic: php relative path in require or include functions
Replies: 10
Views: 721

please forgive me for the confusion

the root is resursecrestine.ro....

i have many subdomains in the subdomain folder of the resursecrestine.ro folder!

the structure is

resursecrestine.ro
----include
-------a.php
-------b.php
----subdomains
---------subdomain1
--------------index.php
by domnulnopcea
Mon Jun 18, 2007 5:39 am
Forum: PHP - Code
Topic: php relative path in require or include functions
Replies: 10
Views: 721

it will not work

i have tried ...but DOCUMENT_ROOT will take a path from the subdomain...and i want to acces the root/include
by domnulnopcea
Mon Jun 18, 2007 5:31 am
Forum: PHP - Code
Topic: php relative path in require or include functions
Replies: 10
Views: 721

this is the structure of my website / include --------- a.php ---------- b.php subdomains ---------- subdomain1 ---------- subdomain2 when i am executing scripts from subdomain1 let's say index.php i include in index.php something like this include(http://site.ro/include.a.php)..i use the http form ...
by domnulnopcea
Mon Jun 18, 2007 5:13 am
Forum: PHP - Code
Topic: php relative path in require or include functions
Replies: 10
Views: 721

php relative path in require or include functions

can anyone help me??? I have a file named index.php and in this file I include a file from /include folder named a.php! in the /include directory i have a file named b.php! and when i try to include this file from a.php like require ('./include/b.php') it will not include it. The problem is that i h...