Re: Interfacing PHP with Cocoa
Re: Interfacing PHP with Cocoa
- Subject: Re: Interfacing PHP with Cocoa
- From: Francisco Tolmasky <email@hidden>
- Date: Fri, 27 May 2005 14:11:46 -0700
Ok I think I've found a workaround, but I'm still having a problem.
Basically I want to use a pipe (aside from stdin and stdout) to
communicate between my php NSTask process and my cocoa program.
However, if I create a pipe in Cocoa, how can I access it in my php
file?
On May 27, 2005, at 1:03 PM, Cameron Hayne wrote:
On 27-May-05, at 2:12 PM, Francisco Tolmasky wrote:
Basically, I want a user to be able to open a php file in my
program and then have my program feed it to some back-end php
interpreting process, then get the resulting string (which should
be html of course) and display it in a WebView. Also, which is
probably going to be the most difficult part, is that I want
certain variables in the php to be resolved at runtime by asking
a data source in the Cocoa program.
As has already been mentioned, using an NSTask is probably the best
way of interfacing with the PHP interpreter. In order to support
the "CocoaGet()" function for retrieving values from the Cocoa
program, all you would have to do is scan the PHP text and
substitute for the CocoaGet() calls before passing the text to PHP.
--
Cameron Hayne
email@hidden
Francisco Tolmasky
email@hidden
www-scf.usc.edu/~tolmasky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden