sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Macius The Great's Avatar

php and exec problem


Question posted by: Macius The Great (Guest) on July 17th, 2005 12:00 AM
Hello
I have no idea what is wrong :
my script goes :
....
$add="/usr/bin/htpasswd -b /var/www/users/users ".$HTTP_GET_VARS["login"]."
".$HTTP_GET_VARS["haslo"];
$str=exec($add);
....
Script is working witout any problem warnings error messages but line in
file users is not added
I dont no why? :(

if I do smoethink like this from command line (as user www)
$php -f g.php

skrypt g.php :

<?
$add="/usr/bin/htpasswd -b /var/www/users/users xxx xxx1";
$str=exec($add);
?>

line is added
I have no idea what is wrong - why from command line exec is working but
from http session is not.
please any ideas ?
(system OpenBSD3.3 php 4.2.3 )

regards
MK



0 Answers Posted
 
Not the answer you were looking for? Post your question . . .
196,998 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,998 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors