Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development

Reply
 
Thread Tools

about include_path
Old 13.05.2003, 12:10   #1
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 91
Posts: 853
Rep Power: 5
Default about include_path

hi!
uremn....

drac a winnt/apache/php ....
php.ini file@ c:/winnt-um a, u php-n chotki @ndexic a kardum,

php.ini-um ka tox:
include_path = ".;"

........ inch dnum em, php_info(); eli cuyc a tali - .;

xi???????????

$DOCUMENT_ROOT/path - uzum em includner pahem ....

asum a ...Failed opening '/library/security.php' for inclusion (include_path='.; ') on ....

xi???????????
inchic a?
__________________
... for long you live and high you fly ...

Old 13.05.2003, 14:36   #2
hov
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: 09 2002
Location: Vik, Medieval Norway
Age: 43
Posts: 1,513
Rep Power: 5
Default

hly mi hat pordzi comment anes et toghy.

u mi hat stegh copy/paste ara include() funkcia-i kanchy.

Old 14.05.2003, 05:43   #3
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 91
Posts: 853
Rep Power: 5
Default

haskaca te xi cher azdum, Apache restart er uzum.

bayc, inch a nshanakum .-@ ? kam ./ -@?
include_path -i hamar?

et path@ inchi nkatmamb a?
php folderi? che che?

$DOCUMENT_ROOT-i hamara ....

... hima tes inchn a konkret problem@.

$DOCUMENT_ROOT-i mej unem folder "/lib"
mej@ qcum em header.php u footer.php .....
urish folderum "/home" unem index.php
codi mej unem grac include_path('header.php');
vonc @tex grem?

include_path('/lib/header.php');
include_path('../lib/header.php');
include_path('header.php');

vooooonc grum em chi tenum

ay yete et index.php file@ hanem et papkic durs,
@nenc vor header.php @ngni dranic ners ....... berum a!

tipa @DOCUMENT_ROOT-i mej em qcum, lib papkic includner@
berum a ))

ay et mexanizm@ chem haskanum?
php.ini - i mej daje d:\www\httpd path em tvel
ne a ........

et vonc a ashxatum et mexanizm@???

u mersiner!!!!!!!
__________________
... for long you live and high you fly ...

Old 15.05.2003, 13:48   #4
hov
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: 09 2002
Location: Vik, Medieval Norway
Age: 43
Posts: 1,513
Rep Power: 5
Default

orinak.


current folder
main.php--> <? include ('folder/1.php'); ?>
2.php--> <? echo 'current 2.php' ?>

current folder/folder
2.php--> <? echo 'folder 2.php'; ?>

1.php -->
variant 1 <? include('2.php') ?>
variant 2 <? include('folder/2.php') ?>
variant 3 <? include('folder/folder/2.php') ?>
variant 4 <? include('../folder/folder/2.php') ?>

current folder/folder/folder
2.php--> <?echo 'folder/folder 2.php';?>




output

variant1 current folder 2.php
variant2 folder 2.php
variant3 folder/folder 2.php
variant4 errors

ete current folder-um 2.php chka to
variant 1-i depqum talisa
folder 2.php

Old 15.05.2003, 20:51   #5
VX
Консервативн
 
VX's Avatar
 
Join Date: 01 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 0
Default

Uremn:
include_path == 'c:\php4\pear;.'
nshnakuma vor ete du gres include (kam require etc.) a.php

da php-n kshakana vorpes kam c:\php4\pear, kam tvyal
directory/a.php.

include('/lib/a.php') nshanakuma e vor du uzum es ko root-drivic (entadreq c:\-ic) lib dir-i mej-i a.php file-@ include anes.

Baic idz tvuma ko mot problemy dranuma vor $DOCUMENT_ROOT popoxakany evaluate chi linum, havanabar petq e php.ini-um tal register_globals on.


anyway i'm suggesting you to read php's manual
__________________
Праздник к нам приходит...

|^^^^^^^^^'''^\| ||\__
| ВОДКА-ВОДКА | ||','''|'''''''\_____,_
| _..... _ | ||_ _|'__|_____||.........| |
'(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)*
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 01:54.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.