Article View: pl.comp.lang.php
Article #220134Re: wykonanie polecenia
From: Lemat
Date: Wed, 12 Aug 2009 09:11
Date: Wed, 12 Aug 2009 09:11
25 lines
1694 bytes
1694 bytes
wrote:
> Witam,
> mam taki kod w pliku php
>
> system ("ping -c4 nazwa_hosta");
>
> I w teoretycznie wszystko działa tak jak powinno tzn po wywołaniu strony
> po chwili pokazuje mi cały wynik. Czego użyć albo jak się za to zabrać aby
> każda linijka odpowiedzi pokazywała się na bieżąco?
będzie ciężko, zacznij od:
http://pl.php.net/manual/ro/function.system.php
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.
--
Pozdrawiam
Lemat
easyISP jest spam friendly - utrzymuje notorycznego spamera polandexport /
ipeik / netex-sterling, pomóżcie ich przekonać nie wykupując u nich
hostingu.
Technical Details
Message-ID:
<h5u14d$hse$1@atlantis.news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mailReferences:
<4a828081$1@news.home.net.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail From: Lemat <#@lemat.priv.pl> Newsgroups: pl.comp.lang.php Subject: Re: wykonanie polecenia Followup-To: pl.comp.lang.php Date: Wed, 12 Aug 2009 11:11:27 +0200 Organization: lemat.priv.pl Lines: 26 Message-ID: <h5u14d$hse$1@atlantis.news.neostrada.pl> References: <4a828081$1@news.home.net.pl> NNTP-Posting-Host: quad.lemat.priv.pl Mime-Version: 1.0 X-Trace: atlantis.news.neostrada.pl 1250068429 18318 79.190.106.116 (12 Aug 2009 09:13:49 GMT) X-Complaints-To: usenet@news.neostrada.pl NNTP-Posting-Date: Wed, 12 Aug 2009 09:13:49 +0000 (UTC) User-Agent: KNode/0.99.01 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit