Solved

how to turn off system messages

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to implement server side field validation and display customized error messages to the client.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

623 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