strainge problemmm please help me..

Hello ALLLL

i am really getting straing problem if someone help me it will be really gr8 for me..

1)i have one tm.php form

here is 2 text box
which is passing this 2 text box value to
tm1.php

then testmail1.php pass this same value to one shell script..

here is the problem.
this is tm1.php
i already declared the varible here which is working fine.

Print "Trying to connect mail server<br>";
print exec("pwd"); = working fine..
print exec("/home/usr/www/test/tm1 $popmail $pwdmail"); = not working..

here is the shell

#! /bin/bash

(echo user $1
echo pass $2
echo list
echo quit)| nc mail.domain.com 110 >> mailfile
the above code is not working.

echo $1 = working fine
echo $2 = working fine.

if i run this file indidvidually like
tm user pass = working fine...


pls help me why redirection command of shell is not working while compile with php???
php is working with shell coz i am able to see echo $1 out put

it means there is dificnatlely problem with redirtion command which is not working by php...
indidviduall shell script is working fine too

 

 

 

 

Top