S Stickado1 Client Регистрация 28.05.2011 Сообщения 27 Благодарностей 0 Баллы 1 02.11.2011 #1 Hello there, do normal php functions like file_get_contents() work with codecreator? I didnt find it working, is there a way to m ake it work?
Hello there, do normal php functions like file_get_contents() work with codecreator? I didnt find it working, is there a way to m ake it work?
shade Client Регистрация 19.11.2010 Сообщения 580 Благодарностей 346 Баллы 63 02.11.2011 #2 Stickado1 сказал(а): Hello there, do normal php functions like file_get_contents() work with codecreator? I didnt find it working, is there a way to m ake it work? Нажмите, чтобы раскрыть... Yes it's work fine. PHP: <?php import namespace System; import namespace Zennolab:::CommandCenter; [Export] class Program implements IZennoCustomCode { public function ExecuteCode($instance) { $data = file_get_contents("D:\\file.txt"); return 0; } } ?> If you look at variable $data in debug, you can see that AsString property is contents of file.
Stickado1 сказал(а): Hello there, do normal php functions like file_get_contents() work with codecreator? I didnt find it working, is there a way to m ake it work? Нажмите, чтобы раскрыть... Yes it's work fine. PHP: <?php import namespace System; import namespace Zennolab:::CommandCenter; [Export] class Program implements IZennoCustomCode { public function ExecuteCode($instance) { $data = file_get_contents("D:\\file.txt"); return 0; } } ?> If you look at variable $data in debug, you can see that AsString property is contents of file.