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? Quote 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; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/172081-solved-curl-setopt-question/#findComment-907310 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.