redarrow Posted June 19, 2007 Share Posted June 19, 2007 advance thank you. I have currently got a shell program that cheeks to see if the user has submitted a pic with a virus or the the pic has got any encripted code within the pic if so the shell will tell me written to a text file. all that works. i need to no what php statements i can use to get the .txt file shown to the current user and update the database for that pic. would i use the file_get_contents() statement? also how does one get only the information i want the user to see only is that eregi? file example Virus scanning report - 19 June 2007 @ 2:16 VIRUS SIGNATURE FILES //<<< dont need all this SIGN.DEF created 18 June 2007 // dont need all this SIGN2.DEF created 18 June 2007 //dont need all this MACRO.DEF created 18 June 2007 // dont need all this Search: test.txt Action: Report only //<<<< not needed from here Files: "Dumb" scan of all files Switches: /ARCHIVE /PACKED /REPORT=test.txt /WRAP /NOFLOPPY No viruses found in memory. Hard disk boot sectors were not scanned. //to here ? Results of virus scanning: Files: 1 MBRs: 0 Boot sectors: 0 Objects scanned: 1 Time: 0:00 No viruses or suspicious files/boot sectors were found. [code] [/code] Quote Link to comment https://forums.phpfreaks.com/topic/56132-virus-cheeking-files/ Share on other sites More sharing options...
teng84 Posted June 19, 2007 Share Posted June 19, 2007 get_file_contents() = reads the content as string and eregi is a regular expression that check the data ??? Quote Link to comment https://forums.phpfreaks.com/topic/56132-virus-cheeking-files/#findComment-277274 Share on other sites More sharing options...
redarrow Posted June 19, 2007 Author Share Posted June 19, 2007 sorry but i no that and it file get contents ok. forget it. Quote Link to comment https://forums.phpfreaks.com/topic/56132-virus-cheeking-files/#findComment-277279 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.