Making Toolbox Calls to Mac OS-X?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vik Rubenfeld

    Making Toolbox Calls to Mac OS-X?

    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
  • Jeffrey Silverman

    #2
    Re: Making Toolbox Calls to Mac OS-X?

    On Mon, 02 Feb 2004 22:15:09 +0000, Vik Rubenfeld wrote:
    [color=blue]
    > 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[/color]

    Don't know, don't use OSX, but maybe:
    system()


    or
    passthru()


    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/

    Comment

    • Vik Rubenfeld

      #3
      Re: Making Toolbox Calls to Mac OS-X?

      Thanks for the info Jeff. The app is for internal use only so
      portability isn't key.

      -Vik

      Jeffrey Silverman <jeffrey@jhu.ed u> wrote:
      [color=blue]
      > 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[/color]

      Comment

      Working...