Jump to content

variable in curl


supermerc

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.