• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
write file

#3
[eluser]Colin Williams[/eluser]
[url="http://us2.php.net/copy"]copy('/path/to/src', '/path/to/dest')[/url]

So, very basically, it would look like

Code:
$new_lang = $_POST['new_lang'];

$src = APPPATH .'language/english/filename'. EXT;
$dest = APPPATH .'language/'. $new_lang .'/filename'. EXT;

copy($src, $dest);


Messages In This Thread
write file - by El Forum - 09-22-2008, 06:59 AM
write file - by El Forum - 09-22-2008, 07:53 AM
write file - by El Forum - 09-22-2008, 08:16 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.