Create Temporary url for a Dynamic page in PHP
<p>I am generating a php response to a post request as follows</p>

<pre><code>&lt;?php
ob_start();
include_once('includes/headers.php');
require_once('includes/connection.php');
require_once('includes/functions.php');
?&gt;

&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"&gt;
&lt;/head&gt;
&lt;?php
include($filePath);
?&gt;
</code></pre>

<p>This works and is OK.</p>

<p>But I have a different use case.</p>

<p>I want to get the output of this page and create a page. </p>

<p>Then send the user the link to that page.</p>

<p>So the reponse will be a link only.</p>

<p>The page will be destroyed after the user is done with it and need not be stored.</p>

<p>How can this be done in PHP.</p>