Solved

how to turn off system messages

Posted on 2008-06-17
3
235 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

809 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