Garethp Posted August 27, 2009 Share Posted August 27, 2009 Can I use something like this? <?php $Something = "CURLOPT_URL"; $Something2 = "http://google.com"; curl_setopt($ch, $Something, $Something2); ?> You know, assuming I have everything else already setup. Could I do that? Link to comment https://forums.phpfreaks.com/topic/172081-solved-curl-setopt-question/ Share on other sites More sharing options...
Alex Posted August 27, 2009 Share Posted August 27, 2009 Basically yes, but you don't need the "s on the CURLOPT_URL, it's a constant not a string. $Something = CURLOPT_URL; Link to comment https://forums.phpfreaks.com/topic/172081-solved-curl-setopt-question/#findComment-907307 Share on other sites More sharing options...
Garethp Posted August 27, 2009 Author Share Posted August 27, 2009 Thank you Link to comment https://forums.phpfreaks.com/topic/172081-solved-curl-setopt-question/#findComment-907310 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.