Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

PHP Fatal error: Class 'Cloudflare\Api' not found in #47

Closed
LarryKHite opened this issue Nov 16, 2016 · 2 comments
Closed

PHP Fatal error: Class 'Cloudflare\Api' not found in #47

LarryKHite opened this issue Nov 16, 2016 · 2 comments

Comments

@LarryKHite
Copy link

LarryKHite commented Nov 16, 2016

<?php use Cloudflare\Zone\Dns; // Create a connection to the Cloudflare API which you can // then pass into other services, e.g. DNS, later on $client = new Cloudflare\Api('eackcfcuyv@gmail.com', 'dc88c3098d023ea0d47874698bc8cc027b1c5'); // Create a new DNS record $dns = new Cloudflare\Zone\Dns($client); $dns->create('www', 'A', 'name.com', '192.168.1.2', 120);

according to eg, i name above code to cf_dns.php

but when i run " php cf_dns.php" command

get "PHP Fatal error: Class 'Cloudflare\Api' not found in /root/cf_dns.php on line 5"

where is wrong?
could you help me check it?
thx

@dryrain39
Copy link

same here

@dryrain39
Copy link

dryrain39 commented Feb 5, 2017

solved

require __DIR__ . '/vendor/autoload.php';

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

3 participants