priekš 'C:/Windows/System32/drivers' = 'drivers';
priekš C:/Windows/System32/cmd.exe = cmd.exe
priekš ($suffix = '.exe') = 'cmd'
__________________________________________
bool chgrp ( string $filename , mixed $group ) - var nomaiinīt lietotaju gruppu;
$result = chgrp('test.txt',8); true/false
$result = chgrp('test.txt','root');
__________________________________________
bool chmod ( string $filename , int $mode ) - modes izmainišana, lietotaja tiesībās,
$result = chmod('test.txt',0755); - owner = 7 - kam pieder fails; group = 5; others = 5;
0 = none - nekāds;
1 = tikai izpildīt failu;
2 = tikai rakstīt;
3 = rakstīt un izpildīt;
4 = tikai lasīt;
5 = lasīt un izpildīt;
6 = lasīt un rakstīt;
7 = visas atļaujas - rakstīt, lasīt un izpildīt;
__________________________________________
bool chown ( string $filename , mixed $user ) - lietotāja id vai vārds
__________________________________________
bool copy ( string $source , string $dest [, resource $context ] ) - faila kopēsana, ja gala fails eksistē, tas tiks pārrakstīts
__________________________________________
bool unlink ( string $filename [, resource $context ] ) - fails tiek izdzest uzreizi;
__________________________________________
string dirname ( string $path ) - atgriež vecākas direktorijas nosaukumu;
float disk_free_space ( string $directory ) - nosaka vietai izmēru
float disk_total_space ( string $directory ) - nosaka vietai izmēru
__________________________________________
bool fclose ( resource $handle )
bool fflush ( resource $handle )
string fgetc ( resource $handle ) - atgriež simbolu kas atrodas pa labi no kursora pozicijas;
__________________________________________
array fgetcsv ( resource $handle [, int $length = 0 [, string $delimiter = ',' [, string $enclosure = '"' [, string $escape = '\\' ]]]] ) - nolasa csv rindu; $enclosure = '" - viss tekst ir iekļauts dubultpēdeņas;
string fgets ( resource $handle [, int $length ] ) - liniju no faila ar garumu;
string fgetss ( resource $handle [, int $length [, string $allowable_tags ]] ) - aizvac visas HTML un PHP simbolus; $allowable_tags = "<p>,<b>,<a>" - var atļaut lietot;
bool file_exists ( string $filename ) - vai fails ir. Ja fails ir lielāks par 2 Gigabaiti var būt ...
______________________________________________________
Комментариев нет:
Отправить комментарий