So I have this code below. However, every time I try to execute it I get a is currently unable to handle this request. HTTP ERROR 500
error. I am unsure as to why.
<?php
$newname=1;
$cid=(curl -s -q "http://secure.imvu.com/catalog/skudb/gateway.php" -X POST -d "<?xml version="1.0"?>
<methodCall>
<methodName>gateway.getUserIdForAvatarName</methodName>
<params>
<param><value><string>$newname</string></value></param>
</params></methodCall>" | tr "<int>" "
" | grep -i [0-9] | tail -1);
echo $cid;
?>
Error:
[02-Dec-2018 12:53:39 UTC] PHP Parse error: syntax error, unexpected '"http://secure.imvu.com/catalo' (T_CONSTANT_ENCAPSED_STRING) in test.php on line 3