Forum Moderators: coopster
Right now I am working out how to use the Exec function to call upon a .txt file to dump into a database. Following is my little php script, and I was wondering if my syntax is correct thus far. I don't want to make any mistakes, as I know that could ultimately hurt my database. Though I always keep a backup. :-)
<?php
exec('mysql -u usernamegoeshere --password="yourpassword" -h localhost databasenamegoeshere < .http://www.urltoyourtextfilegoeshere.com/widget.txt', $response);
?>
Thank you in advance for any help or insights.
naitsirhc26
As you are just asking for someone to put 'rm -rf /' in there...and that wont just make a mess of your database. Actually it wont make a mess of a lot...as there wont be a lot left.