Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function curl_init() #111

Open
hex2f opened this issue May 10, 2016 · 1 comment
Open

Call to undefined function curl_init() #111

hex2f opened this issue May 10, 2016 · 1 comment

Comments

@hex2f
Copy link

hex2f commented May 10, 2016

My index.php:
`<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once('snapchat.php');

$snapchat = new Snapchat('dacexi', 'LElle');
$snaps = $snapchat->getSnaps();

?>`

And the errors i am getting:
`
Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /var/www/html/unencrypted/snap/index.php on line 7

Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /var/www/html/unencrypted/snap/index.php on line 7

Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /var/www/html/unencrypted/snap/index.php on line 7

Notice: Use of undefined constant CURLOPT_USERAGENT - assumed 'CURLOPT_USERAGENT' in /var/www/html/unencrypted/snap/index.php on line 7

Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/html/unencrypted/snap/index.php on line 7

Fatal error: Call to undefined function curl_init() in /var/www/html/unencrypted/snap/snapchat_agent.php on line 286`

@ShaunR
Copy link

ShaunR commented Nov 9, 2016

Your php installation is missing curl support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants