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


> On Wednesday 29 November 2006 18:21, [EMAIL PROTECTED] wrote:
> > Masalahnya saya ingin menjalankan scrip dengan option di belakangnya,
> > Sedangkan option di belakangnya adalah input dari page sebelumnya.
> > Jadi $test didapat dari variable page sebelumnya
>
> 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
==============================================
With safe mode enabled, the command string is escaped with escapeshellcmd().
Thus, echo y | echo x becomes echo y \| echo x.

================================================

in  case anda bingung (saya jg)...

ini mungkin penghambatnya (atas)


================================
system
(PHP 3, PHP 4, PHP 5)

system -- Execute an external program and display the output
Description
string system ( string command [, int &return_var] )


system() is just like the C version of the function in that it executes the
given command and outputs the result.

The system() call also tries to automatically flush the web server's output
buffer after each line of output if PHP is running as a server module.

If you need to execute a command and have all the data from the command
passed directly back without any interference, use the passthru() function.

Parameters


  command
  The command that will be executed.

  return_var
  If the return_var argument is present, then the return status of the
executed command will be written to this variable.


Return Values
Returns the last line of the command output on success, and FALSE on
failure.

=================================
Gunawan Wibisono.

Rumah Sakit Internasional Bintaro
Jl. M.H Thamrin Blok B3 No. 1 Sektr 7,
Kawasan Niaga - Bintaro Jaya, Tangerang 15224

NOTICE: CONFIDENTIAL COMMUNICATION
This e-mail message and any accompanying files may contain information that
is
confidential and subject to privilege. If you are not the intended
recipient,
and have received the e-mail in error, you are notified that any use,
dissemination, distribution, forwarding, printing or copying of the message
and
any attached files is strictly prohibited. If you have received this e-mail
message in error please immediately advise the sender by return e-mail, or
telephone, listed below. You must destroy the original transmission and its
contents. Any views expressed within this communication are those of the
individual sender, except where the sender specifically states them to be
the
views of Ramsay Health Care.
This communication should not be copied or disseminated without permission.



-- 
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