Home > Archive > PHP Language > October 2006 > Re: Is this a PHP script?? BASH?? Please review!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Is this a PHP script?? BASH?? Please review!
|
|
| Geoffrey 2006-10-30, 7:03 pm |
| Hmmmm...well, as everyone has already pointed out, it is a PHP script.
But as written, it will NOT run under Windows, because the shell
commands are Linux/Unix commands. You will need to replace these
commands with their DOS equivalents. If, however, you have Cygwin or
something similar installed on your Windows machine, it may run just
fine as-is.
Given that someone else wrote this script and gave it to you under the
pretense of trustworthiness, my only advice would be to pay close
attention to the shell commands. Although they might turn out to be
totally innocuous, I'm suspicious of anything that performs "rm -rf"
and wouldn't be so quick to install it on my production systems without
knowing for sure what the consequences are.
Just my two cents. :)
Geoffrey
| |
| Synapse Syndrome 2006-10-30, 7:03 pm |
|
"Geoffrey" <google.poster@yahoo.com> wrote in message
news:1161884104.955751.247510@e3g2000cwe.googlegroups.com...
> Hmmmm...well, as everyone has already pointed out, it is a PHP script.
> But as written, it will NOT run under Windows, because the shell
> commands are Linux/Unix commands. You will need to replace these
> commands with their DOS equivalents. If, however, you have Cygwin or
> something similar installed on your Windows machine, it may run just
> fine as-is.
>
> Given that someone else wrote this script and gave it to you under the
> pretense of trustworthiness, my only advice would be to pay close
> attention to the shell commands. Although they might turn out to be
> totally innocuous, I'm suspicious of anything that performs "rm -rf"
> and wouldn't be so quick to install it on my production systems without
> knowing for sure what the consequences are.
Thanks. Just as a quick pointer, what would be the command to replace teh
shell_exec() commands, so I can read about it? I know DOS pretty well.
ss.
|
|
|
|
|