Advertisement
lamiastella

fputcsv

Mar 8th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.76 KB | None | 0 0
  1.         $stat_file = fopen("./".$feed_id_str."/"."stats.csv", 'w');
  2.         $stat_arr = [];
  3.         $stat_arr[] = $feed_id;
  4.         $stat_arr[] = $like_count_column;
  5.         $stat_arr[] = $comment_count_column;
  6.         $stat_arr[] = $comment_count_column;
  7.         fputcsv($stat_file, $stat_arr);
  8.         //fputcsv($stat_file, array($feed_id, $like_count_column, $comment_count_column, count($likers_and_commenters)));
  9.  
  10.  
  11. ********************************************************************
  12. mona@pascal:~/computer_vision/Instagram-API/test$ tree *_19*
  13. 1001637184153042399_1930504334
  14. ├── 1001637184153042399_1930504334.jpeg
  15. ├── caption.txt
  16. ├── commenters.txt
  17. ├── comments.txt
  18. ├── likers.txt
  19. └── stats.csv
  20. 1011842647423434230_1930504334
  21. ├── 1011842647423434230_1930504334.jpeg
  22. ├── caption.txt
  23. ├── commenters.txt
  24. ├── comments.txt
  25. ├── likers_and_commenters.txt
  26. ├── likers.txt
  27. └── stats.csv
  28. 1014184930034564556_1930504334
  29. ├── 1014184930034564556_1930504334.jpeg
  30. ├── caption.txt
  31. ├── commenters.txt
  32. ├── comments.txt
  33. ├── likers_and_commenters.txt
  34. ├── likers.txt
  35. └── stats.csv
  36. 1014185579136663000_1930504334
  37. ├── 1014185579136663000_1930504334.jpeg
  38. ├── caption.txt
  39. └── likers.txt
  40. 1037815588254367018_1930504334
  41. ├── 1037815588254367018_1930504334.jpeg
  42. ├── caption.txt
  43. ├── commenters.txt
  44. ├── comments.txt
  45. ├── likers_and_commenters.txt
  46. ├── likers.txt
  47. └── stats.csv
  48. 998075460065934859_1930504334
  49. ├── 998075460065934859_1930504334.jpeg
  50. ├── caption.txt
  51. ├── commenters.txt
  52. ├── comments.txt
  53. ├── likers_and_commenters.txt
  54. ├── likers.txt
  55. └── stats.csv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement