By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,822 Members | 1,424 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,822 IT Pros & Developers. It's quick & easy.

Preventing function output going to browser

P: n/a
How do I prevent the output of a user defined function from going to the
browser?

In my script I do something like:

$MyVar = MyFunction($var1,$var);

which works, except that the output from MyFunction is sent to the
browser. I simply want it to set in the variable.

Any help is much appreciated.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Donald Thompson wrote:
How do I prevent the output of a user defined function from going to the
browser?

In my script I do something like:

$MyVar = MyFunction($var1,$var);

which works, except that the output from MyFunction is sent to the
browser. I simply want it to set in the variable.

Any help is much appreciated.


Nevermind, seems I needed to use exec() instead of system() in the function.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.