// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.io.IOException;

import com.caucho.quercus.QuercusEngine;

public class EmbeddedQuercus {
	public static void main(String[] args) throws IOException {
		QuercusEngine eng = new QuercusEngine();
		eng.execute("<?php\r\n" +
                    "for($i = 0; $i < 3; $i++) {\r\n" +
                    "    echo \"Hi from PHP!\\r\\n\";\r\n" +
                    "}\r\n" +
                    "?>\r\n");
	}
}
