Answers for "hit a simple url using curl in php"

PHP
0

hit a simple url using curl in php

<?php
  ob_start();
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,'https://example.com/student_list.php');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($ch);
  echo $response;
  ?>
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language