[PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Ginger Cheng
Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste <(cut -f1 file1) <(cut -f2 file2)> final_file It works perfectly well if I just t

[PHP] con'td create file download page for firefox using net-transport thru flashGot?

2005-04-15 Thread Ginger Cheng
Hi, Here is the code $filenm = '/var/tmp/'; $s = 1; $q =2; switch( $_POST["submit"] ) { case 's': $filenm .= 's.tab'; //create $filenm break; case 'q': $filenm .= 'q.tab'; //create $filenm break; } /* echo "file name = {$filenm}\n"; echo "base name = ", basename($filenm)

[PHP] create file download page for firefox using net-transport thru flashGot?

2005-04-15 Thread Ginger Cheng
Hello, PHP gurus,        As a PHP newbie, I am trying to create a PHP page that generates and force dowload a file depending on user's input. Attached is the code.        I give 's' to 'submit' and double checked that the value is correctly retried and the control flow is right.        It wo