Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 13.05.2003, 13:10   #1
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
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 ...
Reply With Quote
Old 13.05.2003, 15:36   #2
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: 09 2002
Location: Vik, Medieval Norway
Age: 35
Posts: 1,513
Downloads: 12
Uploads: 0
Reputation: 43 | 3
Default

hly mi hat pordzi comment anes et toghy.

u mi hat stegh copy/paste ara include() funkcia-i kanchy.
Reply With Quote
Old 14.05.2003, 06:43   #3
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
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!!!!!!!
Reply With Quote
Old 15.05.2003, 14:48   #4
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: 09 2002
Location: Vik, Medieval Norway
Age: 35
Posts: 1,513
Downloads: 12
Uploads: 0
Reputation: 43 | 3
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
Reply With Quote
Old 15.05.2003, 21:51   #5
Консервативн
 
VX's Avatar
 
Join Date: 01 2002
Location: Кавказская Албания
Posts: 889
Downloads: 0
Uploads: 0
Reputation: 0 | 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 With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 13:44.


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