Test: PHP Test
What is wrong with the following code?<?php curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); ?>
The cURL resource $ch has not been created using the curl_init() method.
There is nothing wrong with the code.
The $ch variable needs to be initialized as $ch=null;.
The code will cause a parse error.
0 votesPlease login to submit your answer.