470,815 Members | 1,738 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Preventing function output going to browser

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
1 1783
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.

Similar topics

9 posts views Thread by Penn Markham | last post: by
10 posts views Thread by David Thielen | last post: by
15 posts views Thread by bvdb | last post: by
20 posts views Thread by Jukka K. Korpela | last post: by
7 posts views Thread by Schmidty | last post: by
41 posts views Thread by Cartoper | last post: by
53 posts views Thread by souporpower | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.