diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2010-05-05 15:48:03 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2010-05-05 15:48:03 -0400 |
commit | c44dc1b24b346aa5c51f4011f580972a1c5a1c38 (patch) | |
tree | 0d95bdfa29b17cbf037d591cde8c72a8cc4178a7 | |
parent | Better upload script (diff) | |
download | MovieStatistics-c44dc1b24b346aa5c51f4011f580972a1c5a1c38.tar.xz MovieStatistics-c44dc1b24b346aa5c51f4011f580972a1c5a1c38.zip |
Trim for total lines.
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,7 @@ if ($running && $_GET["action"] == "terminate") { if (!$running && $_GET["action"] == "start" && $_POST["forreal"] == "yeah") { @exec("kill $pid"); file_put_contents("input.txt", $_POST['list']); - file_put_contents("totalLines", (string)count(split("\n", $_POST['list']))); + file_put_contents("totalLines", (string)count(split("\n", trim($_POST['list'])))); @unlink("MovieStats.csv"); runInBackground("/home/zx2c4/opt/bin/python MovieSearchStats.py input.txt MovieStats.csv '".$_POST['email']."'"); $running = true; @@ -97,4 +97,4 @@ Jaws </form> <?php endif; ?> </body> -</html>
\ No newline at end of file +</html> |