Can you met this problem?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
shyami
Forum Newbie
Posts: 4
Joined: Sun Aug 27, 2006 11:57 pm

Can you met this problem?

Post by shyami »

patrikG | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi everyone,

i am trying this one, for one week

i am uploading some files through my php code,
i need to scan the files for virus information,


some sites they referred clamav, so i installed that one
it is working well in command line, in code, i gave like this

Code: Select all

<?php

$e= "testphp.php";
echo "<br>";
$g= exec("clamscan \"$e\"");
echo "Res is <br>";
echo $g;
?>
my output is

Res is
Time: 1.732 sec (0 m 1 s)


from this i can't know anything......
How can i get the virus information?


guide me! plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz




with thanks
shyami


patrikG | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

clamscan only returns the time it took to scan that file. For more information add the parameter --stdout
(see http://www.clamav.net/doc/0.80/html/node28.html )
nam797
Forum Newbie
Posts: 4
Joined: Wed Jun 07, 2006 6:49 am

Post by nam797 »

shyami,

Are you doing this on a windows or linux server? I need to set up something simular.

Thanks,

Nathan
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Did this really need a new thread? viewtopic.php?t=54532
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

I've also noticed the exact same content and title being used on multiple PHP related boards.. only the user name differs (and appears random.)

Though it would be an .. interesting choice of spam.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Jenk wrote:I've also noticed the exact same content and title being used on multiple PHP related boards.. only the user name differs (and appears random.)

Though it would be an .. interesting choice of spam.
I visit three php forums. I regularly see some of our members posting their question on all 3 forums. Not really a problem :)
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

oh aye, but the only common factor between all the posts and this is that in none did the OP ever reply, only make new threads on all forums again with identical titles and content.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

I believe the problem to be solved.
shyami
Forum Newbie
Posts: 4
Joined: Sun Aug 27, 2006 11:57 pm

clamav

Post by shyami »

Hi Nathan,

i am doing this in linux

Shyami
Post Reply