Jump to content

24 hours ago in unix


ShoeLace1291

Recommended Posts

Ok, so that just displays the actual date.  I just need to get the unix time stamp from that and how I'm doing it works fine on my machine(xampp), but when I upload it to my web server, I get the following error

 

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /nfs/c03/h05/mnt/81715/domains/sidefxgaming.com/html/dev/system/application/models/sponsor.php on line 13

 

This is line 13:

$24hoursago = time()-60*60*23;

 

I get the same thing when I use your code.

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.