Re: Trouble with system() function
From: Ian.H (ian_at_WINDOZEdigiserv.net)
Date: 04/09/04
- Next message: Brandon Blackmoor: "Re: php uploading files tutorial"
- Previous message: Virgil Green: "Re: Include and sub-includes (correction)"
- In reply to: Penn Markham: "Re: Trouble with system() function"
- Next in thread: Penn Markham: "Re: Trouble with system() function"
- Reply: Penn Markham: "Re: Trouble with system() function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 09 Apr 2004 03:19:28 GMT
On Thu, 08 Apr 2004 21:12:03 -0400, Penn Markham wrote:
> Ian,
>
> Thanks for the advice. I tried using shell_exec, but this did not work
> either. It's weird, if I run that part of the script from the command
> line, it works fine and the password gets changed. If I run it from my
> web page, it doesn't. I'm beginning to wonder if maybe this is a PHP or
> Apache configuration issue.
>
> PENN
The important part wasn't really the shell_exec().. apologies for not
clarifying this. This performs the same task as backticks (``) in which
you can capture the return value rather than just dumping it on the page
there and then.
The real important part I found was the " 2>&1" part. Without it.. it
doesn't work (or wouldn't for me anyway). I'm not sure if you added this /
noticed it as such.. but this _may_ be the answer although obviously I
can't guarantee it.
Out of curiousity.. what happens if you cut / paste one of the lines (with
/ without MD5 usage) from my example instead of your code you have
currently? Just curious to see if what I have works for you too. If so..
you can work out the differences and sort yourself a tailored copy for
your requirements =)
Regards,
Ian
-- Ian.H digiServ Network London, UK http://digiserv.net/
- Next message: Brandon Blackmoor: "Re: php uploading files tutorial"
- Previous message: Virgil Green: "Re: Include and sub-includes (correction)"
- In reply to: Penn Markham: "Re: Trouble with system() function"
- Next in thread: Penn Markham: "Re: Trouble with system() function"
- Reply: Penn Markham: "Re: Trouble with system() function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|