Jump to content
Sign in to follow this  
neo van matix

PHP Parser...

Recommended Posts


currently i write a little script, which parse php-code.

I write some Input (<? echo "hello world"; ?>) into a file, and open the php.exe with the parameter "-f file2parse".

On commandline, it works - i get the result "hello world". But, how i get this result into usable data into autoit?

RunWait(@ComSpec & " /c " & 'php.exe -f $source', "", @SW_SHOW)

A Dos-Box appears for 0,5 secs - but, how i could show the result in autoit, like, in a messagebox or in a popup ?

Share this post

Link to post
Share on other sites

#include <Constants.au3>
$foo = Run(@ComSpec & " /c " & 'php.exe -f $source', "", @SW_SHOW,$STDOUT_CHILD)

While 1
    $line = StdoutRead($foo)
    If @error = -1 Then ExitLoop
    MsgBox(0, "STDOUT read:", $line)

Edit: Forgot include.

Edited by Manadar

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...