Function __global->afm_make_file

Definitions

sources/abstract_file_manager.php

  • Make a new file over the open AFM connection. Will overwrite if already exists (assuming has access).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$basic_path PATH No No required parameter N/A N/A The path to the file we are making
$contents string No No required parameter N/A N/A The desired file contents
$world_access boolean No No required parameter N/A N/A Whether world access is required
$bom boolean No No False N/A N/A Whether to save a byte-order-mark if appropriate to the website character set

Preview

Code (PHP)

/**
 * Make a new file over the open AFM connection. Will overwrite if already exists (assuming has access).
 *
 * @param  PATH $basic_path The path to the file we are making
 * @param  string $contents The desired file contents
 * @param  boolean $world_access Whether world access is required
 * @param  boolean $bom Whether to save a byte-order-mark if appropriate to the website character set
 */

function afm_make_file(string $basic_path, string $contents, bool $world_access, bool $bom = false)