Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a PHP Page without redirect?

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?


1 Answers

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.

like image 138
Jonas m Avatar answered Aug 25 '26 07:08

Jonas m



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!