문제

I have a script which uses require_once, but it fails to actually include the file. I have ran a check and the code agrees that the file is in the right place, using the right paths. Do I need to configure anything extra? Is there a problem with my code?

if (is_file('lib/stripe/Stripe.php')){
    echo "Found file";
    require_once 'lib/stripe/Stripe.php';
    echo "Hello World";
}

else{
    echo "Failed to find file";
}

"Found file" is successfully returned, but "Hello World" isn't.

도움이 되었습니까?

해결책

Error log showed that curl wasn't installed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top