Can you use normal php commands?

  • Автор темы Автор темы Stickado1
  • Дата начала Дата начала

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?
 
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.
 

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