mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
15 lines
437 B
PHP
15 lines
437 B
PHP
<?php
|
|
// This source file must be UTF-8 encoded
|
|
|
|
$filename='filewithé';
|
|
|
|
print 'Test to create a file on disk with name '.$filename."<br>\n";
|
|
print 'ENV[LANG]='.$_ENV["LANG"]."<br>\n";
|
|
print 'ENV[LANGUAGE]='.$_ENV["LANGUAGE"]."<br>\n";
|
|
|
|
// Si LANG contient UTF8, system en UTF8, pas de conversion requise pour fopen
|
|
$s=fopen('/tmp/'.$filename,'w');
|
|
fclose($s);
|
|
|
|
print 'Files has been created. Check its name from your explorer'."\n";
|
|
?>
|