CodeTech Posted March 29, 2011 Share Posted March 29, 2011 I'm trying to figure out how i can update an exiting file that is contained in a Self-extracting executable using php on a hosted webserver with Cent OS. <?php rar a -sfx7z.sfx test.exe helpdesk.txt; echo "Success"; ?> This doesn't seem to work; it displays an error: Parse error: syntax error, unexpected T_STRING in /home/kompute6/public_html/vnc.php on line 2 I tried adding "" and '' and nothing seems to work. any ideas how i can do this? Maybe I'm going about this all wrong. I'm not really sure. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 29, 2011 Share Posted March 29, 2011 This rar a -sfx7z.sfx test.exe helpdesk.txt; is not a valid PHP statement. Take a look at exec() or shell_exec() Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.