Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP ISAPI problem(!?)

Status
Not open for further replies.

alfalf

Programmer
Joined
Mar 6, 2003
Messages
155
Location
BA
Hello all.

I have paculiar problem.

When I try to display TimeZone with date("T") on my ISAPI PHP instalation on W2K(IIS), IIS needs restart to refresh current selected TimeZone Windows Setting.

Must say, haven't had that problem when my PHP was instaled as CGI-BIN, neither under IIS nor under Apache.

This problem appeared when I installed ISAPI.

What is it?
- I have index page on wich I wish to display timezone information for any client (on wich their mashine runs). I used date("T") PHP function to do that.
- When I had PHP installed as CGI-BIN, everything seemed smooth - whenever I change timezone windows setting (as I run all this on W2K), and refreshed page, selected timezone appeared on my page.
- Problem appeared when I switched to ISAPI PHP instalation under W2K and IIS (php4isapi.dll, not as isapi filter of IIS Server, just parser of php, phtml pages).
- Now I discovered, that I have to restart IIS service (wich again reinitalizes PHP) every time i change timezone windows settings, in order my timezone to be properely shown.
- All this I was doing just for testing purposes.

My doubts:
- Does it matter if I have to restart IIS services any time I change my timezone (on my mashine)?
- Would all this work OK on client side?
- In some moment a thought came over my mind, as PHP is server sided, will it display clients timezone setting or servers (mine)? :-) And, if not, should I instead use Javascript?

My Installation:
W2K SP4, IIS 5, PHP-ISAPI 4.3.3.(PHP Modules installed: win32 API, domxml, imap, java, com, mysql, odbc, pcre, pdf, wddx, xml, zlib, filepro).

Thanks for any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top