can not find IncludeScript

Discussion about the open-source Phalanger [?] project.

can not find IncludeScript

Postby 611@codeplex » December 5th, 2008, 3:53 pm

hi
i have add reference phpNetCore
but when i use the bellow script to call the php script

 PHP.Core.ScriptContext context = PHP.Core.ScriptContext.CurrentContext;
            context.Output = Console.Out;

            Type lib = typeof(PhalangerLegacy);
            context.IncludeScript("script.php", lib);

            context.Call("hello");

            PhpReference r = context.Call("add", 5, 3);
            Console.WriteLine(r.Value);


            Console.ReadLine();


it says :

 Method not found: 'System.Object PHP.Core.ScriptContext.IncludeScript(System.String, System.Type)'.

and, the point is here , it is work fine when i run the sample , but when i want to call it from winform ,the above error appear.

611@codeplex
 
Posts: 1
Joined: January 7th, 2012, 8:53 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 21 guests

cron

User Control Panel

Login

Who is online

In total there are 21 users online :: 0 registered, 0 hidden and 21 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 21 guests