Find freelancers. Lose those costly delays.

With 1.7 million freelancers, we'll match you with the perfect talent.

or, Register with Elance »

Call clamav from perl via a php script to check for virus in uploaded files
Sign in to Add to Watch List

IT & Programming > Web Programming

View Change History

The client has made the following changes to the job.


Job awarded.

May 24, 2012

Job Description

  |  Change History >>


  • Posted: Thu, May 24, 2012
  • Time Left: Closed
  • Location: Anywhere
  • Client prefers freelancers from:

    You are still able to submit a proposal for this job.

    The client prefers freelancers from
    a different location.

    You're still able to submit a proposal for this job, regardless of your location.
  • Start: Immediately
  • Budget: Less than $500
  • Fixed Price Job
  • Elance Escrow Protection
  • U.S. freelancers must have W9
Sign in to view client's details

I need a script that starts with php.
In the php script there will be a path to a filename.

I then need php to call perl to run clamav on the above path to file and tell the php script if there is a virus or not.

I can't call clamav directly from php due to the way our host has our server set up.

So the php code would look something like this:

$safe_path = escapeshellarg($_FILES['uploadedfile']['tmp_name']);

//run the perl code here
$response = your_perl_code //replace this with your perl code

//these don't have to be the exact response codes, but you get the idea...
if ($response == 1) {
//file is clean

} elseif ($response == 2) {
//file has a virus

} else {
//something else went wrong

Sign in or Register to see more

Desired Skills
MySQL Administration, PHP, Perl
Job ID: 30768001
Avg $ | High $ | Low $ — Show Pricing
  • Submit Date (Latest)

Prayag Software Solutions Pvt...      
One or more team members at  are verified.  Learn More
 India  |  
Prayag Software Solutions is an offshore software development and outsourcing company. Our technology expertise lies in PHP5, Wordpress, Magento,...
 4.9   |  Private   |  34 Jobs   |  2 verified credential(s)
Bid ID: 30778487  |  Submitted: May 25, 2012 04:00 ET 
Proposal SEALED

 Russia  |  
I write on Perl/bash for Linux systems. Worked with mysql: administration (backup, master-slave replication), some query optimization, DB-schema...
 0.0   |  $0 Earnings   |  0 Jobs
Bid ID: 30778014  |  Submitted: May 25, 2012 03:31 ET 
Proposal SEALED

 Romania  |  
4 yrs experience with Perl, PHP and MySQL, working in a large telecom company
 0.0   |  Private   |  0 Jobs
Bid ID: 30768551  |  Submitted: May 24, 2012 16:33 ET 
Within 1 week

 Moldova, Republic Of  |  
I am exp. programmer from Moldova. Exp. in programming 17 years.
 0.0   |  $0 Earnings   |  0 Jobs
Bid ID: 30768326  |  Submitted: May 24, 2012 16:20 ET 
Proposal SEALED

 Palestine  |  
eSolution Inc has proven through it's satisfied clients and amazing feedbacks , to be one of the Best Outsourcing Companies . Based on Middle East...
 5.0   |  Private   |  17 Jobs
Bid ID: 30768289  |  Submitted: May 24, 2012 16:18 ET 
Proposal SEALED
Elance is now an Upwork company.
Upwork is the choice of 4M+ clients. Get started working on Upwork today.
Are you ready to post a job like this one?
Post a Similar Job »