home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1800
Discussions: 188,401, Posts: 2,243,599, Members: 232,629
Old December 28th, 2004, 11:49 PM   Digg it!   #1 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Need Some PHP Help!!

I am trying to find the user's local date, (rather than the server's), using PHP.

Any help?


Blaze

Blazer06 is offline   Reply With Quote
Old December 28th, 2004, 11:57 PM     #2 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
javascript to run client side, delivered by php.

James T is offline   Reply With Quote
Old December 29th, 2004, 12:00 AM     #3 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Code?


Blaze

Blazer06 is offline   Reply With Quote
Old December 29th, 2004, 12:35 AM     #4 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
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
Blazer06 is offline   Reply With Quote
Old December 29th, 2004, 12:39 AM     #5 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
NVM. I am a idiot!

(Put 700design , instead of 700Design!)


Blaze
Blazer06 is offline   Reply With Quote
Old December 29th, 2004, 12:43 AM     #6 (permalink)
Senior Member
 
James T's Avatar
 
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 .
James T is offline   Reply With Quote
Old December 29th, 2004, 12:56 AM     #7 (permalink)
Newbie
 
filipino's Avatar
 
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
filipino is offline   Reply With Quote
Old December 29th, 2004, 01:14 AM     #8 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
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
Blazer06 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
poll on my website in HTML? Chooco Webmastering and Programming 16 February 27th, 2005 08:37 PM
PHP Radio Button Email Help, Verify Password embj Webmastering and Programming 13 July 12th, 2003 10:44 PM
Win xp, Apache2.x, PHP4.x, problems testing php or posibly not installed correctly Ronanmckibbin Webmastering and Programming 2 April 5th, 2003 05:40 PM
PHP Help TaStiEzs Webmastering and Programming 11 August 25th, 2002 06:37 AM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
Sporadic internet connectivity (2)
Assassins Creed PC Problems (40)
I think my PSU is dieing (1)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:37 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28