swampone Posted November 23, 2010 Share Posted November 23, 2010 $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 https://forums.phpfreaks.com/topic/219517-printing-on-localhost-but-not-once-ive-uploaded-to-my-host/ Share on other sites More sharing options...
herghost Posted November 23, 2010 Share Posted November 23, 2010 Replace $replacement = 'src="http://www.triplestarent.com/images'; with $replacement = 'src="http://www.triplestarent.com/images"'; Link to comment https://forums.phpfreaks.com/topic/219517-printing-on-localhost-but-not-once-ive-uploaded-to-my-host/#findComment-1138197 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.