473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Return same data from executable to php as in command prompt

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

Jul 17 '05 #1
0 1444

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: QQ June | last post by:
Hello, I have some java classes. But, I don't want my users to type "java my_java_program" every time they run the java class ? How do I pack them together into one executable file, like...
3
by: Jaques | last post by:
Hi, I'm looking for a tool that converts a jar into an executable program (or something like that). I guess there are a couple of options: 1) Convert the jar into a real executable that runs...
6
by: Vikram | last post by:
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I need to execute this executable by specifying my input file and my output file, eg. ./DMDC2 input > output. Input file is a...
5
by: randyelliott | last post by:
Good Day, I have a MS Access (Access 2000 now upgraded to 2003) database that tracks customer information. One function of this database is to create an encrypted license file for our software,...
4
by: rgarf | last post by:
I am trying to launch an executable application from my C# application. I tried using the Process class which did start the application but it did not show the command prompt window. My code is as...
9
by: RajW | last post by:
Disclaimer: I'm new to C. I'm building a simple text based program and I'm not sure I'm designing it correctly. What I have is simple and it works but it just seems weird. Is there a better way?...
28
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable...
11
by: amitpathak | last post by:
HI Suppose There is a HELLO WORLD Application in java When I am running this in a command prompt it is printing the "Hello World" in a console window Next Time When i make the executable...
1
by: mohaaron | last post by:
Hello all, This might seem like an odd question but I would like to know how to create a standalone executable. I'm using vs.net 2005 and the closest project template I can find for what I want...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.