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

Making Toolbox Calls to Mac OS-X?

P: n/a
I'm an an experienced programmer, but a PHP newbie. If I have a PHP app
running on Apache/Mac OS-X, is it possible to make calls to routines in
the Mac OS toolbox? If so, could someone post a couple of lines of
sample code (or direct me to suitable documentation) ? Thanks in advance
for any info.
-Vik
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Mon, 02 Feb 2004 22:15:09 +0000, Vik Rubenfeld wrote:
I'm an an experienced programmer, but a PHP newbie. If I have a PHP app
running on Apache/Mac OS-X, is it possible to make calls to routines in
the Mac OS toolbox? If so, could someone post a couple of lines of sample
code (or direct me to suitable documentation) ? Thanks in advance for any
info.
-Vik


Don't know, don't use OSX, but maybe:
system()
http://us4.php.net/manual/en/function.system.php

or
passthru()
http://us4.php.net/manual/en/function.passthru.php

or a couple other similar funcs are what you are lookign for. Of course,
making calls to OSX-specific tools will *greatly* reduce the portability
of your code, but maybe that doesn't matter.

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Website | http://www.wse.jhu.edu/newtnotes/

Jul 17 '05 #2

P: n/a
Thanks for the info Jeff. The app is for internal use only so
portability isn't key.

-Vik

Jeffrey Silverman <je*****@jhu.edu> wrote:
Don't know, don't use OSX, but maybe:
system()
http://us4.php.net/manual/en/function.system.php

or
passthru()
http://us4.php.net/manual/en/function.passthru.php

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.