Skip to content
This repository was archived by the owner on Sep 6, 2020. It is now read-only.
This repository was archived by the owner on Sep 6, 2020. It is now read-only.

cPanel fileman module mkfile function (api) not working. #24

@sampat-rebelute

Description

@sampat-rebelute

i am calling the cPanel mkfile api but every time it throws some errors like cURL error 28: Operation timed out after 0 milliseconds with 0 out of 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html).

I am calling simple package functions but it throws curl errors so not getting where it comes from?

source code
$cPanel = new Cpanel([
'host' => $hostUrl ,
'username' => $username,
'auth_type' => 'hash',
'password' => $password
]);

    $data = $cPanel->cpanel('Fileman', 'mkfile', $username, [
        'name'        => 'new_file.txt',
        'path'        => '/home/myfolder/public_html/',
        'permissions' => '0777',
    ]);
    print_r($data);

Please help me to resolve or any correction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions