December 28th, 2004, 11:49 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
I am trying to find the user's local date, (rather than the server's), using PHP.
Any help?
Blaze |
| |
December 28th, 2004, 11:57 PM
|
#2 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
javascript to run client side, delivered by php. |
| |
December 29th, 2004, 12:00 AM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
| |
| |
December 29th, 2004, 12:35 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
| Code: <SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var time=new Date();
var lmonth=time.getMonth() + 1;
var date=time.getDate();
var year=time.getYear();
year = year + 1900;
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
urlString= "http://www.atholdailynews.com/700design/index.php?d_d=" + date;
window.location = urlString;
// End -->
</SCRIPT> that works, but it then brings me to a 404 error page. However, if I manuelly type in that address, it works as expected.
Any ideas?
Blaze |
| |
December 29th, 2004, 12:39 AM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
NVM. I am a idiot!
(Put 700design , instead of 700Design!)
Blaze |
| |
December 29th, 2004, 12:43 AM
|
#6 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
Good job. Nice thing about that approach is that then you don't have to worry about timezones and daylight saving  . |
| |
December 29th, 2004, 12:56 AM
|
#7 (permalink)
| | Newbie
Join Date: May 2004 Location: Philippines
Posts: 3,894
|
ey Blazer06 i just visit your website and i found typo error, on account section
To view your account please visit http:\\youraccountname.700design.com
To FTP to your account please visit ftp:\\youraccountname@700design.com
the slash 
__________________
I miss Dimebag Darrell
|
| |
December 29th, 2004, 01:14 AM
|
#8 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
filipino... that entire site is a year+ old and is being re designed, I just have a large project goign right now... so I haven't done it.
Thanks though!
Blaze |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |