Re: Calling the php parser from a Win32 program
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Calling the php parser from a Win32 program

From: R. Rajesh Jeba Anbiah <ng4rrjanbiah@rediffmail.com>
Date: Sun Jul 17 2005 - 20:56:38 CEST

Luca Arena wrote:
> Hi, I would like to know if it is possible to call the php parser from
> a Win32 program (e.g. a VB or C++ program), WITHOUT calling the
> commandline php.exe utility. I mean, is there any "php_parse"
> function, exported by the php5ts.dll, which I can declare in my Win
> program and then call to parse a php script?

   PHP4Applications, a sub-project of PHP4Delphi provides a DLL file
(intended to work with VB, VC, etc) that you can use. But, I couldn't
get it work with VB 6; it always get crashed. If you could successfully
get this work, kindly let me know.
1. PHP4Delphi & PHP4Applications
<http://members.chello.be/ws36637/php4delphi.html>
2. Via CVS
<http://cvs.sourceforge.net/viewcvs.py/psvlib/php4Delphi/php4Applications/>
3. Pascal Demo
<http://cvs.sourceforge.net/viewcvs.py/psvlib/php4Delphi/Demos/php4App/Unit1.pas?rev=6.0&view=markup>
Check this file for supported API functions.

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com
Received on Mon Oct 24 02:08:47 2005