You could simply use file_get_contents();
<?php
file_get_contents('http://www.website.com/billing/admin/clientsservices.php?userid=69264&id=68405&modop=terminate');
?>
And it will be called.
Domanda
I have been writing a module for our billing system at work, and it works beautifully. Unfortunately the API lacks a function that I need to terminate services immediately leaving me with the only option of calling the URL directly at...
http://www.website.com/billing/admin/clientsservices.php?userid=69264&id=68405&modop=terminate
As the module needs to continue to run without redirecting to that URL, how can I execute that from my PHP script?
Soluzione
You could simply use file_get_contents();
<?php
file_get_contents('http://www.website.com/billing/admin/clientsservices.php?userid=69264&id=68405&modop=terminate');
?>
And it will be called.
Altri suggerimenti
Why not just use curl to POST the data to the URL instead of using GET?