DangerIsGo
2[H]4U
- Joined
- Apr 16, 2005
- Messages
- 3,000
Last thing. Then my scripts are finally completed. I cannot get this to work for the life of me and I don't know why.
I have this line in my PHP code:
It doesnt work. I put this line in a new php file..just this line:
and it works. /bin/changeme is a script to chmod 777 a file.
Anyone know why this would happen? Why would it not execute where I need it to and not where I dont want it to? Anyone know how to execute another PHP file from a PHP file?
I have this line in my PHP code:
Code:
exec("sudo /bin/changeme");
exec("sed -i \"s/$username $oldpwhash/$username $newpwhash/\" <file>")
It doesnt work. I put this line in a new php file..just this line:
Code:
exec("sudo /bin/changeme");
and it works. /bin/changeme is a script to chmod 777 a file.
Anyone know why this would happen? Why would it not execute where I need it to and not where I dont want it to? Anyone know how to execute another PHP file from a PHP file?