Jump to content
The Uniform Server Community

Windows dates PHP 5.1


Recommended Posts

Posted

Great program. Php seems to have problems with dates prior to 1970 when running under Windows. Php version 5.1 has had the date functions rewritten, resolving the problem. Does anyone know how to upgrade php in uniformserver to php 5.1? Thank you.

Posted
Does anyone know how to upgrade php in uniformserver to php 5.1? Thank you.

 

I replaced the php.exe and copied all DLLs. I think the biggest problem is the php.ini. I used WinMerge to merge the old ini file with the new 5.1 one.

 

The first think you have to do is setting the default date in the ini or with ini_set(), or you will always get an error when you use a time function. See php.net for the allowed values...

 

Other problems:

 

- mktime() without parameters (current server time) causes an error. it has to be replaced with time()

- if you use mktime() with the last parameter for the DST time, this will also cause an error

Posted
It is recommended that you wait till 3.3 which should be out the first or second week of December. It will come with PHP 5.1 which is what we have mainly been waiting for.

1948[/snapback]

 

Thank you very much. I'll wait for 3.3.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...