This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Trying to render URL as variable in

kst wrote on 2020-09-03:
Hello
Tying to insert a variable in URL (&c=value)

When using direct URL (without variables un URL):
/$client->convertUrlToFile('http://portals.nubephant.com/feedback-report/?preview_id=632&c=FA1310213', $filename2);
result is ok.....

but when using:
$cad = '"http://portals.nubephant.com/feedback-report/?preview_id=632' . '&c='. $codigo . '"';
$client->convertUrlToFile($cad,$filename2);

I don't have problem with "$filename" variable, only with URL variable...
Doesn't run the conversion

Please your help

Regards

Enrique
support wrote on 2020-09-04:
Hello Enrique,

There are many quotes in your code. Try to replace
$cad = '"http://portals.nubephant.com/feedback-report/?preview_id=632' . '&c='. $codigo . '"';
with
$cad = 'http://portals.nubephant.com/feedback-report/?preview_id=632&c=' . $codigo;