Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

How to get output of popen()

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

How to get output of popen()

Postby EchoX » Sun Nov 03, 2002 6:09 pm

when i executed popen($cmd), i cant known the status of popen($cmd) and $cmd is wrong or true. Anyone help me.
EchoX
New php-forum User
New php-forum User
 
Posts: 4
Joined: Sun Nov 03, 2002 6:02 pm

Postby DoppyNL » Mon Nov 04, 2002 12:19 am

according to the manual you have to use 2 parameters with the function popen: manual page.

start by correcting that and then explain what is actually going wrong, bacause I can't follow you.

Greetz Daan
DoppyNL
 

Postby EchoX » Mon Nov 04, 2002 4:56 pm

<?php
$cmd="/usr/sbin/sendmail -t -i";
$f=popen($cmd,"w");
fwrite($f,"somthing here");
.....
pclose($f);
?>
how to get output of this.
EchoX
New php-forum User
New php-forum User
 
Posts: 4
Joined: Sun Nov 03, 2002 6:02 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.