i have a section of code
$date = dateTime::createFromFormat('Y-m-d', $sel_event['date']);
$output_date = $date->format('F j, Y');
when i run the page on my localhost server it works fine. but if i upload it to my linux bluehost server it wont display anything else on the entire site after the line of code before that. when i comment those lines out everything displays perfect.. heres more of the code. any one who can help me, thanks in advance.
<div id="headliner">
<h2><?php echo $sel_event['title'] . " At " . $sel_event['venue']; ?></h2>
<?php
$date = dateTime::createFromFormat('Y-m-d', $sel_event['date']);
$output_date = $date->format('F j, Y');
?>
<h2><?php echo $sel_event['hotel'] . " | " . $output_date; ?></h2>
</div><!-- close #headliner -->
Your script is dying probably due to fatal error when calling a datetIme. DatTime is PHP 5.3 >= function. Check the PHp version on your server