Benernya gak usah pake escapeshellarg pun bisa
script punya anda yang pertama itu udah bener
cuman jangan pake single quota string melainkan 
pake double quota string.

Berikut yang udah aku coba dan jalan

<?php
        $test = "testing";
        system("echo $test > test.txt");
        system("echo baris3 >> test.txt");
        echo ("$test");
?>

----- Original Message ----
From: A r j u n a <[EMAIL PROTECTED]>
To: tanya-jawab@linux.or.id
Sent: Wednesday, November 29, 2006 6:38:44 PM
Subject: Re: [tanya-jawab] Tanya system di php

On Wednesday 29 November 2006 18:21, [EMAIL PROTECTED] wrote:
habis baca2 manual php :P
http://id2.php.net/manual/en/function.escapeshellarg.php
sudah ditest dan bisa
# cat test.php
<?php
$test = "testing";
system('echo '.escapeshellarg($test).' > test.txt');
system('echo baris3 >> test.txt');
echo ("$test");
?>
# php test.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
# cat test.txt
testing
baris3





 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke