here is a snippet of code that i cannot get to work srand((double)microtime()*1000000); $randm = rand(100,19099); $root = dirname(__FILE__); $flv_name = $root.'/temp/'.$randm.'.flv'; $3gp_name = $root.'/temp/'.$randm.'.3gp'; $fp = fopen ($flv_name, 'w+');//This is the file where we save the information Code (markup): what its supposed to do is generate a random file number and open fopen and save the file using the file number but it wont even do that...