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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.