Solved

how to turn off system messages

Posted on 2008-06-17
3
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

710 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