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

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

Open
sampat-rebelute opened this issue Aug 21, 2017 · 0 comments
Open

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

sampat-rebelute opened this issue Aug 21, 2017 · 0 comments

Comments

@sampat-rebelute
Copy link

sampat-rebelute commented Aug 21, 2017

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?

@sampat-rebelute sampat-rebelute changed the title mkfile cpanel api working mkfile cpanel api not working Aug 21, 2017
@sampat-rebelute sampat-rebelute changed the title mkfile cpanel api not working cPanel fileman module mkfile function (api) not working. Aug 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant