zohab Posted November 8, 2006 Share Posted November 8, 2006 Hi I have one question?I need to scan file.If file does not contain any virus then upload it otherwise not .Can someone help me how can i do this using [b]PHP[/b]?Thanks in advance.Best regardszohab. Link to comment https://forums.phpfreaks.com/topic/26543-scan-file-using-php/ Share on other sites More sharing options...
heckenschutze Posted November 8, 2006 Share Posted November 8, 2006 You can't scan the file until its been uploaded.To scan the file you should call the virus scanner using the [url=http://php.net/system]system()[/url] function.Then if it has a virus delete it, else copy it to wherever ... Link to comment https://forums.phpfreaks.com/topic/26543-scan-file-using-php/#findComment-121436 Share on other sites More sharing options...
zohab Posted November 11, 2006 Author Share Posted November 11, 2006 Thanks for response.I had refer to link system() and try to understand it.For my clarification can you please give small example of system()so that i will understand it clearly.I had tried example fiven on system() link page but i did not got it.Best regardszohab. Link to comment https://forums.phpfreaks.com/topic/26543-scan-file-using-php/#findComment-123079 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.