• Hi all,

    I am using WordPress as CMS for one of my school projects. And I am using PHP cURL commands in WordPress. When I try to cURL from a website (https://rkailash.com/ihome/products.php), I am unable to get the price from this particular website. The code that I am using is –
    [insert_php]
    $ch=curl_init();
    curl_setopt($ch, CURLOPT_URL, ‘https://rkailash.com/ihome/products.php’);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $contents = curl_exec($ch);
    echo $contents;
    [/insert_php]

    Any pointers in helping me fix my issue is appreciated!

    TIA

Viewing 1 replies (of 1 total)
  • Thread Starter neha11

    (@neha11)

    Hi I was able to find a temporary workaround to include my php script in a separate file and use it as a custom template for the WP page that I’m trying to use. But the theme of the WP pages is missing in that page.
    Any pointers would be appreciated!

Viewing 1 replies (of 1 total)
  • The topic ‘Issues with cURL on WordPress’ is closed to new replies.