Can you use normal php commands?

Stickado1

Client
Регистрация
28.05.2011
Сообщения
27
Благодарностей
0
Баллы
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?
 

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63
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.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)