Tworzenie stron WWW to podstawa pracy webmastera. Dlatego każdy webmaster ma swój Poradnik Webmastera, z którego korzysta gdy potrzebuje wiedzy o języku HTML, CSS albo szuka czegoś w kursie JavaScript. Dzięki tak potężniej dawce wiedzy może on tworzyć profesjonalnie wyglądające strony WWW.

Leasing samochodów - Pamięci DDR3 w 50 nm - wyposażenie łazienek - nieruchomości nowy sącz - Tworzenie stron html - producent ubranek dla psów - usługi hydrauliczne szczecin - Gry hazardowe online - Bilety promowe - list motywacyjny - gry wojny klonów - Golf 3 Klub Polska - Odzież i obuwie - kredyt inwestycyjny - meble stylowe
Podręcznik PEAR
PoprzedniNastępny

Saving

Saving --  Saving your changes

Saving your changes

After modifying a fstab file, you will want to save your changes. The save() function does this.

Ostrzeżenie

Comments from the loaded file are not preserved when saving, and whitespace may change. This has no effect on the functionality of the fstab file, but you may lose helpful comments.

Przykład 39-1. Save to the same file

This will save your changes back to the file you loaded, overwriting the old file.

require_once 'File/Fstab.php';
$fstab =& new File_Fstab();
$floppy =& new File_Fstab_Entry();
$floppy->fsType = 'vfat';
$floppy->device = '/dev/fd0';
$floppy->mountPoint = '/floppy';
$fstab->addEntry($floppy);
$res = $fstab->save();
if (PEAR::isError($res)) {
    die($res->getMessage());
}

Przykład 39-2. Save to a different file

This will save your changes to a different file than the one you originally loaded.

require_once 'File/Fstab.php';
$fstab =& new File_Fstab();
$floppy =& new File_Fstab_Entry();
$floppy->fsType = 'vfat';
$floppy->device = '/dev/fd0';
$floppy->mountPoint = '/floppy';
$fstab->addEntry($floppy);
$res = $fstab->save('/tmp/fstab.new');
if (PEAR::isError($res)) {
    die($res->getMessage());
}

PoprzedniSpis treściNastępny
EntriesPoczątek rozdziałuFile_MARC

Copyright © 2007 Office. Designed by Free CSS Templates.