how to turn off system messages

Hello, i just made some things with PHP:

system('zip u -p'.$zip_passwd.' '.$filename.' '.$ourFileName);

And it output this in my PHP file:
7-Zip 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06 Scanning Creating archive ...................


How can i disable or turn off this system messages?
springfreshAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RoonaanConnect With a Mentor Commented:
Note sure if this works with system, but try:

ob_start(); //start output buffering
system('zip u -p'.$zip_passwd.' '.$filename.' '.$ourFileName);
ob_end_clean(); //stop output buffering
0
 
springfreshAuthor Commented:
worked! thanks :)
0
 
hernst42Commented:
other option would hae been to use exec instead of system
http://www.php.net/manual/en/function.exec.php
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.