Closed akanshgulati closed 8 years ago
@akanshgulati by looking at the error message (couldn't open file "foo.txt"), seems like it failed because of it can't find the file, did you try to specify absolute path (for debugging purpose)?
If you can post your code snippet, I may be able to provide some more help.
@jayzeng Yeah I even tried with absolute path. The url scanning worked fine. Only issue came while scanning a file.
hmmm, I will play around it this afternoon.
@akanshgulati sorry for the delay. I just did a quick test and didn't experience any problem, I pushed the code for you as an example (https://github.com/jayzeng/virustotal_apiwrapper/tree/example_test), only thing you need to do is to put in your api key in https://github.com/jayzeng/virustotal_apiwrapper/blob/example_test/test.php
And my version of php:
� virus_total git:(example_test) php -v
PHP 5.5.20 (cli) (built: Feb 25 2015 23:30:53)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
Let me know if you run into any other problems
Thanks @jayzeng I will check it later now as other API has fulfilled my need. Will update you soon on this. You can close this issue now.
I tried to execute example file.php and it`s returning error: