Installation question on XAMPP 1.8.1

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

Installation question on XAMPP 1.8.1

Postby cover » 24. December 2012 14:25

Hi,

I'm trying to finish up an installation on my Windows 7 64 bit machine of XAMPP-portable 1.8.1 that I downloaded today from here: http://www.apachefriends.org/en/xampp-windows.html

It SEEMS to work okay other than when I run a test.php, I can't get the date to come up.

Today is <? print strftime("%m/%d/%Y"); ?>

only reads "Today is".

I'm kind of guessing the problem may be in my php.ini file but I haven't done anything with that file as it appeared okay.

Ideas?
TIA
cover
 
Posts: 19
Joined: 24. December 2012 14:15
XAMPP Version: 5.6.3
Operating System: Windows 7 64bit

Re: Installation question on XAMPP 1.8.1

Postby JJ_Tagy » 24. December 2012 14:42

Default php.ini has short open tags off. Either use the full opening <?php CodeHere ?> or change your short open tags to On.
JJ_Tagy
 
Posts: 544
Joined: 30. January 2012 13:44
XAMPP Version: 1.8.3
Operating System: Windows 7 x64

Re: Installation question on XAMPP 1.8.1

Postby cover » 24. December 2012 14:55

That did the trick - thank you very much. :-)
cover
 
Posts: 19
Joined: 24. December 2012 14:15
XAMPP Version: 5.6.3
Operating System: Windows 7 64bit

Re: Installation question on XAMPP 1.8.1

Postby cover » 25. December 2012 03:40

A couple of questions on XAMPP 1.8.1 if anyone has the time. First, what is 'tomcat' ? I've used Apache, MySQL, and PHP at some length in the past and haven't run across tomcat but I noticed it was included in my download.

Second, is there an apache or PHP file where I should be setting my time zone? I went to make an entry tonight and noticed a 12/25 date displayed when it's not that date here yet.

Thanks very much
cover
 
Posts: 19
Joined: 24. December 2012 14:15
XAMPP Version: 5.6.3
Operating System: Windows 7 64bit

Re: Installation question on XAMPP 1.8.1

Postby JJ_Tagy » 25. December 2012 04:23

Tomcat: http://en.wikipedia.org/wiki/Apache_Tomcat
As for the date, if you are using PHP's date() function, you look in php.ini under [Date] and change date.timezone = Europe/Berlin to your desired location indicated at http://php.net/manual/en/datetime.confi ... e.timezone
JJ_Tagy
 
Posts: 544
Joined: 30. January 2012 13:44
XAMPP Version: 1.8.3
Operating System: Windows 7 x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: lse123 and 36 guests