Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Windows dates PHP 5.1

Featured Replies

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.

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.

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

  • Author
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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.