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. Link to comment https://forums.phpfreaks.com/topic/232061-add-file-to-exisiting-exe-sfx/ 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 Link to comment https://forums.phpfreaks.com/topic/232061-add-file-to-exisiting-exe-sfx/#findComment-1193739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.