Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
by 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

-
- Posts: 4
- Joined: Sun Nov 03, 2002 6:02 pm
by 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
-
by 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

-
- Posts: 4
- Joined: Sun Nov 03, 2002 6:02 pm
Return to PHP coding => General
Who is online
Users browsing this forum: No registered users and 4 guests