For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2004 > Return same data from executable to php as in command prompt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Return same data from executable to php as in command prompt
Maarten Koster

2004-10-26, 3:55 am

Hi,

I've been trying to use passthru() exec() and system() to execute
Apache's htdbm.exe (htaccess user database) and to get some info
returned. For example I have tried as a test to htdbm -l .htpasswd, this
to return the users in the databaase. None of the functions return the
users in the database while the same string does do this in command
prompt. I know there is nothing wrong with the string because when I
replace some vars at the end I can add users to the database with php,
now it does return a message that this has been done.
Al I want is that the same thing that is being returned in command
prompt is also returned to PHP.

Thanks in advance, Maarten

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com