All pastes #383925 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-06 18:32 UTC
rendered paste body
<?php

function gtk_copy($from, $to){
	$org = fopen($from,'rb');
	$new = fopen($to,'wb');
	while ($data = fread($org, 1024)) {
		fwrite($new,$data);
		while(Gtk::events_pending()) Gtk::do_iteration();
	}
	fclose($org);
	fclose($new);
}