Solved

how to turn off system messages

Posted on 2008-06-17
3
242 Views
Last Modified: 2010-04-21
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?
0
Comment
Question by:springfresh
3 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 21801139
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
 

Author Closing Comment

by:springfresh
ID: 31467894
worked! thanks :)
0
 
LVL 48

Expert Comment

by:hernst42
ID: 21801247
other option would hae been to use exec instead of system
http://www.php.net/manual/en/function.exec.php
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question