AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old May 13, 2003, 12:10   #1
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
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 ...
Timewind is offline   Reply With Quote Quote selected
Old May 13, 2003, 14:36   #2
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,497
Rep Power: 7
Reputation: 48
Send a message via ICQ to hov
hly mi hat pordzi comment anes et toghy.

u mi hat stegh copy/paste ara include() funkcia-i kanchy.
hov is offline   Reply With Quote Quote selected
Old May 14, 2003, 05:43   #3
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
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 ...
Timewind is offline   Reply With Quote Quote selected
Old May 15, 2003, 13:48   #4
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,497
Rep Power: 7
Reputation: 48
Send a message via ICQ to hov
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
hov is offline   Reply With Quote Quote selected
Old May 15, 2003, 20:51   #5
Консервативный Демагог
 
VX's Avatar
 
Join Date: Jan 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 7
Reputation: 10
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
__________________
Праздник к нам приходит...

|^^^^^^^^^'''^\| ||\__
| ВОДКА-ВОДКА | ||','''|'''''''\_____,_
| _..... _ | ||_ _|'__|_____||.........| |
'(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)*
VX is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link