src/ShapeFile.php
public function saveToFile($FileName = null)
    {
        if (! is_null($FileName)) {
            $this->FileName = $FileName;
        }

        if (($this->_openSHPFile(true)) && ($this->_openSHXFile(true)) && ($this->_createDBFFile())) {
            $this->_saveHeaders();
            $this->_saveRecords();
            $this->_closeSHPFile();
            $this->_closeSHXFile();
            $this->_closeDBFFile();
        } else {
            return false;
        }
    }
public function saveToFile($FileName = null)
    {
        if (! is_null($FileName)) {
            $this->FileName = $FileName;
        }

        if (($this->_openSHPFile(true)) && ($this->_openSHXFile(true)) && ($this->_createDBFFile())) {
            $this->_saveHeaders();
            $this->_saveRecords();
            $this->_closeSHPFile();
            $this->_closeSHXFile();
            $this->_closeDBFFile();
        } else {
            return false;
        }
    }
public function saveToFile ( $ FileName = null ) { if ( ! is_null ( $ FileName ) ) { $ this -> FileName = $ FileName ; } if ( ( $ this -> _openSHPFile ( true ) ) && ( $ this -> _openSHXFile ( true ) ) && ( $ this -> _createDBFFile ( ) ) ) { $ this -> _saveHeaders ( ) ; $ this -> _saveRecords ( ) ; $ this -> _closeSHPFile ( ) ; $ this -> _closeSHXFile ( ) ; $ this -> _closeDBFFile ( ) ; } else { return false ; } }
Saves shapefile.

@param string|null $FileName Name of file, otherwise existing is used
Saves shapefile .