Jump to content

Printing on localhost but not once I've uploaded to my host.


swampone

Recommended Posts

$download will print on the screen on my localhost, but once I've uploaded it to my host and go to the website, everything else prints to the screen fine, but $download will not. When I view page source, shows nothing where $download should be.

$link_pattern = "/<tr><td><a(.*)<\/tr>/sU"; 

preg_match_all($link_pattern,$cr,$dm);
$downloads = $dm[0][0];
$pattern = '/src=\"/';
$replacement = 'src="http://www.triplestarent.com/images';
$download = preg_replace($pattern, $replacement, $downloads);


?>
<div class ="container">
<br>
<h1>
<?php echo $title; ?>
</h1>
<br>
<?php echo $image; ?>
<br><br>
<h2>
Track List
</h2>
<?php echo $tracks; ?>
<br><br>
<h2>
Download
</h2>
<br>
<table>
<?php echo $download; ?>
</table>
<br><br>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.