Execute external app and return results to a function

Discussion in 'Mac Programming' started by slooksterPSV, Apr 9, 2007.

  1. macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #1
    I'm making a program, called STK WebEdit Lite, where you can edit and preview web pages, I want to be able to execute PHP so the user can see how the PHP is interacting with the web page. Is there a way I can execute the php command using Cocoa programming? I know there's a way to do it, but I can't remember how.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Use NSTask to spawn an external process. There is no special built in way for PHP.
     

Share This Page