Apparently use of the system() function is frowned upon because it's insecure. There are other ways around it seems, cheers for this though because now I know not to use it ;)