RE: [PHP] Calling PHP script from C/C++?

2001-05-22 Thread Sean R. Bright

Yes it can.  If you are compiling yourself you can use configure without
specifying any webservers (i.e. Apache, Netscape, etc) and a binary called
"php" will be generated after you build.

> -Original Message-
> From: Chatchawan Boonraksa
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 9:42 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Calling PHP script from C/C++?
>
>
> Hi all,
>
> Can PHP be used as a general scripting language other than in web?
> Has anyone did this before?
>
> I would like to embedded some kind of scripting in
> application developed using C
> or C++.
> I don't want to learn a new language. I already know PHP and
> like the syntax and
> style :)
>
> Any hint or pointer to this would be really appreciated.
>
> Regards, Chat
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Calling PHP script from C/C++?

2001-05-22 Thread Plutarck

Note that by using the standalone executable of PHP I don't know of anyway
to invoke PHP without first creating a file with the script in it. So you
can't pipe a dynamically created script directly into PHP. You have to use
an intermediary file.

I imagine there is a way to make it work, but I don't know of it.

Plutarck

""Chatchawan Boonraksa"" <[EMAIL PROTECTED]>
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> Can PHP be used as a general scripting language other than in web?
> Has anyone did this before?
>
> I would like to embedded some kind of scripting in application developed
using C
> or C++.
> I don't want to learn a new language. I already know PHP and like the
syntax and
> style :)
>
> Any hint or pointer to this would be really appreciated.
>
> Regards, Chat
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]