File: filesystem.xml

package info (click to toggle)
phpdoc 20020310-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 35,272 kB
  • ctags: 354
  • sloc: xml: 799,767; php: 1,395; cpp: 500; makefile: 200; sh: 140; awk: 51
file content (2860 lines) | stat: -rw-r--r-- 94,553 bytes parent folder | download
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
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.115 Maintainer: adi Status: partial -->
<!-- $Revision: 1.11 $ -->
 <reference id="ref.filesystem">
  <title>System plikw</title>
  <titleabbrev>System plikw</titleabbrev>

  <refentry id="function.basename">
   <refnamediv>
    <refname>basename</refname>
    <refpurpose>
     Zwraca nazw pliku, bdcego skadow cieki
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>basename</methodname>
      <methodparam><type>string</type><parameter>cieka</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>przyrostek</parameter></methodparam>
     </methodsynopsis>
    <para>
     Z podanego acucha zawierajcego ciek do pliku, funkcja
     zwraca sam nazw pliku.
     Jeli koniec nazwy pliku pasuje do parametru <parameter>przyrostek</parameter>
     to zostanie on take obcity.
    </para>
    <para>
     W Windows jako separator cieki uywany jest znak slash
     (<literal>/</literal>) i backslash (<literal>\</literal>).  W
     innych rodowiskach jest to slash (<literal>/</literal>).
    </para>
    <para>
     <example>
      <title><function>basename</function> przykad</title>
      <programlisting role="php">
<![CDATA[
$path = "/home/httpd/html/index.php";
$file = basename ($path);        // $file zawiera "index.php"
$file = basename ($path,".php"); // $file zawiera "index"
]]>
      </programlisting>
     </example>
    </para>
    <note>
     <para>
      Parametr <parameter>przyrostek</parameter> zosta dodany w PHP 4.1.0.
     </para>
    </note>
    <para>
     Patrz take: <function>dirname</function>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.chgrp">
   <refnamediv>
    <refname>chgrp</refname>
    <refpurpose>Zmienia grup pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>chgrp</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>grupa</parameter></methodparam>
     </methodsynopsis>
    <para>
     Dokonuje zmiany grupy pliku podanego w parametrze <parameter>nazwa_pliku</parameter>
     na wybran parametrem <parameter>grupa</parameter> (okrelon przez nazw lub numer).
     Tylko super uytkownik moe zmieni dowolnie grup pliku; inni uytkownicy mog
     zmieni grup pliku na dowoln grup, ktrej czonkiem jest ten uytkownik.
    </para>
    <para>
     Zwraca &true; gdy sukces; w przeciwnym wypadku zwraca &false;.
    </para>
    <para>
     Patrz take <function>chown</function> i
          <function>chmod</function>.
    </para>
 &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.chmod">
   <refnamediv>
    <refname>chmod</refname>
    <refpurpose>Zmienia prawa dostpu do pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>chmod</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
      <methodparam><type>int</type><parameter>prawa</parameter></methodparam>
     </methodsynopsis>
    <para>
     Dokonuje zmiany praw pliku podanego w parametrze
     <parameter>nazwa_pliku</parameter> na podane w
     <parameter>prawa</parameter>.
    </para>
    <para>
     Pamitaj, e parametr <parameter>prawa</parameter> nie jest
     automatycznie zastpowany wartoci oktaln, wic acuchy
     (takie jak "g+w") nie bd poprawnie interpretowane.
     Aby zapewni poprawno operacji musisz parametr
     <parameter>prawa</parameter> poprzedzi prefixem zero (0):
     <informalexample>
      <programlisting role="php">
<![CDATA[
chmod ("/katalog/plik", 755);   // dziesitnie; prawdopodobnie nieprawidowo
chmod ("/katalog/plik", "u+rwx,go+rx"); // acuch; nieprawidowo
chmod ("/katalog/plik", 0755);  // semkowo; poprawna warto dla praw
]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
     Zwraca &true; gdy sukces i &false; w przeciwnym wypadku.
    </para>
    <para>
     Patrz take <function>chown</function> i
     <function>chgrp</function>.
    </para>
 &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.chown">
   <refnamediv>
    <refname>chown</refname>
    <refpurpose>Zmienia waciciela pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>chown</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>uytkownik</parameter></methodparam>
     </methodsynopsis>
    <para>
     Dokonuje zmiany waciciela pliku nazwa_pliku na uytkownika
     podanego w parametrze uytkownik (okrelonego przez nazw lub numer).
     Tylko super uytkownik moe zmieni waciciela pliku.
    </para>
    <para>
      Zwraca &true; gdy sukces; w przeciwnym wypadku zwraca &false;.
    </para>
    <para>
     Patrz take <function>chown</function> i
     <function>chmod</function>.
    </para>
     &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.clearstatcache">
   <refnamediv>
    <refname>clearstatcache</refname>
    <refpurpose>Czyci cache statystki pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>void</type><methodname>clearstatcache</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Wywoywanie systemowych <systemitem>stat</systemitem> lub
     <systemitem>lstat</systemitem> w wikszoci systemw jest
     zbyt kosztowne. Dlatego, wynik ostatniego wywoania kadej z funkcji
     statusowej (przedstawionej poniej) jest przechowywany do wykorzystania
     go przy nastpnym wywoaniu funkcji z t sam nazw pliku.
     Jeli chcesz wymusi ponowne sprawdzenie statusu, pliku ktry jest
     sprawdzany wielokrotnie i mg si zmieni lub znikn, uyj tej
     funkcji aby wyczyci wyniki ostatniego wywoania tych funkcji z pamici.
    </para>
    <para>
     Te wartoci s cachowane tylko przez czas dziaania pojedynczego wywoania.
    </para>
    <para>
     Dotyczy funkcji <function>stat</function>,
     <function>lstat</function>,
     <function>file_exists</function>,
     <function>is_writable</function>,
     <function>is_readable</function>,
     <function>is_executable</function>,
     <function>is_file</function>,
     <function>is_dir</function>,
     <function>is_link</function>,
     <function>filectime</function>,
     <function>fileatime</function>,
     <function>filemtime</function>,
     <function>fileinode</function>,
     <function>filegroup</function>,
     <function>fileowner</function>,
     <function>filesize</function>,
     <function>filetype</function> i
     <function>fileperms</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.copy">
   <refnamediv>
    <refname>copy</refname>
    <refpurpose>Kopiuje plik</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>copy</methodname>
      <methodparam><type>string</type><parameter>rdo</parameter></methodparam>
      <methodparam><type>string</type><parameter>przeznaczenie</parameter></methodparam>
     </methodsynopsis>
    <para>
     Tworzy kopi pliku. Zwraca &true; jeli kopiowanie powiodo si,
     &false; w przeciwnym przypadku.
     <example>
      <title><function>copy</function> przykad</title>
      <programlisting role="php">
<![CDATA[
if (!copy($file, $file.'.bak')) {
    print ("Kopiowanie pliku nie powiodo si...<br>\n");
}
]]>
      </programlisting>
     </example>
    </para>
    <warning>
     <para>
      Jeli docelowy plik istnieje to zostanie nadpisany.
     </para>
    </warning>
    <para>
     Patrz take: <function>move_uploaded_file</function>,
     <function>rename</function>, i cz podrcznika dotyczca
     <link linkend="features.file-upload">obsugi uploadowanych plikw</link>.

    </para>
   </refsect1>
  </refentry>

  <refentry id="function.delete">
   <refnamediv>
    <refname>delete</refname>
    <refpurpose>lepy wpis</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>void</type><methodname>delete</methodname>
      <methodparam><type>string</type><parameter>plik</parameter></methodparam>
     </methodsynopsis>
    <para>
     To jest lepy wpis aby zadowoli ludzi ktrzy szukaj
     <function>unlink</function> lub
     <function>unset</function> w nie waciwym miejscu.
    </para>
    <para>
     Patrz take: <function>unlink</function> do kasowania plikw,
     <function>unset</function> do kasowania zmiennych.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.dirname">
   <refnamediv>
    <refname>dirname</refname>
    <refpurpose>Zwraca nazw katalogu, bdcego skadow cieki</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>dirname</methodname>
      <methodparam><type>string</type><parameter>cieka</parameter></methodparam>
     </methodsynopsis>
    <para>
     Z podanego acucha zawierajcego ciek do pliku, funkcja ta
     zwrci nazw katalogu.
     </para>
    <para>
     W Windows jako separator cieki uywany jest znak slash
     (<literal>/</literal>) i backslash (<literal>\</literal>).  W
     innych rodowiskach jest to slash (<literal>/</literal>).
    </para>
    <para>
     <example>
      <title><function>dirname</function> przykad</title>
      <programlisting role="php">
<![CDATA[
$path = "/etc/passwd";
$file = dirname ($path); // $file zawiera "/etc"
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Patrz take: <function>basename</function>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.disk-free-space">
   <refnamediv>
    <refname>disk_free_space</refname>
    <refpurpose>Zwraca ilo wolnego miejsca w katalogu</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>float</type><methodname>disk_free_space</methodname>
      <methodparam><type>string</type><parameter>katalog</parameter></methodparam>
     </methodsynopsis>
    <para>
     Podajc acuch zawierajcy katalog, funkcja zwrci ilo wolnego
     miejsca (w bajtach) w odpowiadajcym mu systemie plikw lub
     partycji dysku.
    </para>
    <para>
     <example>
      <title><function>disk_free_space</function> przykad</title>
      <programlisting role="php">
<![CDATA[
$df = disk_free_space("/"); // $df zawiera ilo wolnego (w bajtach) miejsca
                          // w "/"
]]>
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.diskfreespace">
   <refnamediv>
    <refname>diskfreespace</refname>
    <refpurpose>Alias do <function>disk_free_space</function></refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>float</type><methodname>diskfreespace</methodname>
      <methodparam><type>string</type><parameter>katalog</parameter></methodparam>
     </methodsynopsis>
    <para>
     To jest odradzany alias do
     <function>disk_free_space</function>.
     Uyj tej funkcji zamiast niego.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.disk-total-space">
   <refnamediv>
    <refname>disk_total_space</refname>
    <refpurpose>Zwraca cakowity rozmiar katalogu</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>float</type><methodname>disk_total_space</methodname>
      <methodparam><type>string</type><parameter>katalog</parameter></methodparam>
     </methodsynopsis>
    <para>
     Podajc acuch zawierajcy katalog, funkcja ta zwrci
     cakowity rozmiar (w bajtach) w odpowiadajcym mu systemie plikw
     lub partycji dysku.
    </para>
    <para>
     <example>
      <title><function>disk_total_space</function> przykad</title>
      <programlisting role="php">
<![CDATA[
$df = disk_total_space("/"); // $df zawiera cakowit liczb bajtw
                             // dostpn w "/"
]]>
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fclose">
   <refnamediv>
    <refname>fclose</refname>
    <refpurpose>Zamyka otwarty wskanik pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>bool</type><methodname>fclose</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Wskanik pliku <parameter>fp</parameter> jest zamykany.
    </para>
    <para>
     &return.success;
    </para>
    <para>
     Wskanik pliku musi by poprawny i musi wskazywa na plik
     poprawnie otwarty przez <function>fopen</function> lub
     <function>fsockopen</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.feof">
   <refnamediv>
    <refname>feof</refname>
    <refpurpose>Sprawdza czy wskanik pliku jest na kocu pliku (EOF)</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>feof</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca &true; jeli wskanik pliku jest na EOF lub gdy zdarzy si bd;
     w przeciwnym wypadku zwraca &false;.
    </para>
    <para>
     Wskanik pliku musi by poprawny i musi wskazywa na plik
     poprawnie otwarty przez <function>fopen</function>,
     <function>popen</function> lub <function>fsockopen</function>.
   </para>
   </refsect1>
  </refentry>

  <refentry id="function.fflush">
   <refnamediv>
    <refname>fflush</refname>
    <refpurpose>Flushes the output to a file</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>fflush</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     This function forces a write of all buffered output to the
     to the resource pointed to by the file handle
     <parameter>fp</parameter>. Returns &true; if succesful, &false;
     otherwise.
    </para>
    <para>
     The file pointer must be valid, and must point to a file
     successfully opened by <function>fopen</function>,
     <function>popen</function>, or <function>fsockopen</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fgetc">
   <refnamediv>
    <refname>fgetc</refname>
    <refpurpose>Pobiera znak ze wskanika pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>fgetc</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca acuch zawierajcy pojedynczy znak odczytany z
     pliku wskazanego przez fp.
     Zwraca &false; gdy EOF (koniec pliku).
    </para>
    <para>
     Wskanik pliku musi by poprawny i musi wskazywa na plik
     poprawnie otwarty przez <function>fopen</function> lub
     <function>fsockopen</function>.
   </para>
    <para>
     Patrz take <function>fread</function>, <function>fopen</function>,
     <function>popen</function>, <function>fsockopen</function> i
     <function>fgets</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fgetcsv">
   <refnamediv>
    <refname>fgetcsv</refname>
    <refpurpose>
     Pobiera lini ze wskanika pliku i przetwarza na pola CSV
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>array</type><methodname>fgetcsv</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>dugo</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>
        delimiter
       </parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Dziaa podobnie do <function>fgets</function> tylko, e
     <function>fgetcsv</function> przetwarza odczytan lini na pola
     w formacie <acronym>CSV</acronym> i zwraca tablic zawierajc
     odczytane pola.  Delimiterem pl jest przecinek, chyba e
     okrelisz inny delimiter w opcjonalnym 3 parametrze.
    </simpara>
    <simpara>
     <parameter>Fp</parameter> musi by poprawnym wskanikiem do pliku
     poprawnie otworzonym przez <function>fopen</function> lub
     <function>fsockopen</function>.
    </simpara>
    <simpara>
     Dugo musi by wiksza ni najdusza linia znajdujca si
     w pliku CSV (wliczajc w to znaki koca linii).
    </simpara>
    <simpara>
     <function>fgetcsv</function> zwraca &false; gdy wystpi bd, wczajc
     w to koniec pliku.
    </simpara>
    <simpara>
     Nota bene. Pusta linia w pliku CSV zostanie zwrcona jako tablica
     skadajca si z pojedynczego pola &null; i nie zostanie potraktowana
     jako bd.
    </simpara>
    <example>
     <title>
      <function>fgetcsv</function> przykad - Odczyt i wywietlenie caej
      zawartoci pliku CSV
     </title>
     <programlisting role="php">
<![CDATA[
$row = 1;
$fp = fopen ("test.csv","r");
while ($data = fgetcsv ($fp, 1000, ",")) {
    $num = count ($data);
    print "<p> $num pola w linii $row: <br>";
    $row++;
    for ($c=0; $c < $num; $c++) {
        print $data[$c] . "<br>";
    }
}
fclose ($fp);
]]>
     </programlisting>
    </example>
   </refsect1>
  </refentry>

  <refentry id="function.fgets">
   <refnamediv>
    <refname>fgets</refname>
    <refpurpose>Pobiera lini ze wskanika pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>fgets</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>dugo</parameter></methodparam>
      </methodsynopsis>
    <para>
     Zwraca acuch o dugoci - 1 bajtw odczytany z pliku wskazanego
     przez fp. Czytanie koczy si kiedy przeczytano dugo - 1 bajtw
     lub gdy wystpi znak nowej linii (jest on doczany do zwracanego
     wyniku) lub gdy wystpi znak koca pliku EOF (ktrykolwiek
     przypadek zdarzy si pierwszy). Jeli nie zostaa okrelona dugo,
     domylnie przyjmuje 1k (1024 bajty).
    </para>
    <para>
     W przypadku bdu, zwraca &false;.
    </para>
    <para>
     Gwna puapka:
    </para>
    <simpara>
     Osoby uywajce semantyki 'C' z fgets powinni zauway rnic
     w sposobie zwracania EOF.
    </simpara>
    <simpara>
     Wskanik pliku musi by poprawny i musi wskazywa na plik
     poprawnie otwarty przez <function>fopen</function>,
     <function>popen</function> lub
     <function>fsockopen</function>.
   </simpara>
    <para>
     Prosty przykad:
     <example>
      <title>Czytanie pliku linia po linii</title>
      <programlisting role="php">
<![CDATA[
$fd = fopen ("/tmp/inputfile.txt", "r");
while (!feof ($fd)) {
    $buffer = fgets($fd, 4096);
    echo $buffer;
}
fclose ($fd);
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Patrz take <function>fread</function>, <function>fopen</function>,
     <function>popen</function>, <function>fgetc</function>,
     <function>fsockopen</function> i
     <function>socket_set_timeout</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fgetss">
   <refnamediv>
    <refname>fgetss</refname>
    <refpurpose>
     Pobiera lini ze wskanika pliku i usuwa tagi HTML
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>fgetss</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>dugo</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>
        dozwolone_tagi
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     Dziaa identycznie jak <function>fgets</function>, tylko e fgetss
     dokonuje usunicia wszystkich tagw HTML i PHP z tektu, ktry
     przeczyta.
    </para>
    <para>
     Moesz okreli opcjonalny 3 parametr aby wyszczeglni tagi, ktre
     nie powinny zosta usunite.
     <note>
      <para>
       <parameter>dozwolone_tagi</parameter> zosta dodany w PHP 3.0.13,
       PHP4B3.
      </para>
     </note>
    </para>
    <para>
     Patrz take <function>fgets</function>, <function>fopen</function>,
     <function>fsockopen</function>, <function>popen</function> i
     <function>strip_tags</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.file">
   <refnamediv>
    <refname>file</refname>
    <refpurpose>Czyta ca zawarto pliku do tablicy</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>array</type><methodname>file</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>uyj_include_path</parameter></methodparam>
     </methodsynopsis>
    <para>
     Dziaa identycznie jak <function>readfile</function>, tylko e
     <function>file</function> zwraca plik w tablicy. Kady
     element tablicy odpowiada linii w pliku. Elementy tablicy zawieraj
     znak nowej linii.
    </para>
    <note>
     <para>
     Kada linia w wynikowej tabeli zawiera znak nowej lini, jeli chcesz
     si ich pozby to musisz uy <function>trim</function>.
     </para>
    </note>
    <para>
     Moesz uy opcjonalnego 2 parametru i ustawi go na "1", jeli
     chcesz szuka pliku take w
     <link linkend="ini.include-path">include_path</link>.
    </para>
    <para>
     <informalexample>
      <programlisting role="php">
<![CDATA[
<?php
// pobiera stron WWW do tablicy i wywietla j
$fcontents = file ('http://www.php.net/');
while (list ($line_num, $line) = each ($fcontents)) {
    echo "<b>Linia $line_num:</b>; ", htmlspecialchars ($line), "<br>\n";
}

// pobiera stron WWW i zapisuje do acucha
$fcontents = join ('', file ('http://www.php.net/'));
?>
]]>
      </programlisting>
     </informalexample>
    </para>
    &note.not-bin-safe;
    &tip.fopen-wrapper;
    <para>
     Patrz take <function>readfile</function>,
     <function>fopen</function>, <function>fsockopen</function> i
     <function>popen</function>.
    </para>
   </refsect1>
  </refentry>


  <refentry id="function.file-exists">
   <refnamediv>
    <refname>file_exists</refname>
    <refpurpose>Sprawdza czy plik istnieje</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>bool</type><methodname>file_exists</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Zwraca &true; jeli podany plik w parametrze
     <parameter>nazwa_pliku</parameter> istnieje; &false; w przeciwnym wypadku.
    </simpara>
    <simpara>
     Ta funkcja nie dziaa <link
     linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    <simpara>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </simpara>
   </refsect1>
  </refentry>


  <refentry id="function.fileatime">
   <refnamediv>
    <refname>fileatime</refname>
    <refpurpose>Pobiera ostatni czas dostpu do pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>fileatime</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Zwraca czas, kiedy nastpi ostatni dostp do pliku lub &false; w
     przypadku bdu. Czas jest zwracany w postaci unix'owego znacznika
     czasu.
     </simpara>
    <simpara>
      Wyniki tej funkcji s cachowane. Zobacz
      <function>clearstatcache</function> aby uzyska wicej szczegw.
    </simpara>
    <simpara>
     Notka: Czas dostpu do pliku przypuszczalnie zmienia si
     zawsze kiedy bloki danych pliku s odczytywane. To moe
     kosztowa utrat wydajnoci aplikacji, ktra regularnie
     korzystaj z wielu plikw lub katalogw. Niektre unix'owe
     systemy plikw mog by montowane z wyczonym uaktualnianiem
     czasu dostpu, aby podnie wydajno takich aplikacji;
     USENETowy katalog roboczy wiadomoci s powszechnym przykadem.
     Na takich systemach plikw ta funkcja bdzie bezuyteczna.
    </simpara>
    <simpara>
     Ta funkcja nie dziaa <link
     linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.filectime">
   <refnamediv>
    <refname>filectime</refname>
    <refpurpose>Gets inode change time of file</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>filectime</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns the time the file was last changed, or &false; in case of
     an error. The time is returned as a Unix timestamp.
    </para>
    <para>
     The results of this function are cached. See
     <function>clearstatcache</function> for more details.
    </para>
    <para>
     Note: In most Unix filesystems, a file is considered
     changed when its inode data is changed; that is, when
     the permissions, owner, group, or other metadata
     from the inode is updated. See also
     <function>filemtime</function> (which is what you want to use
     when you want to create "Last Modified" footers on web pages) and
     <function>fileatime</function>.
    </para>
    <para>Note also that in some Unix texts the ctime of a file is
     referred to as being the creation time of the file. This is wrong.
     There is no creation time for Unix files in most Unix filesystems.
    </para>
    <simpara>
     This function will not work on <link
     linkend="features.remote-files">remote files</link>; the file to
     be examined must be accessible via the server's filesystem.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.filegroup">
   <refnamediv>
    <refname>filegroup</refname>
    <refpurpose>Pobiera grup pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>filegroup</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca identyfikator grupy do ktrej naley waciciel pliku lub
     &false; w przypadku bdu. Identyfikator grupy zwracany jest
     w postaci numerycznej, uyj
     <function>posix_getgrgid</function> aby rozwin go w nazw grupy.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    &note.no-windows;
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.fileinode">
   <refnamediv>
    <refname>fileinode</refname>
    <refpurpose>Pobiera i-wze pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>fileinode</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca numer i-wza pliku lub &false; w przypadku bdu.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.filemtime">
   <refnamediv>
    <refname>filemtime</refname>
    <refpurpose>Pobiera czas ostatniej modyfikacji pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>filemtime</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca czas, kiedy plik by ostatnio modyfikowany lub &false; w przypadku
     bdu. Czas jest zwracany w postaci unix'owego znacznika czasu.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    <para>Notka: Ta funkcja zwraca czas kiedy bloki danych pliku zostay
     zapisane, to jest, czas kiedy zawarto pliku zostaa zmieniona.
     Uyj <function>date</function> na wyniku tej funkcji aby otrzyma
     czyteln dat modyfikacji do uycia jej w stopkach stron.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fileowner">
   <refnamediv>
    <refname>fileowner</refname>
    <refpurpose>Pobiera waciciela pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>fileowner</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca identyfikator uytkownika, ktry jest wacicielem pliku, lub
     &false; w przypadku bdu. Identyfikator uytkownika zwracany jest
     w postaci numerycznej, uyj
     <function>posix_getpwuid</function> aby rozwin go w nazw uytkownika.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.fileperms">
   <refnamediv>
    <refname>fileperms</refname>
    <refpurpose>Pobiera prawa dostpu pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>fileperms</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca prawa dostpu pliku, lub &false; w przypadku bdu.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.filesize">
   <refnamediv>
    <refname>filesize</refname>
    <refpurpose>Pobiera rozmiar pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>filesize</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca rozmiar pliku w bajtach, lub &false; w przypadku bdu.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.filetype">
   <refnamediv>
    <refname>filetype</refname>
    <refpurpose>Pobiera typ pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>filetype</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca typ pliku. Moliwe wartoci to fifo, char, dir, block,
     link, file, and unknown.</para> <para> Zwraca &false;
     w przypadku bdu.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.flock">
   <refnamediv>
    <refname>flock</refname>
    <refpurpose>Portable advisory file locking</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>bool</type><methodname>flock</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>operation</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>
        wouldblock
       </parameter></methodparam>
     </methodsynopsis>
    <simpara>
     PHP supports a portable way of locking complete files in an
     advisory way (which means all accessing programs have to use the
     same way of locking or it will not work).
    </simpara>
    <simpara>
     <function>flock</function> operates on <parameter>fp</parameter>
     which must be an open file
     pointer. <parameter>operation</parameter> is one of the following
     values:
    </simpara>
    <para>
     <itemizedlist>
      <listitem>
       <simpara>
         To acquire a shared lock (reader), set
         <parameter>operation</parameter> to LOCK_SH (set to 1 prior to
         PHP 4.0.1).
       </simpara>
      </listitem>
      <listitem>
       <simpara>
         To acquire an exclusive lock (writer), set
         <parameter>operation</parameter> to LOCK_EX (set to 2 prior to
         PHP 4.0.1).
       </simpara>
      </listitem>
      <listitem>
       <simpara>
         To release a lock (shared or exclusive), set
         <parameter>operation</parameter> to LOCK_UN (set to 3 prior to
         PHP 4.0.1).
       </simpara>
      </listitem>
      <listitem>
       <simpara>
         If you don't want <function>flock</function> to block while
         locking, add LOCK_NB (4 prior to PHP 4.0.1) to
         <parameter>operation</parameter>.
       </simpara>
      </listitem>
     </itemizedlist>
    </para>
    <simpara>
     <function>flock</function> allows you to perform a simple
     reader/writer model which can be used on virtually every platform
     (including most Unix derivatives and even Windows).  The optional third
     argument is set to &true; if the lock would block (EWOULDBLOCK
     errno condition)
    </simpara>
    <simpara>
     <function>flock</function> returns &true; on success and &false; on
     error (e.g. when a lock could not be acquired).
    </simpara>
    <note>
     <para>
      Because <function>flock</function> requires a file pointer, you may have
      to use a special lock file to protect access to a file that you intend
      to truncate by opening it in write mode (with a "w" or "w+" argument to
      <function>fopen</function>).
     </para>
    </note>
    <warning>
     <para>
      <function>flock</function> will not work on NFS and many other networked
      file systems. Check your operating system documentation for more
      details.
     </para>
     <para>
      On some operating systems <function>flock</function> is implemented at
      the process level. When using a multithreaded server API like ISAPI you
      may not be able to rely on <function>flock</function> to protect files
      against other PHP scripts running in parallel threads of the same server
      instance!
     </para>
    </warning>
   </refsect1>
  </refentry>

  <refentry id="function.fopen">
   <refnamediv>
    <refname>fopen</refname>
    <refpurpose>Otwiera plik lub URL</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>fopen</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
      <methodparam><type>string</type><parameter>tryb</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>
        uyj_include_path
       </parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Jeli <parameter>nazwa_pliku</parameter> zaczyna si od "http://" (nie
     jest rozrniana wielo liter), jest otwierane poczenie HTTP 1.0
     do wybranego serwera, strona jest dana uywajc metody HTTP GET
     i wskanik pliku jest ustawiany na pocztku ciaa odpowiedzi.
     Nagwek 'Host:' jest wysyany z daniem pozwalajcym
     uchwyci oparte o nazw wirtualne hosty.
    </simpara>
    <simpara>
     Zauwa, e wskanik pliku pozwala tobie wydoby tylko
     <emphasis>ciao</emphasis> odpowiedzi; Nie moesz
     dosta si do nagwka HTTP uywajc tej funkcji.
    </simpara>
    <simpara>
     Wersje przed PHP 4.0.5 nie obsuguj przekierowa HTTP. Z tego powodu
     katalogi musz zawiera koczce slashe.
    </simpara>
    <simpara>
     Jeli <parameter>nazwa_pliku</parameter> zaczyna si od "ftp://"
     (nie jest rozrniana wielko znakw), jest otwierane poczenie
     ftp do podanego serwera i zwracany jest wskanik do danego pliku.
     jeli serwer nie obsuguje trybu pasywnego ftp, ta funkcja zawiedzie.
     Moesz otwiera pliki albo do odczytu lub zapisu przez ftp (ale nie
     oba tryby rwnoczenie).
    </simpara>
    <simpara>
     Jeli <parameter>nazwa_pliku</parameter> jest jedn z moliwoci
     "php://stdin", "php://stdout" lub "php://stderr" zostanie otworzony
     odpowiedni strumie stdio.  (To zostao wprowadzone w PHP 3.0.13;
     w wczeniejszych wersjach, aby dosta si do strumienia stdio
     nazwa_pliku musi mie posta "/dev/stdin" lub "/dev/fd/0".)
    </simpara>
    <simpara>
     Jeli <parameter>nazwa_pliku</parameter> zaczyna si czymkolwiek innym
     zostanie otworzony plik z systemu plikw i zostanie zwrcony wskanik
     pliku.
    </simpara>
    <simpara>
     Jeli otwieranie zwiedzie, funkcja zwrci &false;.
    </simpara>
    <para>
     <parameter>tryb</parameter> moe by dowolny z poniszych:
     <itemizedlist>
      <listitem>
       <simpara>
        'r' - Otwrz tylko do odczytu; ustawia wskanik pliku na pocztku
        pliku.
       </simpara>
      </listitem>
      <listitem>
       <simpara>
        'r+' - Otwrz do odczytu i zapisu;  ustawia wskanik pliku na pocztku
        pliku.
       </simpara>
      </listitem>
      <listitem>
       <simpara>
        'w' - Otwrz tylko do zapisu; ustawia wskanik pliku na pocztku
        pliku i obcina plik (zeruje) do 0 dugoci.
        Jeli plik nie istnieje to prbuje go utworzy.
       </simpara>
      </listitem>
      <listitem>
       <simpara>
        'w+' - Otwrz do odczytu i zapisu; ustawia wskanik pliku na pocztku
        pliku i obcina plik (zeruje) do 0 dugoci.
        Jeli plik nie istnieje to prbuje go utworzy.
      </simpara>
      </listitem>
      <listitem>
       <simpara>
        'a' - Otwrz tylko do zapisu; ustawia wskanik pliku na kocu
        pliku. Jeli plik nie istnieje to prbuje go utworzy.
      </simpara>
      </listitem>
      <listitem>
       <simpara>
        'a+' - Otwrz do odczytu i zapisu; ustawia wskanik pliku na kocu
        pliku. Jeli plik nie istnieje to prbuje go utworzy.
       </simpara>
      </listitem>
     </itemizedlist>
    </para>
    <note>
     <para>
      Parametr <parameter>tryb</parameter> moe zawiera liter
      'b'. To jest uyteczne tylko na systemach, ktre rozrniaj
      pliki pomidzy binarne i tekstowe (np. Windows. To jest
      bezuyteczne na Unixach)
      Jeli nie potrzebne zostanie zignorowane.
     </para>
    </note>
    <para>
     Moesz uy opcjonalnego 3 parametru i ustawi go na "1", jeli
     chcesz szuka pliku take w
     <link linkend="ini.include-path">include_path</link>.
    </para>
    <para>
     <example>
      <title><function>fopen</function> przykad</title>
      <programlisting role="php">
<![CDATA[
$fp = fopen ("/home/rasmus/file.txt", "r");
$fp = fopen ("/home/rasmus/file.gif", "wb");
$fp = fopen ("http://www.php.net/", "r");
$fp = fopen ("ftp://user:password@example.com/", "w");
]]>
      </programlisting>
     </example>
    </para>
    <simpara>
     Jeli dowiadczasz problemw z czytaniem i zapisywaniem do plikw
     i uywasz PHP jako modu serwera, pamitaj, e pliki i katalogi
     ktre uywasz musz by osigalne dla procesu serwera.
    </simpara>
    <para>
     Na platformach Windows, uwaaj na zastosowanie znakw ucieczki
     dla wszystkich uytych w ciece do pliku backslashy, lub
     uyj slash'y.
     <informalexample>
      <programlisting role="php">
<![CDATA[
$fp = fopen ("c:\\data\\info.txt", "r");
]]>
      </programlisting>
     </informalexample>
    </para>
    <simpara>
     Patrz take <function>fclose</function>,
     <function>fsockopen</function>,
     <function>socket_set_timeout</function> i
     <function>popen</function>.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.fpassthru">
   <refnamediv>
    <refname>fpassthru</refname>
    <refpurpose>
     Output all remaining data on a file pointer
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>fpassthru</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Reads to EOF on the given file pointer from the current position and
     writes the results to standard output.
    </simpara>
    <simpara>
     If an error occurs, <function>fpassthru</function> returns
     &false;.
    </simpara>
    <simpara>
     The file pointer must be valid, and must point to a file successfully
     opened by <function>fopen</function>, <function>popen</function>, or
     <function>fsockopen</function>.  You may need to call
     <function>rewind</function> to reset the file pointer to the beginning of
     the file if you have already written data to the file.  The file is
     closed when <function>fpassthru</function> is done reading it (leaving
     <parameter>fp</parameter> useless).
    </simpara>
    <simpara>
     If you just want to dump the contents of a file to stdout you may
     want to use the <function>readfile</function>, which saves you
     the <function>fopen</function> call.
    </simpara>
    <note>
     <para>
      When using <function>fpassthru</function> on a binary file on Windows
      systems, you should make sure to open the file in binary mode by
      appending a <literal>b</literal> to the mode used in the call to
      <function>fopen</function>.
     </para>
    </note>
    <simpara>
     See also <function>readfile</function>,
     <function>fopen</function>, <function>popen</function>, and
     <function>fsockopen</function>
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.fputs">
   <refnamediv>
    <refname>fputs</refname>
    <refpurpose>Zapisuje do wskanika pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>fputs</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>string</type><parameter>str</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>
        dugo
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>fputs</function> jest aliasem do
     <function>fwrite</function>, i jest identyczna w kadym przypadku.  Zauwa,
     e parametr <parameter>dugo</parameter> jest opcjonalny i jeli
     go nie podasz to cay acuch zostanie zapisany.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fread">
   <refnamediv>
    <refname>fread</refname>
    <refpurpose>Odczyt plikw binarnie bezpieczny</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>string</type><methodname>fread</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>dugo</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     <function>fread</function> odczytuje do
     <parameter>dugo</parameter> bajtw ze wskanika pliku
     <parameter>fp</parameter>. Czytanie koczy si gdy
     odczytano ju <parameter>dugo</parameter> bajtw
     lub osignito EOF, cokolwiek nastpi pierwsze.
    </simpara>
    <para>
     <informalexample>
      <programlisting role="php">
<![CDATA[
// pobierz zawarto pliku do acucha
$filename = "/usr/local/something.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
]]>
      </programlisting>
     </informalexample>
    </para>
    <note>
     <para>
      W systemach, ktre rozrniaj pliki na binarne i tekstowe
      (np. Windows) plik musi zosta otworzony z 'b' wczonym do
      parametru tryb funkcji <function>fopen</function>.
     </para>
    </note>
    <para>
     <informalexample>
      <programlisting role="php">
<![CDATA[
$filename = "c:\\files\\somepic.gif";
$fd = fopen ($filename, "rb");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
]]>
      </programlisting>
     </informalexample>
    </para>
    <simpara>
     Patrz take <function>fwrite</function>, <function>fopen</function>,
     <function>fsockopen</function>, <function>popen</function>,
     <function>fgets</function>, <function>fgetss</function>,
     <function>fscanf</function>, <function>file</function> i
     <function>fpassthru</function>.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.fscanf">
   <refnamediv>
    <refname>fscanf</refname>
    <refpurpose>Przetwarza dane z pliku wedug formatu</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>mixed</type><methodname>fscanf</methodname>
      <methodparam><type>int</type><parameter>uchwyt</parameter></methodparam>
      <methodparam><type>string</type><parameter>format</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>war1</parameter></methodparam>
     </methodsynopsis>
    <para>
     Funkcja <function>fscanf</function> jest podobna do
     <function>sscanf</function>, ale pobiera dane wejciowe z pliku
     skojarzonego z <parameter>uchwyt</parameter>em i interpretuje je
     zgodnie z podanych <parameter>format</parameter>em.
     Jeli tylko dwa parametry zostan podane do funkcji, przetworzone
     wartoci zostan zwrcone w tablicy.
     W przeciwnym razie, jeli opcjonalne parametry zostan podane,
     funkcja zwrci numer przypisany do wartoci. Opcjonalny parametr
     musi by podawany przez referencje.
     <example>
      <title><function>fscanf</function> Przykad</title>
      <programlisting role="php">
<![CDATA[
$fp = fopen ("users.txt","r");
while ($userinfo = fscanf ($fp, "%s\t%s\t%s\n")) {
    list ($name, $profession, $countrycode) = $userinfo;
    //... zrb co z wartociami
}
fclose($fp);
]]>
      </programlisting>
     </example>
     <example>
      <title>users.txt</title>
      <programlisting>
<![CDATA[
javier  argonaut        pe
hiroshi sculptor        jp
robert  slacker us
luigi   florist it
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Patrz take <function>fread</function>, <function>fgets</function>,
     <function>fgetss</function>, <function>sscanf</function>,
     <function>printf</function> i <function>sprintf</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fseek">
   <refnamediv>
    <refname>fseek</refname>
    <refpurpose>Seeks on a file pointer</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>fseek</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>offset</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>whence</parameter></methodparam>
     </methodsynopsis>
    <para>
     Sets the file position indicator for the file referenced by
     <parameter>fp</parameter>.The new position, measured in bytes
     from the beginning of the file, is obtained by adding
     <parameter>offset</parameter> to the position specified by
     <parameter>whence</parameter>, whose values are defined as
     follows:
     <simplelist>
      <member>SEEK_SET - Set position equal to
      <parameter>offset</parameter> bytes.</member> <member>SEEK_CUR -
      Set position to current location plus
      <parameter>offset</parameter>.</member> <member>SEEK_END - Set
      position to end-of-file plus
      <parameter>offset</parameter>. (To move to a position before the
      end-of-file, you need to pass a negative value in
      <parameter>offset</parameter>.)</member>
   </simplelist>
    </para>
    <para>If <parameter>whence is not specified, it is assumed to be
    SEEK_SET.</parameter>
    </para>
    <para>
     Upon success, returns 0; otherwise, returns -1. Note that seeking
     past EOF is not considered an error.
    </para>
    <para>
     May not be used on file pointers returned by
     <function>fopen</function> if they use the "http://" or "ftp://"
     formats.
    </para>
    <note>
     <para>
      The <parameter>whence</parameter> argument was added after PHP 4.0 RC1.
     </para>
    </note>
    <para>
     See also <function>ftell</function> and
     <function>rewind</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fstat">
   <refnamediv>
    <refname>fstat</refname>
    <refpurpose>
     Pobiera informacje o pliku uywajc otwartego wskanika pliku
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>array</type><methodname>fstat</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zbiera statystyki otwartego pliku przez wskanik pliku fp.
     Ta funkcja jest podobna do funkcji
     <function>stat</function> z wyjtkiem tego, e operuje na otwartym
     wskaniku pliku zamiast na nazwi pliku.
    </para>
    <para>
     Zwraca tablic ze statystyk pliku z nastpujcymi elementami:
     <orderedlist>
      <listitem><simpara>urzdzenie</simpara></listitem>
      <listitem><simpara>i-wze</simpara></listitem>
      <listitem><simpara>liczba dowiza</simpara></listitem>
      <listitem><simpara>identyfikator waciciela</simpara></listitem>
      <listitem><simpara>identyfikator grupy waciciela</simpara></listitem>
      <listitem><simpara>typ urzdzenia (jeli urzdzenie inode)*</simpara></listitem>
      <listitem><simpara>rozmiar w bajtach</simpara></listitem>
      <listitem><simpara>czas ostatniego dostpu</simpara></listitem>
      <listitem><simpara>czas ostatniej modyfikacji</simpara></listitem>
      <listitem><simpara>czas ostatniej zmiany</simpara></listitem>
      <listitem><simpara>rozmiar bloku w systemie plikw I/O *</simpara></listitem>
      <listitem><simpara>liczba przydzielonych blokw</simpara></listitem>
     </orderedlist>
     * - poprawny tylko w systemach obsugujcych type st_blksize -- inne systemy
     (np. Windows) zwracaj -1</para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.ftell">
   <refnamediv>
    <refname>ftell</refname>
    <refpurpose>Tells file pointer read/write position</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>ftell</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns the position of the file pointer referenced by fp; i.e.,
     its offset into the file stream.
    </para>
    <para>
     If an error occurs, returns &false;.
    </para>
    <para>
     The file pointer must be valid, and must point to a file
     successfully opened by <function>fopen</function> or
     <function>popen</function>.
    </para>
    <para>
     See also <function>fopen</function>, <function>popen</function>,
     <function>fseek</function> and <function>rewind</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.ftruncate">
   <refnamediv>
    <refname>ftruncate</refname>
    <refpurpose>
     Przycina plik do podanej dugoci.
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>ftruncate</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>rozmiar</parameter></methodparam>
     </methodsynopsis>
    <para>
     Pobiera wskanik pliku, fp, i przycina plik do dugoci, rozmiar.
    </para>
    <para>
     &return.success;
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.fwrite">
   <refnamediv>
    <refname>fwrite</refname>
    <refpurpose>Binary-safe file write</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>fwrite</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>string</type><parameter>string</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>
        length
       </parameter></methodparam>
     </methodsynopsis>
    <simpara>
     <function>fwrite</function> writes the contents of
     <parameter>string</parameter> to the file stream pointed to by
     <parameter>fp</parameter>. If the <parameter>length</parameter>
     argument is given, writing will stop after
     <parameter>length</parameter> bytes have been written or the end
     of <parameter>string</parameter> is reached, whichever comes
     first.
    </simpara>
    <simpara>
     Note that if the <parameter>length</parameter> argument is given,
     then the <link
     linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>
     configuration option will be ignored and no slashes will be
     stripped from <parameter>string</parameter>.
    </simpara>
    <note>
     <para>
      On systems which differentiate between binary and text files
      (i.e. Windows) the file must be opened with 'b' included in
      <function>fopen</function> mode parameter.
     </para>
    </note>
    <simpara>
     See also <function>fread</function>, <function>fopen</function>,
     <function>fsockopen</function>, <function>popen</function>, and
     <function>fputs</function>.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.set-file-buffer">
   <refnamediv>
    <refname>set_file_buffer</refname>
    <refpurpose>
     Sets file buffering on the given file pointer
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>set_file_buffer</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
      <methodparam><type>int</type><parameter>buffer</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Output using <function>fwrite</function> is normally buffered at
     8K.  This means that if there are two processess wanting to write
     to the same output stream (a file), each is paused after 8K of
     data to allow the other to write.  <function>set_file_buffer</function>
     sets the buffering for write operations on the given filepointer
     <parameter>fp</parameter> to <parameter>buffer</parameter> bytes.
     If <parameter>buffer</parameter> is 0 then write operations are
     unbuffered.  This ensures that all writes with
     <function>fwrite</function> are completed before other processes
     are allowed to write to that output stream.
    </simpara>
    <simpara>
     The function returns 0 on success, or EOF if the request cannot
     be honored.
    </simpara>
    <para>
     The following example demonstrates how to use
     <function>set_file_buffer</function> to create an unbuffered stream.
     <example>
      <title><function>set_file_buffer</function> example</title>
      <programlisting role="php">
<![CDATA[
$fp=fopen($file, "w");
if($fp){
  set_file_buffer($fp, 0);
  fputs($fp, $output);
  fclose($fp);
}
]]>
      </programlisting>
     </example>
    </para>

    <simpara>
     See also <function>fopen</function>, <function>fwrite</function>.
    </simpara>
   </refsect1>
  </refentry>

  <refentry id="function.is-dir">
   <refnamediv>
    <refname>is_dir</refname>
    <refpurpose>Mwi czy nazwa_pliku jest katalogiem</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_dir</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca &true; jeli nazwa_pliku istnieje i jest katalogiem.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    <para>
     Patrz take <function>is_file</function> i
     <function>is_link</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.is-executable">
   <refnamediv>
    <refname>is_executable</refname>
    <refpurpose>Mwi czy plik jest wykonywalny</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_executable</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca &true; jeli plik istnieje i jest wykonywalny.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
    <para>
     Patrz take <function>is_file</function> i
     <function>is_link</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.is-file">
   <refnamediv>
    <refname>is_file</refname>
    <refpurpose>
     Mwi czy nazwa_pliku jest zwykym plikiem
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_file</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca &true; jesli nazwa_pliku istnieje i jest zwykym plikiem.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <para>
     Patrz take <function>is_dir</function> i
     <function>is_link</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.is-link">
   <refnamediv>
    <refname>is_link</refname>
    <refpurpose>
     Mwi czy nazwa_pliku jest dowizaniem symbolicznym
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_link</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zwraca &true; jeli nazwa_pliku istnieje i jest dowizaniem symbolicznym.
    </para>
    <para>
     Wyniki tej funkcji s cachowane. Zobacz
     <function>clearstatcache</function> aby uzyska wicej szczegw.
    </para>
    <para>
     Patrz take <function>is_dir</function>,
     <function>is_file</function> i <function>readlink</function>.
    </para>
    <simpara>
     Ta funkcja nie dziaa
     <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany
     plik musi by dostpny przez system plikw serwera.
    </simpara>
   &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.is-readable">
   <refnamediv>
    <refname>is_readable</refname>
    <refpurpose>
     Tells whether the filename is readable
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_readable</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns &true; if the filename exists and is readable.
    </para>
    <para>
     Keep in mind that PHP may be accessing the file as the user
     id that the web server runs as (often 'nobody'). Safe mode
     limitations are not taken into account.
    </para>
    <para>
     The results of this function are cached. See
     <function>clearstatcache</function> for more details.
    </para>
    <simpara>
     This function will not work on <link
     linkend="features.remote-files">remote files</link>; the file to
     be examined must be accessible via the server's filesystem.
    </simpara>
    <para>
     See also <function>is_writable</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.is-writable">
   <refnamediv>
    <refname>is_writable</refname>
    <refpurpose>Tells whether the filename is writable</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_writable</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns &true; if the filename exists and is writable.  The
     filename argument may be a directory name allowing you to check
     if a directory is writeable.
    </para>
    <para>
     Keep in mind that PHP may be accessing the file as the user id
     that the web server runs as (often 'nobody'). Safe mode
     limitations are not taken into account.
    </para>
    <para>
     The results of this function are cached. See
     <function>clearstatcache</function> for more details.
    </para>
    <simpara>
     This function will not work on <link
     linkend="features.remote-files">remote files</link>; the file to
     be examined must be accessible via the server's filesystem.
    </simpara>
    <para>
     See also <function>is_readable</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.is-writeable">
   <refnamediv>
    <refname>is_writeable</refname>
    <refpurpose>Tells whether the filename is writable</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_writeable</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
     </methodsynopsis>
    <para>
     This is an alias for <function>is_writable</function>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.is-uploaded-file">
   <refnamediv>
    <refname>is_uploaded_file</refname>
    <refpurpose>Mwi czy plik zosta przysany przez HTTP POST.</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>bool</type><methodname>is_uploaded_file</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>

    <para>
     Ta funkcja jest dostpna tylko w wersjach PHP 3 pniejszych od
     3.0.16 i w wersjach PHP 4 pniejszych od 4.0.2.
    </para>

    <para>
     Zwraca &true; jeli plik o nazwie <varname>nazwa_pliku</varname>
     zosta przysany (upload) przez HTTP POST. To pomaga upewni si,
     czy zoliwy uytkownik nie prbuje oszuka skryptu pracujcego
     na plikach, tak aby dziaa on na plikach na ktrych nie powinien
     -- na przykad
     <filename>/etc/passwd</filename>.
    </para>

    <para>
     Ten rodzaj testw jest szczeglnie wany jeli istnieje szansa, e
     cokolwiek robimy z przysanymi plikami moe zdradzi ich
     tre uytkownikowi lub nawet innym uytkownikom tego samego
     systemu.
    </para>

    <para>
     Patrz take <function>move_uploaded_file</function> i sekcj
     <link linkend="features.file-upload">Handling file uploads</link>
     aby zobaczy przykadowe skrypty.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.link">
   <refnamediv>
    <refname>link</refname>
    <refpurpose>Create a hard link</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>link</methodname>
      <methodparam><type>string</type><parameter>target</parameter></methodparam>
      <methodparam><type>string</type><parameter>link</parameter></methodparam>
     </methodsynopsis>
    <para>
    <function>link</function> creates a hard link.</para>
    <para>
     See also the <function>symlink</function> to create soft links,
     and <function>readlink</function> along with
     <function>linkinfo</function>.
    </para>
     &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.linkinfo">
   <refnamediv>
    <refname>linkinfo</refname>
    <refpurpose>Gets information about a link</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>linkinfo</methodname>
      <methodparam><type>string</type><parameter>path</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>linkinfo</function> returns the st_dev field of the
     UNIX C stat structure returned by the lstat system call.  This
     function is used to verify if a link (pointed to by
     <parameter>path</parameter>) really exists (using the same method
     as the S_ISLNK macro defined in stat.h).  Returns 0 or &false; in
     case of error.
    </para>
    <para>
     See also <function>symlink</function>, <function>link</function>,
     and <function>readlink</function>.
    </para>
    &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.mkdir">
   <refnamediv>
    <refname>mkdir</refname>
    <refpurpose>Makes directory</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mkdir</methodname>
      <methodparam><type>string</type><parameter>pathname</parameter></methodparam>
      <methodparam><type>int</type><parameter>mode</parameter></methodparam>
     </methodsynopsis>
    <para>
     Attempts to create the directory specified by pathname.
    </para>
    <para>
     Note that you probably want to specify the mode as an
     octal number, which means it should have a leading zero.
     The mode is also modified by the current umask, which you
     can change using <function>umask</function>.
     <informalexample>
      <programlisting role="php">
<![CDATA[
mkdir ("/path/to/my/dir", 0700);
]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
     Returns &true; on success and &false; on failure.
    </para>
    <para>
     See also <function>rmdir</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.move-uploaded-file">
   <refnamediv>
    <refname>move_uploaded_file</refname>
    <refpurpose>Moves an uploaded file to a new location.</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>bool</type><methodname>move_uploaded_file</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
      <methodparam><type>string</type><parameter>destination</parameter></methodparam>
     </methodsynopsis>

    <para>
     This function checks to ensure that the file designated by
     <parameter>filename</parameter> is a valid upload file (meaning
     that it was uploaded via PHP's HTTP POST upload mechanism). If
     the file is valid, it will be moved to the filename given by
     <parameter>destination</parameter>.
    </para>

    <para>
     If <parameter>filename</parameter> is not a valid upload file,
     then no action will occur, and
     <function>move_uploaded_file</function> will return
     &false;. 
    </para>

    <para>
     If <parameter>filename</parameter> is a valid upload file, but
     cannot be moved for some reason, no action will occur, and
     <function>move_uploaded_file</function> will return
     &false;. Additionally, a warning will be issued.
    </para>

    <para>
     This sort of check is especially important if there is any chance
     that anything done with uploaded files could reveal their
     contents to the user, or even to other users on the same
     system.
    </para>

    &note.sm.uidcheck;

    <warning>
     <para>
      If the destination file already exists, it will be overwritten.
     </para>
    </warning>

    <para>
     See also <function>is_uploaded_file</function>, and the section
     <link linkend="features.file-upload">Handling file uploads</link>
     for a simple usage example.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.parse-ini-file">
   <refnamediv>
    <refname>parse_ini_file</refname>
    <refpurpose>Parse a configuration file</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>parse_ini_file</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
      <methodparam choice="opt"><type>bool</type><parameter>
        process_sections
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>parse_ini_file</function> loads in the
     ini file specified in <parameter>filename</parameter>,
     and returns the settings in it in an associative array.
     By setting the last <parameter>process_sections</parameter>
     parameter to &true;, you get a multidimensional array, with
     the section names and settings included. The default
     for <parameter>process_sections</parameter> is &false;
    </para>
    <note>
     <para>
      This function has nothing to do with the
      <filename>php.ini</filename> file. It is already processed,
      the time you run your script. This function can be used to
      read in your own application's configuration files.
     </para>
    </note>
    <para>
     The structure of the ini file is similar to that of
     the <filename>php.ini</filename>'s.
    </para>
    <para>
     <example>
      <title>Contents of sample.ini</title>
      <programlisting>
<![CDATA[
; This is a sample configuration file
; Comments start with ';', as in php.ini

[first_section]
one = 1
five = 5

[second_section]
path = /usr/local/bin
]]>
      </programlisting>
     </example>
    </para>
    <para>
     <example>
      <title><function>parse_ini_file</function> example</title>
      <programlisting>
<![CDATA[
<?php

// Parse without sections
$ini_array = parse_ini_file("sample.ini");
print_r($ini_array);

// Parse with sections
$ini_array = parse_ini_file("sample.ini", TRUE);
print_r($ini_array);

?>
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Would produce:
     <informalexample>
      <programlisting>
<![CDATA[
Array
(
    [one] => 1
    [five] => 5
    [path] => /usr/local/bin
)
Array
(
    [first_section] => Array
        (
            [one] => 1
            [five] => 5
        )

    [second_section] => Array
        (
            [path] => /usr/local/bin
        )

)
]]>
      </programlisting>
     </informalexample>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.pathinfo">
   <refnamediv>
    <refname>pathinfo</refname>
    <refpurpose>Returns information about a file path</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>pathinfo</methodname>
      <methodparam><type>string</type><parameter>path</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>pathinfo</function> returns an associative array
     containing information about <parameter>path</parameter>.  The
     following array elements are returned:
     <parameter>dirname</parameter>, <parameter>basename</parameter>
     and <parameter>extension</parameter>.
    </para>
    <para>
     <example>
      <title><function>pathinfo</function> Example</title>
      <programlisting role="php">
<![CDATA[
<?php

$path_parts = pathinfo("/www/htdocs/index.html");

echo $path_parts["dirname"] . "\n";
echo $path_parts["basename"] . "\n";
echo $path_parts["extension"] . "\n";

?>
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Would produce:
     <informalexample>
      <programlisting>
<![CDATA[
/www/htdocs
index.html
html
]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
     See also <function>dirname</function>,
     <function>basename</function>, <function>parse_url</function>
     and <function>realpath</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.pclose">
   <refnamediv>
    <refname>pclose</refname>
    <refpurpose>Closes process file pointer</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>pclose</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Closes a file pointer to a pipe opened by
     <function>popen</function>.
    </para>
    <para>
     The file pointer must be valid, and must have been returned by a
     successful call to <function>popen</function>.
    </para>
    <para>
     Returns the termination status of the process that was
     run.
    </para>
    <para>
     See also <function>popen</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.popen">
   <refnamediv>
    <refname>popen</refname>
    <refpurpose>Opens process file pointer</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>popen</methodname>
      <methodparam><type>string</type><parameter>command</parameter></methodparam>
      <methodparam><type>string</type><parameter>mode</parameter></methodparam>
     </methodsynopsis>
    <para>
     Opens a pipe to a process executed by forking the command given
     by command.
    </para>
    <para>
     Returns a file pointer identical to that returned by
     <function>fopen</function>, except that it is unidirectional (may
     only be used for reading or writing) and must be closed with
     <function>pclose</function>. This pointer may be used with
     <function>fgets</function>, <function>fgetss</function>, and
     <function>fputs</function>.
    </para>
    <para>
     If an error occurs, returns &false;.
    </para>
    <para>
     <informalexample>
      <programlisting role="php">
<![CDATA[
$fp = popen ("/bin/ls", "r");
]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
     See also <function>pclose</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.readfile">
   <refnamediv>
    <refname>readfile</refname>
    <refpurpose>Outputs a file</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>readfile</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>
        use_include_path
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     Reads a file and writes it to standard output.
    </para>
    <para>
     Returns the number of bytes read from the file. If an error
     occurs, &false; is returned and unless the function was called as
     @readfile, an error message is printed.
    </para>
    <para>
     If <parameter>filename</parameter> begins with "http://"
     (not case sensitive), an HTTP 1.0 connection is opened to the
     specified server and the text of the response is written to
     standard output.
    </para>
    <para>
     Versions prior to PHP 4.0.5 do not handle HTTP redirects. Because
     of this, directories must include trailing slashes.
    </para>
    <para>
     If <parameter>filename</parameter> begins with "ftp://"
     (not case sensitive), an ftp connection to the specified server is
     opened and the requested file is written to standard output. If the server
     does not support passive mode ftp, this will fail.
    </para>
    <para>
     If <parameter>filename</parameter> begins with neither
     of these strings, the file will be opened from the filesystem and
     its contents written to standard output.
    </para>
    <para>
     You can use the optional second parameter and set it to "1", if
     you want to search for the file in the <link
     linkend="ini.include-path">include_path</link>, too.
    </para>
    <para>
     See also <function>fpassthru</function>,
     <function>file</function>, <function>fopen</function>,
     <function>include</function>, <function>require</function>, and
     <function>virtual</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.readlink">
   <refnamediv>
    <refname>readlink</refname>
    <refpurpose>Returns the target of a symbolic link</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>string</type><methodname>readlink</methodname>
      <methodparam><type>string</type><parameter>path</parameter></methodparam>
     </methodsynopsis>
    <para>
    <function>readlink</function> does the same as the readlink C
    function and returns the contents of the symbolic link path or 0
    in case of error.
    </para>
    <para>
     See also <function>is_link</function>,
     <function>symlink</function> and
     <function>linkinfo</function>.
    </para>
     &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.rename">
   <refnamediv>
    <refname>rename</refname>
    <refpurpose>Renames a file</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>rename</methodname>
      <methodparam><type>string</type><parameter>oldname</parameter></methodparam>
      <methodparam><type>string</type><parameter>newname</parameter></methodparam>
     </methodsynopsis>
    <para>
     Attempts to rename <parameter>oldname</parameter> to
     <parameter>newname</parameter>.
    </para>
    <para>
     Returns &true; on success and &false; on failure.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.rewind">
   <refnamediv>
    <refname>rewind</refname>
    <refpurpose>Rewind the position of a file pointer</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>rewind</methodname>
      <methodparam><type>int</type><parameter>fp</parameter></methodparam>
     </methodsynopsis>
    <para>
     Sets the file position indicator for fp to the beginning of the
     file stream.</para> <para> If an error occurs, returns 0.</para>
     <para> The file pointer must be valid, and must point to a file
     successfully opened by <function>fopen</function>.
    </para>
     <note>
     <para>
      If you have opened the file in append ("a") mode, any data you write
      to the file will always be appended, regardless of the file position.
     </para>
    </note>
    <para>
     See also <function>fseek</function> and
     <function>ftell</function>.
    </para>
   </refsect1>
  </refentry>


  <refentry id="function.rmdir">
   <refnamediv>
    <refname>rmdir</refname>
    <refpurpose>Removes directory</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>rmdir</methodname>
      <methodparam><type>string</type><parameter>dirname</parameter></methodparam>
     </methodsynopsis>
    <para>
     Attempts to remove the directory named by pathname. The directory
     must be empty, and the relevant permissions must permit.
     this.
    </para>
    <para>
     If an error occurs, returns 0.
    </para>
    <para>
     See also <function>mkdir</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.stat">
   <refnamediv>
    <refname>stat</refname>
    <refpurpose>Gives information about a file</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>stat</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
     </methodsynopsis>
    <para>
     Gathers the statistics of the file named by filename.
    </para>
    <para>
     Returns an array with the statistics of the file with the
     following elements:
     <orderedlist>
      <listitem><simpara>device</simpara></listitem>
      <listitem><simpara>inode</simpara></listitem>
      <listitem><simpara>inode protection mode</simpara></listitem>
      <listitem><simpara>number of links</simpara></listitem>
      <listitem><simpara>user id of owner</simpara></listitem>
      <listitem><simpara>group id owner</simpara></listitem>
      <listitem><simpara>device type if inode device *</simpara></listitem>
      <listitem><simpara>size in bytes</simpara></listitem>
      <listitem><simpara>time of last access</simpara></listitem>
      <listitem><simpara>time of last modification</simpara></listitem>
      <listitem><simpara>time of last change</simpara></listitem>
      <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem>
      <listitem><simpara>number of blocks allocated</simpara></listitem>
     </orderedlist>
     * - only valid on systems supporting the st_blksize type--other
     systems (i.e. Windows) return -1.
    </para>
    <para>
     Returns &false; in case of error.
    </para>
    <para>
     <function>stat</function> doesn't handle URL as does <function>fopen</function>.
    </para>
    <para>
     The results of this function are cached. See
     <function>clearstatcache</function> for more details.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.lstat">
   <refnamediv>
    <refname>lstat</refname>
    <refpurpose>
     Gives information about a file or symbolic link
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>lstat</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
     </methodsynopsis>
    <para>
     Gathers the statistics of the file or symbolic link named by
     filename.  This function is identical to the
     <function>stat</function> function except that if the
     <parameter>filename</parameter> parameter is a symbolic link, the
     status of the symbolic link is returned, not the status of the
     file pointed to by the symbolic link.
    </para>
    <para>
     Returns an array with the statistics of the file with the
     following elements:
     <orderedlist>
      <listitem><simpara>device</simpara></listitem>
      <listitem><simpara>inode</simpara></listitem>
      <listitem><simpara>inode protection mode</simpara></listitem>
      <listitem><simpara>number of links</simpara></listitem>
      <listitem><simpara>user id of owner</simpara></listitem>
      <listitem><simpara>group id owner</simpara></listitem>
      <listitem><simpara>device type if inode device *</simpara></listitem>
      <listitem><simpara>size in bytes</simpara></listitem>
      <listitem><simpara>time of last access</simpara></listitem>
      <listitem><simpara>time of last modification</simpara></listitem>
      <listitem><simpara>time of last change</simpara></listitem>
      <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem>
      <listitem><simpara>number of blocks allocated</simpara></listitem>
     </orderedlist>
     * - only valid on systems supporting the st_blksize type--other
     systems (i.e. Windows) return -1</para>
    <para>
     The results of this function are cached. See
     <function>clearstatcache</function> for more details.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.realpath">
   <refnamediv>
    <refname>realpath</refname>
    <refpurpose>Returns canonicalized absolute pathname</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>string</type><methodname>realpath</methodname>
      <methodparam><type>string</type><parameter>path</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>realpath</function> expands all symbolic links and
     resolves references to '/./', '/../' and extra '/' characters in
     the input <parameter>path</parameter> and return the canonicalized
     absolute pathname.  The resulting path will have no symbolic link,
     '/./' or '/../' components.
    </para>
    <para>
     <example>
      <title><function>realpath</function> example</title>
      <programlisting role="php">
<![CDATA[
$real_path = realpath ("../../index.php");
]]>
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.symlink">
   <refnamediv>
    <refname>symlink</refname>
    <refpurpose>Creates a symbolic link</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>symlink</methodname>
      <methodparam><type>string</type><parameter>target</parameter></methodparam>
      <methodparam><type>string</type><parameter>link</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>symlink</function> creates a symbolic link
     from the existing <parameter>target</parameter> with
     the specified name <parameter>link</parameter>.
    </para>
    <para>
     See also <function>link</function> to create hard links,
     and <function>readlink</function> along with
     <function>linkinfo</function>.
    </para>
   &note.no-windows;
   </refsect1>
  </refentry>

  <refentry id="function.tempnam">
   <refnamediv>
    <refname>tempnam</refname>
   <refpurpose>Create file with unique file name</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>string</type><methodname>tempnam</methodname>
      <methodparam><type>string</type><parameter>dir</parameter></methodparam>
      <methodparam><type>string</type><parameter>prefix</parameter></methodparam>
     </methodsynopsis>
    <para>
     Creates a file with a unique filename in the specified directory.
     If the directory does not exist, <function>tempnam</function> may
     generate a file in the system's temporary directory, and return
     the name of that.
    </para>
    <para>
     Prior to PHP 4.0.6, the behaviour of the
     <function>tempnam</function> function was system dependent. On
     Windows the TMP environment variable will override the
     <parameter>dir</parameter> parameter, on Linux the TMPDIR
     environment variable has precedence, while SVR4 will always use
     your <parameter>dir</parameter> parameter if the directory it
     points to exists. Consult your system documentation on the
     tempnam(3) function if in doubt.
    </para>
    <para>
     Returns the new temporary filename, or the &false; string on
     failure.
     <example>
      <title><function>tempnam</function> example</title>
      <programlisting role="php">
<![CDATA[
$tmpfname = tempnam ("/tmp", "FOO");

$fp = fopen($tmpfname, "w");
fwrite($fp, "writing to tempfile");
fclose($fp);

// do here something

unlink($tmpfname);
]]>
      </programlisting>
     </example>
    </para>
    <note>
     <simpara>
      This function's behavior changed in 4.0.3. The temporary file is also
      created to avoid a race condition where the file might appear in the
      filesystem between the time the string was generated and before the
      the script gets around to creating the file. Note, that you need
      to remove the file in case you need it no more, it is not done
      automatically.
     </simpara>
    </note>
    <para>
     See also <function>tmpfile</function>, <function>unlink</function>.
    </para>
   </refsect1>
  </refentry>

   <refentry id="function.tmpfile">
   <refnamediv>
    <refname>tmpfile</refname>
    <refpurpose>Tworzy plik tymczasowy</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>tmpfile</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Tworzy plik tymczasowy o unikalnej nazwie i otwiera go 
     w trybie d zapisu, zwraca uchwyt pliku, podobnie jak
     <function>fopen</function>.
     Plik jest automatycznie kasowany przy zamykaniu (po uyciu
     <function>fclose</function>), lub gdy skrypt si zakoczy.
    </para>
    <para>
     Jeli chcesz uzyska wicej szczegw, zajrzyj do dokumentacji
     twojego systemu dotyczcej funkcji <literal>tmpfile(3)</literal>, 
     albo do pliku nagwkowego <filename>stdio.h</filename>.
    </para>
    <para>
     <example>
      <title><function>tmpfile</function> przykad</title>
      <programlisting role="php">
<![CDATA[
$temp = tmpfile();
fwrite($temp, "zapisywanie do pliku tymczasowego");
fclose($temp); // to kasuje plik
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Patrz take <function>tempnam</function>.
    </para>
   </refsect1>
  </refentry>

 <refentry id="function.touch">
   <refnamediv>
    <refname>touch</refname>
    <refpurpose>Ustawia czas modyfikacji pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>touch</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>
         czas
        </parameter></methodparam>
     </methodsynopsis>
    <para>
     Prbuje ustawi czas modyfikacji pliku o nazwie nazwa_pliku
     na warto podan przez czas. Jeli opcja czas nie jest
     podana, uywa czasu biecego.
    </para>
    <para>
     Jeli plik nie istnieje, to zostanie utworzony.
    </para>
    <para>
     Zwraca &true; gdy sukces i &false; w przeciwnym wypadku.
     <example>
      <title><function>touch</function> przykad</title>
      <programlisting role="php">
<![CDATA[
if (touch ($FileName)) {
    print "$FileName czas modyfikacji zosta
           zmieniony na obecn date i czas";
} else {
    print "Przykro mi ale Nie Mog zmieni czasu modyfikacji pliku $FileName";
}
]]>
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.umask">
   <refnamediv>
    <refname>umask</refname>
    <refpurpose>Changes the current umask</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>umask</methodname>
      <methodparam><type>int</type><parameter>mask</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>umask</function> sets PHP's umask to mask &amp; 0777 and
     returns the old umask. When PHP is being used as a server module,
     the umask is restored when each request is finished.
    </para>
    <para>
     <function>umask</function> without arguments simply returns the
     current umask.
    </para>
     &note.no-windows;
   </refsect1>
  </refentry>

<refentry id="function.unlink">
   <refnamediv>
    <refname>unlink</refname>
    <refpurpose>Kasowanie pliku</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Opis</title>
     <methodsynopsis>
      <type>int</type><methodname>unlink</methodname>
      <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam>
     </methodsynopsis>
    <para>
     Kasuje <parameter>nazwa_pliku</parameter>. Podobnie do funkcji unlink() 
     z Unix'owego C.
    </para>
    <para>
     &return.success;
    </para>
    <para>
     Patrz take <function>rmdir</function> do kasowania katalogw.
    </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:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->