Matt Vos wrote:
What is the ASCII value of an EOF? Find that and use
For the benefit of those reading this in the future the value is 4, so
use chr(4);
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What is the ASCII value of an EOF? Find that and use
Matt
- Original Message -
From: Jean-Christian Imbeault <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 5:24 AM
Subject: [PHP] Re: EOF: how to generate one in a string
> I'm at wit
Ok, found the problem. The external program I was trying to run is only
happy is it is called from the same directory as the one it resides in.
I guess it needs to access files in it's directory and by calling from
php somehow it gets confused as to where to files are.
Thanks to everyone for th
IL PROTECTED]
> Subject: [PHP] Re: EOF: how to generate one in a string
>
>
> I'm at wits end ... I've tried everything from system(),
> shell_exec(),
> bacticks, popen() and still no go ...
>
> I even tried writing the data to file first and then doing a
> s
I'm at wits end ... I've tried everything from system(), shell_exec(),
bacticks, popen() and still no go ...
I even tried writing the data to file first and then doing a
system("./prog 2>&1 < ./datafile") and that didn't work either.
I know that it shoudl work b/c if from the command line I iss
I also tried tried with popen with no success.
$fp = popen('/usr/src/bsfmdk/CCCallServer 2>&1', 'r');
fwrite($fp, $query);
$result = fread($fp, 8096);
echo "result is ";
echo "$result ";
I get back and empty result string ...
Any more hints?
Jc
--
PHP General Mailing List (http://www.php.net/
6 matches
Mail list logo