![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Web Development Java/PHP/Perl/ASP and more |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Stalker | 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 ... |
| | |
| | #3 |
| Stalker | 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 ... |
| | |
| | #4 |
| В бой аргхххххххх! | 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 |
| | |
| | #5 |
| Консервативный Демагог 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
__________________ Праздник к нам приходит... |^^^^^^^^^'''^\| ||\__ | ВОДКА-ВОДКА | ||','''|'''''''\_____,_ | _..... _ | ||_ _|'__|_____||.........| | '(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)* |
| | |