For some reason Line 41 of my scripts has an error:
Help is much appreciated.PHP Code:$cmd .= $this->user.'@'.$this->host.' ''.$command.'' > /dev/null &';
For some reason Line 41 of my scripts has an error:
Help is much appreciated.PHP Code:$cmd .= $this->user.'@'.$this->host.' ''.$command.'' > /dev/null &';
Can you tell us what the error is? What does it say when you try and view it?
- Vince.
Sorry I forgot to add that
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in lots/of/pretty/witty/files on line 41
Hi, try something like
If that doesn't work, try moving the brackets around to somewhere else. If none of them work, I don't have a cluePHP Code:$cmd .= $this->(user.'@'.$this->host.' ''.$command.'' > /dev/null &');
- Vince.
PHP Code:$cmd .= $this->user.'@'.$this->host.' '.$command.' > /dev/null &';
Well spotted.. I just thought of the brackets because that was what I needed last time I had that error when coding in PHP![]()
Thank youBoth.
Just to point out you can't put variables in single quotes. Only double qoutes support variables.
Want to hide these adverts? Register an account for free!