Reading a json respons echos script

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Reading a json respons echos script

Postby LqDFx » 12. January 2016 17:26

Im very new to the server environment and just installed xampp to use as a test before uploading to a live server, but...

after installing and trying to run my site that works on the live server, this:

Code: Select all
require 'carbon.php';
use Carbon\Carbon;

$resetDaily = new Carbon('2016-01-12T09:00:00Z');
$resetWeekly = new Carbon('2016-01-19T09:00:00Z');
$todayDate = Carbon::now();
$dm_diffDays = $resetWeekly->diffInDays($todayDate);
$dm_diffHours = $resetDaily->diffInHours($todayDate);

echo 'Today: '.$todayDate.'<br>';
echo 'Weekly Reset in '.$dm_diffDays.' Days<br>';
echo 'Daily Reset in '.$dm_diffHours.' Hours<br>';


diffInDays($todayDate); $dm_diffHours = $resetDaily->diffInHours($todayDate); echo 'Today: '.$todayDate.'
'; echo 'Weekly Reset in '.$dm_diffDays.' Days
'; echo 'Daily Reset in '.$dm_diffHours.' Hours
'; ?>

any idea what I need to change in the setting to get it working right? All I did was install it and copy my files at this point.

Posts: 1
Joined: 12. January 2016 17:18
Operating System: Windows 7

Re: Reading a json respons echos script

Postby Nobbie » 12. January 2016 17:53


Code: Select all


Code: Select all

and read the doc about short_open_tag
Posts: 8629
Joined: 09. March 2008 13:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 76 guests