1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800
|
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: n/a Maintainer: goba Status: ready -->
<reference id="ref.info">
<title>PHP opcik s informcik</title>
<titleabbrev>PHP opcik/infk</titleabbrev>
<refentry id="function.extension-loaded">
<refnamediv>
<refname>extension_loaded</refname>
<refpurpose>Visszaadja, hogy a megadott kiterjeszts be van-e tltve</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>bool</type><methodname>extension_loaded</methodname>
<methodparam><type>string</type><parameter>name</parameter></methodparam>
</methodsynopsis>
<simpara>
Igazat ad vissza ha a <parameter>name</parameter> paramterben
megadott kiterjeszts be van tltve. A klnbz kiterjesztsek
neveit a <function>phpinfo</function> fggvnnyel is kidertheted.
</simpara>
<para>
Lsd mg: <function>phpinfo</function>.
<note>
<para>
Ez a fggvny a 3.0.10-es verzival kerlt a nyelvbe.
</para>
</note>
</para>
</refsect1>
</refentry>
<refentry id="function.dl">
<refnamediv>
<refname>dl</refname>
<refpurpose>egy PHP kiterjeszts betltse futsidben</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>int</type><methodname>dl</methodname>
<methodparam><type>string</type><parameter>library</parameter></methodparam>
</methodsynopsis>
<para>
Betlti azt a PHP kiterjesztst, amit a
<parameter>library</parameter> paramterben adtl meg. Lsd mg az <link
linkend="ini.extension-dir">extension_dir</link> konfigurcis direktvt.
</para>
</refsect1>
</refentry>
<refentry id="function.getenv">
<refnamediv>
<refname>getenv</refname>
<refpurpose>Egy krnyezeti vltoz rtkt adja vissza</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>getenv</methodname>
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
</methodsynopsis>
<para>
Visszaadja a <parameter>varname</parameter> krnyezeti
vltoz rtkt, vagy &false; rtket hiba esetn.
<informalexample>
<programlisting role="php">
<![CDATA[
$ipcim = getenv("REMOTE_ADDR"); // visszaadja az IP cimt a ltogatnak
]]>
</programlisting>
</informalexample>
</para>
<para>
Az sszes krnyezeti vltozt a <function>phpinfo</function>
listzza ki. Ha mlyebben bele szeretnl merlni a tmba,
nzd meg a <ulink url="&url.cgispecs;">CGI
specifikcit</ulink>, klnsen a <ulink
url="&url.cgispec;">krnyezeti vltozkrl szl oldalt</ulink>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-cfg-var">
<refnamediv>
<refname>get_cfg_var</refname>
<refpurpose>
Visszaadja egy PHP konfigurcis bellts rtkt.
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>get_cfg_var</methodname>
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
</methodsynopsis>
<simpara>
Visszaadja a <parameter>varname</parameter> paramterben
megadott konfigurcis bellts rtkt, vagy &false; rtket,
ha hiba keletkezik.
</simpara>
<simpara>
Nem adja vissza a fordtskor belltott rtkeket, vagy az
Apache konfigurcis file-bl beolvasottakat
(php3_configuration_option illetve php_configuration_option direktvk).
</simpara>
<simpara>
Ha le szeretnd ellenrizni, hogy a rendszer egy <link
linkend="configuration.file">konfigurcis file-t</link> hasznl,
prbld meg a cfg_file_path rtket lekrdezni. Ha ez
elrhet, akkor egy konfigurcis file-t hasznl a PHP.
</simpara>
</refsect1>
</refentry>
<refentry id="function.get-current-user">
<refnamediv>
<refname>get_current_user</refname>
<refpurpose>
Az aktulis PHP script tulajdonosnak a nevt adja vissza.
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>get_current_user</methodname>
<void/>
</methodsynopsis>
<simpara>
Visszaadja az aktulis PHP script tulajdonosnak user nevt.
</simpara>
<simpara>
Lsd mg: <function>getmyuid</function>,
<function>getmypid</function>, <function>getmyinode</function>,
s <function>getlastmod</function>.
</simpara>
</refsect1>
</refentry>
<refentry id="function.get-magic-quotes-gpc">
<refnamediv>
<refname>get_magic_quotes_gpc</refname>
<refpurpose>
A 'magic_quotes_gpc' bellts aktulis rtkt adja vissza.
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>long</type><methodname>get_magic_quotes_gpc</methodname>
<void/>
</methodsynopsis>
<simpara>
Visszaadja az aktv konfigurcis belltst a
<link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>-hez.
(0 ha ki van kapcsolva, 1 ha be van kapcsolva).
</simpara>
<simpara>
Lsd mg: <function>get_magic_quotes_runtime</function> s
<function>set_magic_quotes_runtime</function>.
</simpara>
</refsect1>
</refentry>
<refentry id="function.get-magic-quotes-runtime">
<refnamediv>
<refname>get_magic_quotes_runtime</refname>
<refpurpose>
A 'magic_quotes_runtime' bellts aktulis rtkt adja vissza.
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>long</type><methodname>get_magic_quotes_runtime</methodname>
<void/>
</methodsynopsis>
<simpara>
Visszaadja az aktv konfigurcis belltst a
<link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>-hoz.
(0 ha ki van kapcsolva, 1 ha be van kapcsolva).
</simpara>
<simpara>
Lsd mg: <function>get_magic_quotes_gpc</function> s
<function>set_magic_quotes_runtime</function>.
</simpara>
</refsect1>
</refentry>
<refentry id="function.getlastmod">
<refnamediv>
<refname>getlastmod</refname>
<refpurpose>Visszaadja az oldal legutbbi mdostsnak idejt.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>int</type><methodname>getlastmod</methodname>
<void/>
</methodsynopsis>
<para>
Visszaadja az oldal legutbbi mdostsnak idejt.
A visszaadott rtk egy Unix timestamp, azrt alkalmas
pl. a <function>date</function> fggvny bemeneteknt
val alkalmazsra. &false; rtkkel tr vissza hiba esetn.
<example>
<title>getlastmod() plda</title>
<programlisting role="php">
<![CDATA[
// kirja pl., hogy 'Legutbbi mdosts: 2000. 07. 30. 16:49:43.'
echo "Legutbbi mdosts: ".date( "Y. m. d. H:i:s.", getlastmod() );
]]>
</programlisting>
</example>
</para>
<para>
Lsd mg: <function>date</function>,
<function>getmyuid</function>,
<function>get_current_user</function>,
<function>getmyinode</function> s
<function>getmypid</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.getmyinode">
<refnamediv>
<refname>getmyinode</refname>
<refpurpose>Visszaadja az aktulis oldal inode-jt.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>int</type><methodname>getmyinode</methodname>
<void/>
</methodsynopsis>
<para>
Visszaadja az aktulis PHP oldal inode-jt, vagy &false; rtket
hiba esetn.
</para>
<para>
Lsd mg: <function>getmyuid</function>,
<function>get_current_user</function>,
<function>getmypid</function> s
<function>getlastmod</function>.
</para>
<note>
<simpara>
Ez a fggvny termszetesen nem mkdik Windows alatt.
</simpara>
</note>
</refsect1>
</refentry>
<refentry id="function.getmypid">
<refnamediv>
<refname>getmypid</refname>
<refpurpose>Visszaadja a PHP process ID-jt.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>int</type><methodname>getmypid</methodname>
<void/>
</methodsynopsis>
<para>
Visszaadja az aktulis PHP process ID-t, vagy &false; rtket
hiba esetn.
</para>
<para>
Amikor a PHP szerver modulknt zemel, egy script tbb
meghvsa nem garantlt, hogy ms ID-t kap.
</para>
<para>
Lsd mg: <function>getmyuid</function>,
<function>get_current_user</function>,
<function>getmyinode</function> s
<function>getlastmod</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.getmyuid">
<refnamediv>
<refname>getmyuid</refname>
<refpurpose>Visszadja a PHP script tulajdonosnak userID-jt</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>int</type><methodname>getmyuid</methodname>
<void/>
</methodsynopsis>
<simpara>
Visszaadja az aktulis script UID-jt, vagy &false; rtket
hiba esetn.
</simpara>
<simpara>
Lsd mg: <function>getmypid</function>,
<function>get_current_user</function>,
<function>getmyinode</function> s
<function>getlastmod</function>.
</simpara>
</refsect1>
</refentry>
<refentry id="function.getrusage">
<refnamediv>
<refname>getrusage</refname>
<refpurpose>Visszadja az aktulis erforrs-terheltsgeket</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>array</type><methodname>getrusage</methodname>
<methodparam choice="opt"><type>int</type><parameter>who</parameter></methodparam>
</methodsynopsis>
<para>
Ez egy fellet a getrusage(2)-hez. Egy asszociatv tmbt ad vissza,
ami a rendszerhvs ltal adott adatokat tartalmazza. Ha a who
1, a getrusage az RUSAGE_CHILDREN-el hvdik meg.
</para>
<para>
Minden bejegyzs a dokumentlt elem nevekkel rhet el.
<example>
<title>Getrusage plda</title>
<programlisting role="php">
<![CDATA[
$dat = getrusage();
echo $dat["ru_nswap"]; # swap-ek szma
echo $dat["ru_majflt"]; # page fault-ok szma
echo $dat["ru_utime.tv_sec"]; # felhasznlt user id (msodpercek)
echo $dat["ru_utime.tv_usec"]; # felhasznlt user id (egymilliomod msodperc)
]]>
</programlisting>
</example>
Lsd a rendszered manpage-t bvebb informcirt.
</para>
</refsect1>
</refentry>
<refentry id="function.phpinfo">
<refnamediv>
<refname>phpinfo</refname>
<refpurpose>Rengeteg PHP informcit ad vissza.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>int</type><methodname>phpinfo</methodname>
<void/>
</methodsynopsis>
<para>
Rengeteg hasznos informcit ad vissza a PHP aktulis llapotrl.
Ez magban foglalja a PHP konfigurcis belltsait,
a kiterjesztseket, a PHP verziszmt, szerver s krnyezeti
informcikat (ha a PHP szerver modulknt mkdik), a PHP
krnyezeti informciit, opercis rendszer verziszmot,
elrsi utakat, php3.ini (php.ini PHP 4 esetn) belltsokat,
helyi konfigurcis belltsokat, HTTP fejlceket, s
a GNU Public Licence-et.
</para>
<para>
Lsd mg: <function>phpversion</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.phpversion">
<refnamediv>
<refname>phpversion</refname>
<refpurpose>Visszadja az aktulis PHP verziszmot.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>phpversion</methodname>
<void/>
</methodsynopsis>
<para>
Visszad egy stringet, ami az ppen fut PHP feldolgoz verzjt mutatja.
<example>
<title>phpversion() plda</title>
<programlisting role="php">
<![CDATA[
// Kirja, hogy pl. 'Aktulis PHP verzi: 4.0.0'
echo "Aktulis PHP verzi: ".phpversion();
]]>
</programlisting>
</example>
</para>
<para>
Lsd mg: <function>phpinfo</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.php-logo-guid">
<refnamediv>
<refname>php_logo_guid</refname>
<refpurpose>Visszaadja a logo guid-t.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>php_logo_guid</methodname>
<void/>
</methodsynopsis>
<para>
<note>
<para>
Ez a fggvny a PHP 4 Beta 4 verziban kerlt a nyelvbe.
</para>
</note>
</para>
</refsect1>
</refentry>
<refentry id="function.php-sapi-name">
<refnamediv>
<refname>php_sapi_name</refname>
<refpurpose>
Visszaadja, hogy milyen mdon fut a PHP
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>php_sapi_name</methodname>
<void/>
</methodsynopsis>
<simpara>
A <function>php_sapi_name</function> visszad egy kisbets string-et, ami
megadja, hogy milyen fellet van a szerver s a PHP kztt
(Server API, SAPI). CGI PHP esetben, ez a string "cgi",
Apache mod_php esetn "apache", stb.
</simpara>
<para>
<example>
<title><function>php_sapi_name</function> plda</title>
<programlisting role="php">
<![CDATA[
$inter_type = php_sapi_name();
if ($inter_type == "cgi")
print "Te CGI PHP-t hasznlsz\n";
else
print "Te nem CGI PHP-t hasznlsz\n";
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<refentry id="function.putenv">
<refnamediv>
<refname>putenv</refname>
<refpurpose>Bellja egy krnyezeti vltoz rtkt.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>void</type><methodname>putenv</methodname>
<methodparam><type>string</type><parameter>setting</parameter></methodparam>
</methodsynopsis>
<para>
Hozzadja a <parameter>setting</parameter> belltst a szerver krnyezethez.
</para>
<para>
<example>
<title>Egy krnyezeti vltoz belltsa</title>
<programlisting role="php">
<![CDATA[
putenv("EGYEDIID=$egyediid");
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<refentry id="function.set-magic-quotes-runtime">
<refnamediv>
<refname>set_magic_quotes_runtime</refname>
<refpurpose>
Belltja az aktv rtket a magic_quotes_runtime-hoz.
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>long</type><methodname>set_magic_quotes_runtime</methodname>
<methodparam><type>int</type><parameter>new_setting</parameter></methodparam>
</methodsynopsis>
<simpara>
Belltja az aktv konfigurcis rtket a <link
linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>-hoz.
(0 kikapcsolja, 1 bekapcsolja).
</simpara>
<simpara>
Lsd mg: <function>get_magic_quotes_gpc</function>,
<function>get_magic_quotes_runtime</function>.
</simpara>
</refsect1>
</refentry>
<refentry id="function.set-time-limit">
<refnamediv>
<refname>set_time_limit</refname>
<refpurpose>Belltja a maximlis futsi idt</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>void</type><methodname>set_time_limit</methodname>
<methodparam><type>int</type><parameter>seconds</parameter></methodparam>
</methodsynopsis>
<simpara>
Belltja, hogy mennyi msodperc adott maximlisan egy script
futshoz. Ha ezt az rtket a script elri, fatlis hiba
keletkezik. Az alaprtk 30 msodperc, vagy ha ltezik, akkor
a max_execution_time rtk, amit a
<link linkend="configuration.file">konfigurcis file</link>-ban
llthatsz be. Ha nulla az rtke, nincs idkorlt.
</simpara>
<simpara>
Amikor meghvod, a <function>set_time_limit</function> jraindtja
az idmrst &null;rl. Ez azt jelenti, hogy 30 msodperces alapbelltssal
a script futsnak 25. msodpercben tlltod ezt egy
set_time_limit(20) hvssal, a script vglis sszesen 45 msodpercig
futhat.
</simpara>
<simpara>
Azonban a <function>set_time_limit</function>-nek nincs hatsa, ha
'safe mode'-ot hasznlsz. Ilyenkor nincs ms md, mint kikapcsolni
a 'safe mode'-ot, vagy tlltani a <link
linkend="configuration.file">konfigurcis file</link>-ban ezt
az rtket.
</simpara>
</refsect1>
</refentry>
<refentry id="function.zend-logo-guid">
<refnamediv>
<refname>zend_logo_guid</refname>
<refpurpose>Visszaadja a Zend logo guid-t.</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>string</type><methodname>zend_logo_guid</methodname>
<void/>
</methodsynopsis>
<para>
<note>
<para>
Ez a fggvny a PHP 4 Beta 4 verziban kerlt a nyelvbe.
</para>
</note>
</para>
</refsect1>
</refentry>
<refentry id="function.get-loaded-extensions">
<refnamediv>
<refname>get_loaded_extensions</refname>
<refpurpose>
Visszaad egy tmbt, ami tartalmazza a fordtott
s betlttt modulok nevt
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>array</type><methodname>get_loaded_extensions</methodname>
<void/>
</methodsynopsis>
<para>
Ez a fggvny visszaadja a PHP-be fordtott s a betlttt
modulok neveit egy tmmbben
</para>
<para>
Pldul az albbi sor
<informalexample>
<programlisting>
<![CDATA[
print_r(get_loaded_extensions());
]]>
</programlisting>
</informalexample>
egy ilyen listt r ki:
<informalexample>
<programlisting>
<![CDATA[
Array
(
[0] => xml
[1] => wddx
[2] => standard
[3] => session
[4] => posix
[5] => pgsql
[6] => pcre
[7] => gd
[8] => ftp
[9] => db
[10] => Calendar
[11] => bcmath
)
]]>
</programlisting>
</informalexample>
</para>
<para>
Lsd mg: <function>get_extension_funcs</function>
</para>
</refsect1>
</refentry>
<refentry id="function.get-extension-funcs">
<refnamediv>
<refname>get_extension_funcs</refname>
<refpurpose>
Visszaadja egy megadott modul fggvnyeinek a nevt
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>array</type><methodname>get_extension_funcs</methodname>
<methodparam><type>string</type><parameter>module_name</parameter></methodparam>
</methodsynopsis>
<para>
Ez a fggvny visszaadja egy tmbben az sszes fggvny nevt, amit
a <parameter>module_name</parameter> modul definil.
</para>
<para>
Pldul az albbi sorok
<informalexample>
<programlisting>
<![CDATA[
print_r(get_extension_funcs("xml"));
print_r(get_extension_funcs("gd"));
]]>
</programlisting>
</informalexample>
ki fogjk rni az <varname>xml</varname> s <varname>gd</varname>
modulok fggvnyeinek neveit rtelemszeren.
</para>
<para>
Lsd mg: <function>get_loaded_extensions</function>
</para>
</refsect1>
</refentry>
<refentry id="function.get-required-files">
<refnamediv>
<refname>get_required_files</refname>
<refpurpose>
Visszaad egy tmbt a filenevekkel, amiket a require_once()-al hasznltl
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>array</type><methodname>get_required_files</methodname>
<void/>
</methodsynopsis>
<para>
Ez a fggvny visszaadja egy asszociatv tmbben a file-ok neveit,
amiket a scriptedbe tltttl a <function>require_once</function>
hasznlatval. A tmb indexei a filenevek, ahogy a
<function>require_once</function>-al hasznltad ket, a
".php" kiterjeszts nlkl.
</para>
<para>
Az albbi plda
<example>
<title>A require-al s include-al behvott file-ok</title>
<programlisting>
<![CDATA[
<?php
require_once("local.php");
require_once("../inc/global.php");
for ($i=1; $i<5; $i++)
include "util".$i."php";
echo "Required_once files\n";
print_r(get_required_files());
echo "Included_once files\n";
print_r(get_included_files());
?>
]]>
</programlisting>
</example>
ezt a kimenetet generlja:
<informalexample>
<programlisting>
<![CDATA[
Required_once files
Array
(
[local] => local.php
[../inc/global] => /full/path/to/inc/global.php
)
Included_once files
Array
(
[util1] => util1.php
[util2] => util2.php
[util3] => util3.php
[util4] => util4.php
)
]]>
</programlisting>
</informalexample>
</para>
<para>
<note>
<para>
A PHP 4.0.1pl2-ben ez a fggvny felttelezi, hogy a
<varname>required_once</varname>-al beszrt file-ok a
".php" kiterjesztssel rendelkeznek. Ms
kiterjesztssel a fggvny nem fog mkdni.
</para>
</note>
</para>
<para>
Lsd mg: <function>require_once</function>,
<function>include_once</function>,
<function>get_included_files</function>
</para>
</refsect1>
</refentry>
<refentry id="function.get-included-files">
<refnamediv>
<refname>get_included_files</refname>
<refpurpose>
Visszaad egy tmbt a filenevekkel, amiket a include_once()-al hasznltl
</refpurpose>
</refnamediv>
<refsect1>
<title>Lers</title>
<methodsynopsis>
<type>array</type><methodname>get_included_files</methodname>
<void/>
</methodsynopsis>
<para>
Ez a fggvny visszaadja egy asszociatv tmbben a file-ok neveit,
amiket a scriptedbe tltttl az <function>include_once</function>
hasznlatval. A tmb indexei a filenevek, ahogy az
<function>include_once</function>-al hasznltad ket, a
".php" kiterjeszts nlkl.
</para>
<para>
<note>
<para>
A PHP 4.0.1pl2-ben ez a fggvny felttelezi, hogy az
<varname>include_once</varname>-al beszrt file-ok a
".php" kiterjesztssel rendelkeznek. Ms
kiterjesztssel a fggvny nem fog mkdni.
</para>
</note>
</para>
<para>
Lsd mg: <function>require_once</function>,
<function>include_once</function>,
<function>get_required_files</function>
</para>
</refsect1>
</refentry>
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
|