I am trying to get xml data from the plesk api with a script that works outside laravel. But since I am trying to use this script in laravel I get an error on the second line below:
$xmlresponse = new SimpleXMLElement($response);
echo $xmlresponse->webspace->customer->get->result->id;
Error: Trying to get property of non-object
I think it is because of the object operator (->). But I am not sure if blade has problems with this.
PS: $response contains xml data.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire