PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I'm trying to execute a shell script from PHP.
The script has read/write and run properties granted to anyone. It works when run from the shell, but I can't seem to get PHP to run it.
The first part of the program creates the script and it all works fine. It's the last line that won't work
Can anybody spot where I'm going wrong?
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Last edited by swarmspot on Mon Oct 30, 2006 9:57 am, edited 1 time in total.
My God! That was a quick response. It worked a treat. Thanks a million for your help. I've been trying to get it to work for two days.
The script copies a binary file and then updates the copy with some new values. The file is a backup file for DD-WRT that configures a Buffalo or Linksys AP for access to a Radius server via Chillispot.
I still have a problem. The copy part of the script is working, but the find and replace isn't. Any ideas? rpl is a utility that works fine from the shell.