Hi...
I'm working with some code, and have run into an issue that, after a long search on the forums, I still haven't located a resolution to.
I'm familiar with includes, and have used them quite a bit with the last several webpages I've designed. However, currently I have data from an external source that I can add as an include file (the output is a text string)... but the location I need to add this data is inside a variable string.
As an example :
$display_content = "
<tr>
<td>blah blah</td>
</tr>
<tr>
<td> [NEED INCLUDE DATA HERE] </td>
</tr>
<tr>
<td>blah blah</td>
</tr>";
The variable the data needs to be included into is itself an include to a main page file where the "$display_content" is parsed as page content.
If this were standard HTML, I could simply do a
<html>
<head>
<title>blah</title>
</head>
<body>
<table>
<tr>
<td>blah blah</td>
</tr>
<tr>
<td><?php include('http://www.someurl.com/somepage.php?var=$somevar'); ?></td>
</tr>
<tr>
<td>blah blah</td>
</tr>
</table>
</html>
but unfortunately that's not the case.
So is there a way to accomplish this? I've tried several things and nothing's worked so far.