echo 'Invoice "'.$invoice->getId().'" created, see '.$invoice->getUrl().PHP_EOL;
i have this line on the end of a php file and as you can see it prints text to the screen. its working good but i got confused trying to use this part $invoice->getUrl() on its own, you see when i run the code it print out a url to the screen. I want to use that url and make the php script redirect to it automatically and all my efforts to do so have failed
i want to do something like this:
URL = ($invoice->getUrl());
open(url)
or just open($invoice->getUrl()); but in php
i have this line on the end of a php file and as you can see it prints text to the screen. its working good but i got confused trying to use this part $invoice->getUrl() on its own, you see when i run the code it print out a url to the screen. I want to use that url and make the php script redirect to it automatically and all my efforts to do so have failed
i want to do something like this:
URL = ($invoice->getUrl());
open(url)
or just open($invoice->getUrl()); but in php