supermerc Posted July 9, 2009 Share Posted July 9, 2009 Hey, this might be a stupid question but I want to do a curl funtion and have a variable in it forexample: curl_setopt($ch, CURLOPT_URL, 'http://quiver.outwar.com/trade.php?tradeWith=7200&addItem=6919211&addHash=$hash'); $hash is the variable I want to put in but i dont know what to put around it for it to count as the variable and not just the text $hash. thx Link to comment https://forums.phpfreaks.com/topic/165284-variable-in-curl/ Share on other sites More sharing options...
allenskd Posted July 9, 2009 Share Posted July 9, 2009 well... you could start by adding a dot.. curl_setopt($ch, CURLOPT_URL, 'http://quiver.outwar.com/trade.php?tradeWith=7200&addItem=6919211&addHash='.$hash); Link to comment https://forums.phpfreaks.com/topic/165284-variable-in-curl/#findComment-871629 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.