hi ash,
i tried you suggestion, with
?php exec('ipkg-cl --version lalala.txt');?
the lalala.txt was created but the file is empty.
anymore suggestion?
thank you.
regards,-keo
On Mon, Nov 3, 2008 at 3:29 PM, Ashley Sheridan [EMAIL PROTECTED]wrote:
On Mon, 2008-11-03 at 15:21 +0800, cheesiong
Hi,
I'm not a Linux guru, so maybe my question is stupid, but are you sure
the command prints its output to the *standard* output?
Z
cheesiong wrote:
hi ash,
i tried you suggestion, with
?php exec('ipkg-cl --version lalala.txt');?
the lalala.txt was created but the file is empty.
anymore
On 3 Nov 2008, at 08:06, cheesiong wrote:
i tried you suggestion, with
?php exec('ipkg-cl --version lalala.txt');?
the lalala.txt was created but the file is empty.
anymore suggestion?
Try...
?php exec('ipkg-cl --version 21');?
It's not uncommon for CLI utilities to output their banner on
hi all,
this is the first time i try out the mailing list. i hope to get help from
here. thank you.
i hope this email can reach the mail group as i use bluecolour.sz to sign on
the news group but using bluecolour to do all the emailing.
i am facing a problem when i study exec() php function:
i
the output from the browser is the same and not the expecting version of the
ipkg-cl.
then i tried to echo exec('ifconfig'); the output is the same also.
You need to do this:
$output = array();
exec('/program/', $output);
for it to put the results of running the command into the $output
hi Chris,
thank you.
it is not working as well.
i copy the ipkg-cl into /usr/bin
do i need to set anything in the httpd.conf on the Directory directive?
i am running apache-2.2.9.
this is code copy from you suggestion:
?php
$output = array();
exec('ipkg-cl --version', $output);
cheesiong wrote:
hi Chris,
thank you.
it is not working as well.
i copy the ipkg-cl into /usr/bin
add
error_reporting(E_ALL);
and
ini_set('display_errors', true);
to the top of your script.
any errors/warnings/whatever show up?
--
Postgresql php tutorials
http://www.designmagick.com/
hi Chris,
i change the script to:
?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$output = array();
exec('ipkg-cl --version', $output);
print_r($output);
?
the output from browser:
array()
other stuff remain the same. can i conclude php program is not a problem
here?
i will try
cheesiong wrote:
hi Chris,
i change the script to:
?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$output = array();
exec('ipkg-cl --version', $output);
print_r($output);
?
the output from browser:
array()
other stuff remain the same. can i conclude php program is not a problem
hi Chris,
thank you. i change the path and change the httpd.conf LogLevel to debug
then restart apache.
but nothing is change from the output or the error log.
basically it is still not working.
this is weird, isn't it. the apache is run with Daemon, but i already change
the chmod to 777.
cheesiong wrote:
hi Chris,
thank you. i change the path and change the httpd.conf LogLevel to
debug then restart apache.
but nothing is change from the output or the error log.
basically it is still not working.
this is weird, isn't it. the apache is run with Daemon, but i already
change
hi Chris,
my linux system is LFS that i build from scratch.
i cant su to daemon.
below is my /etc/passwd:
root [ /srv/www/test ]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
sshd:x:50:50:sshd PrivSep:/var/lib/sshd:/bin/false
cheesiong wrote:
hi Chris,
my linux system is LFS that i build from scratch.
i cant su to daemon.
below is my /etc/passwd:
root [ /srv/www/test ]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
sshd:x:50:50:sshd
hi Chris,
i did try,
below is the continouos output from prompt when i do su.
root [ /srv/www/test ]# su daemon
root [ /srv/www/test ]#
i didnt manage to switch user.
i will create an user... so that i can switch to it.
i created a user call lfs into group lfs.
able to execute ipkg-cl and
hi Chris,
i found out that when execute ipkg, the return is before the header.
root [ /srv/www/test ]# /program/php-5.2.6/bin/php-cgi ipkg.php
ipkg version 0.99.163
X-Powered-By: PHP/5.2.6
Content-type: text/html
Array
(
)
which is different than the whoami program.
root [ /srv/www/test ]#
On Mon, 2008-11-03 at 15:21 +0800, cheesiong wrote:
hi Chris,
i found out that when execute ipkg, the return is before the header.
root [ /srv/www/test ]# /program/php-5.2.6/bin/php-cgi ipkg.php
ipkg version 0.99.163
X-Powered-By: PHP/5.2.6
Content-type: text/html
Array
(
)
http://php.net/imap_createmailbox
On Sun, December 23, 2007 4:31 pm, mattias wrote:
If i use courier-mta
Can i create a php script wich create mailboxes?
And users
Hope any understand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If i use courier-mta
Can i create a php script wich create mailboxes?
And users
Hope any understand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I run Windows XP Home SP2, Apache 1.3.24 and PHP 4.3.1. I have a php script
which uses the exec function to invoke a win32 application which writes its
results to a file which is then used in what is returned to the browser by the
script. It works.
I wanted to install the same script invoking
Hello Bob,
Friday, June 10, 2005, 11:04:52 AM, you wrote:
BS Investigation/debugging indicates that the exec call simply doesn't invoke
the
BS win32 application at all with no error indications from PHP. (echo
statements
BS either side of the call). I have checked things like the path to the
On Fri, June 10, 2005 3:04 am, Bob Snowdon said:
$execstring=winposd.exe \${physical}-${logical}-${parameter}\;
$output=exec($execstring);
exec only returns the FIRST LINE of output -- perhaps winposd (whatever
that is) prints a blank line first?
For that matter, winposd might
Does anyone know why the following script will not rebuild one of my
sendmail databases?
?
exec('/usr/sbin/makemap hash /etc/mail/virtusertable.db
/etc/mail/virtusertable');
exit;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
22 matches
Mail list logo