can not find IncludeScript
1 post
• Page 1 of 1
can not find IncludeScript
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.
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
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests