[PHP] Time estimating for PM's/Clients

2006-02-01 Thread Mark Steudel
I am interested in finding out what standards/formulas other PHP programmers/departments out there are using to accurately provide time estimates on modules to their PM's/Clients. Any suggested reading books or sites? Do time estimate theories in other langauges apply to web and php programming

Re: [PHP] Time estimating for PM's/Clients

2006-02-01 Thread Paul Novitski
At 11:10 AM 2/1/2006, Mark Steudel wrote: I am interested in finding out what standards/formulas other PHP programmers/departments out there are using to accurately provide time estimates on modules to their PM's/Clients. Any suggested reading books or sites? Highly recommended: Web

[PHP] time zone problem

2005-08-31 Thread Sergey
Hi! I some problem: I have visitor's IP, country and city. I need to define his GMT offset. Have you such database GMT's offsets. I found many such list in Google but many countries has different GMT's (Russia - 7!). Any idea? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] time and timestamp

2005-08-30 Thread Ross
Hi, I have a row in myslq database called time and is just a simple timestamp column When I echo it out echo $row['time']; echo $row['content']; I get the following 2005-08-30 13:50.05 this is the text content Now I am not worried about the time but I would like to know how to (i) sort

RE: [PHP] time and timestamp

2005-08-30 Thread Jay Blanchard
[snip] Now I am not worried about the time but I would like to know how to (i) sort the returned rows in order (latest first) (ii) be able to extract the individual parts of the date and display them in UK format 30.08.2005 this is the text from 30th of August 27.08.2005 this is the text from

Re: [PHP] time and timestamp

2005-08-30 Thread Burhan Khalid
Jay Blanchard wrote: [snip] Now I am not worried about the time but I would like to know how to (i) sort the returned rows in order (latest first) add ORDER BY `yourdatefield` DESC to your SQL (ii) be able to extract the individual parts of the date and display them in UK format Have no

[PHP] time()

2005-07-29 Thread virtualsoftware
Hi, I have the date when users registered stored in the database using time() function format. I have to search for users that are registered this week, this month and this year. How can i do that? I mean how can i found the beginning of this week? Or the beginning of this month? Thanks in

Re: [PHP] time()

2005-07-29 Thread Marcus Bointon
On 29 Jul 2005, at 08:37, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the date when users registered stored in the database using time() function format. Hm. I hope this means you're storing it as a TimeStamp format, or better, DateTime, and not as a simple integer field. I have

[PHP] Time Zone names

2005-07-13 Thread Richard Lynch
for PHP time zone but... What am I missing? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Time Zone names

2005-07-13 Thread Dotan Cohen
Contributed notes, and none seemed to answer it. I suppose I could Google for PHP time zone but... What am I missing? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Richard, Take

Re: [PHP] Time Zone names

2005-07-13 Thread Philip Hallstrom
I'd like to generate a list of time zones (EST, CDT, whatever) for a popup. Seems like it should be easy... This is so the Sales guy can just plug in the time and zone of who he's gotta call back, and I stuff that in the database, and he gets a morning report of who to call. ?php for ($offset

[PHP] time

2004-10-13 Thread Jerry Swanson
I want to send email every 24. What time format you recomend to use? In what format the data should be store in mysql? TH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] time

2004-10-13 Thread Robby Russell
On Wed, 2004-10-13 at 10:31 -0400, Jerry Swanson wrote: I want to send email every 24. What time format you recomend to use? In what format the data should be store in mysql? TH every 24? hours? minutes? Are you going to be running a script all the time to do this? You might want to

Re: [PHP] time

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 10:31:54 -0400, Jerry Swanson [EMAIL PROTECTED] wrote: I want to send email every 24. What time format you recomend to use? In what format the data should be store in mysql? Your question is more appropriate for php-db or a MySQL list serv. I'm not sure why you need to

Re: [PHP] Time consumed in microseconds

2004-08-31 Thread Karam Chand
Darn missed it. Looking into the docs I am using code somthing like this: $start = microtime(); $result = mysql_query ( $query, $mysql ); $end = microtime(); $diff = microtime_diff ($start, $end); function microtimdiff() is given by: function

Re: [PHP] Time consumed in microseconds

2004-08-31 Thread raditha dissanayake
Karam Chand wrote: Darn missed it. Looking into the docs I am using code somthing like this: If you are really keen about chaning +1 to ++ and double quotes to single quotes in the hope of shaving off a few milliseconds in execution time you might want to try something like xdebug. --

[PHP] Time consumed in microseconds

2004-08-30 Thread Karam Chand
Hello, In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I used

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread John Holmes
Karam Chand wrote: In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I

Re: [PHP] PHP time zone

2004-04-14 Thread David Robley
[EMAIL PROTECTED] (Tom Rogers) wrote in news:[EMAIL PROTECTED]: I have this in an auto_prepend file or you can put it before using any of the date() functions putenv('TZ=Australia/Brisbane'); But, but, that'll put the clock back 20 years and then add 30 minutes to Central Standard time

[PHP] PHP time zone

2004-04-13 Thread nabil
how can get a specific time zone, not the server time. example: if the server time is 13:15:46 I need to output that time +5hours so 18:15:46 because the hosting server time is not my local or other area time.. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP time zone

2004-04-13 Thread Red Wingate
Best: use gmmktime() and add the required offset by: $time_here = gmmktime() + ( $offset * 60 * 60 ) ; how can get a specific time zone, not the server time. example: if the server time is 13:15:46 I need to output that time +5hours so 18:15:46 because the hosting server time is not my

Re: [PHP] PHP time zone

2004-04-13 Thread Tom Rogers
Hi, Tuesday, April 13, 2004, 9:29:19 PM, you wrote: n how can get a specific time zone, not the server time. n example: n if the server time is 13:15:46 I need to output that time +5hours n so 18:15:46 n because the hosting server time is not my local or other area time.. n thanks I have

[PHP] time function

2004-03-25 Thread Matthew Oatham
Hi, I have a TIME field type in mysql database I want to do a select and add all the times together to return a total time, can I do this using the select statement? cheers matt

Re: [PHP] time function

2004-03-25 Thread Burhan Khalid
Matthew Oatham wrote: Hi, I have a TIME field type in mysql database I want to do a select and add all the times together to return a total time, can I do this using the select statement? cheers This is a PHP list, not MySQL. http://www.mysql.com/doc/en/DATETIME.html -- PHP General Mailing

RE: [PHP] time function

2004-03-25 Thread Angelo Zanetti
select sum(mytime) from table... not sure if it will work but try it! angelo -Original Message- From: Matthew Oatham [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 1:31 PM To: [EMAIL PROTECTED] Subject: [PHP] time function Hi, I have a TIME field type in mysql database I

[PHP] time delay function?

2004-03-09 Thread Scott Taylor
I am wondering if there is a time delay function, one that will cause the program to be inactive for a number of seconds (something like delay(10) ). I am doing this because I am setting up a mass mailing program (this is not spam), and I don't want to be targeted as spam. Best Regards,

Re: [PHP] time delay function?

2004-03-09 Thread Richard Davey
Hello Scott, Wednesday, March 10, 2004, 4:12:29 AM, you wrote: ST I am wondering if there is a time delay function, one that will cause ST the program to be inactive for a number of seconds (something like ST delay(10) ). I am doing this because I am setting up a mass mailing ST program (this

RE: [PHP] time delay function?

2004-03-09 Thread Jason Sheets
Take a look at sleep() http://www.php.net/sleep It delays execution by a user specified number of seconds. Jason -Original Message- From: Scott Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 9:12 PM To: [EMAIL PROTECTED] Subject: [PHP] time delay function? I am

[PHP] Time Limit in save-mode

2004-01-09 Thread Pavel Janda
Hello, a have this problem. I am reading some data from another server via http-conection for which I have used fsock_open. But sometimes, it is possible, that reading is longer, than for example 5 seconds, and I want to stop this reading a return false... I found function set_time_limit,

[PHP] Time

2003-11-25 Thread Fernando Melo
Hi there, I have a RH Linux Web server running apache and PHP. I recently changed the system clock, the time zone and hardware clock. The time and date are showing up correctly in Webmin and in the O/S itself. But when I call a php function to display the date and time it shows it as one hour

RE: [PHP] Time

2003-11-25 Thread Wouter van Vliet
Fernando Melo wrote: Hi there, I have a RH Linux Web server running apache and PHP. I recently changed the system clock, the time zone and hardware clock. The time and date are showing up correctly in Webmin and in the O/S itself. But when I call a php function to display the date and

[PHP] Time

2003-11-25 Thread Fernando Melo
Hi there, I have a RH Linux Web server running apache and PHP. I recently changed the system clock, the time zone and hardware clock. The time and date are showing up correctly in Webmin and in the O/S itself. But when I call a php function to display the date and time it shows it as one

RE: [PHP] Time

2003-11-25 Thread Fernando Melo
I have done all those checks. Thanks for trying though. Anyone else have any suggestions please? :( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 November 2003 16:06 To: [EMAIL PROTECTED] Subject: AW: [PHP] Time Hi Fernando, first try date and date -u

RE: [PHP] Time

2003-11-25 Thread Fernando Melo
] Sent: 25 November 2003 13:13 To: 'Fernando Melo'; [EMAIL PROTECTED] Subject: RE: [PHP] Time Fernando Melo wrote: Hi there, I have a RH Linux Web server running apache and PHP. I recently changed the system clock, the time zone and hardware clock. The time and date are showing up correctly

[PHP] time out for mysql_connect

2003-11-21 Thread Diana Castillo
Is there anyway to set a time out on this command: mysql_connect($host, $UN, $PW); so that if it can´t connect after a certain amount of time, it returns an error and the program continues? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] time out for mysql_connect

2003-11-21 Thread Marek Kilimajer
Diana Castillo wrote: Is there anyway to set a time out on this command: mysql_connect($host, $UN, $PW); so that if it can´t connect after a certain amount of time, it returns an error and the program continues? ini_set('mysql.connect_timeout', ... ); -- PHP General Mailing List

[PHP] Time problem

2003-11-11 Thread Erin
Hi All, Sorry if this has been asked a 1000 times and if its easy to find in the php manual but i cant seam to solve this. How do i convert a timestamp in to a normal readable time date ie 2003155023 into 11th November 2003 @ 15:50:23 Many thanks, thought id ask someone is bound to

Re: [PHP] Time problem

2003-11-11 Thread Chris Shiflett
--- Erin [EMAIL PROTECTED] wrote: How do i convert a timestamp in to a normal readable time date ie 2003155023 into 11th November 2003 @ 15:50:23 That's not a timestamp, first of all. It looks to me like you just need to use substr() to parse out the elements however you want. You

RE: [PHP] Time problem

2003-11-11 Thread Vail, Warren
. http://www.php.net/manual/en/function.date.php Good luck, Warren Vail -Original Message- From: Erin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: [PHP] Time problem Hi All, Sorry if this has been asked a 1000 times and if its

Re: [PHP] Time problem

2003-11-11 Thread John W. Holmes
Erin wrote: Hi All, Sorry if this has been asked a 1000 times and if its easy to find in the php manual but i cant seam to solve this. How do i convert a timestamp in to a normal readable time date ie 2003155023 into 11th November 2003 @ 15:50:23 IFF the timestamp is coming from MySQL

RE: [PHP] time() daylight savings

2003-11-03 Thread Jay Blanchard
[snip] does anybody know how php handles daylight saving issues ? [/snip] I am pretty sure that PHP does not 'handle' daylight savings issues at all, but relies on the server settings for its time base. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] time() daylight savings

2003-11-02 Thread philip lehmann
hi ! i'm working in a calendar software, web based with php and a windows client. i can write appointments to my mysql database with the windows client independent from daylight savings. it always shows the appointments at the right time. if i create appointments with my php web frontend e.g. 1st

[PHP] Time Calcuations

2003-10-15 Thread Jake McHenry
Hello again Here's my problem: In my time calculations, I'm taking the time that the user clocked out, minus the time they clocked in. I'm using the time_to_sec function in mysql. I work very odd hours. If I clock in say at 10pm, then clock out at 1am, the clock is majorly messed up. I think

Re: [PHP] Time Calcuations

2003-10-15 Thread John W. Holmes
Jake McHenry wrote: Here's my problem: In my time calculations, I'm taking the time that the user clocked out, minus the time they clocked in. I'm using the time_to_sec function in mysql. I work very odd hours. If I clock in say at 10pm, then clock out at 1am, the clock is majorly messed up. I

[PHP] TIME

2003-09-02 Thread Dale Hersh
The battery on my server keeps on dieing, so the clock is not keeping time correctly. I was wondering is there any way to query some type of global time source in php? Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] TIME

2003-09-02 Thread Nicholas Robinson
Not directly as far as I know. Try using chronyd or similar (google will point you in the right direction). This works well with one of my machines that has a wayward clock and chronyd is happy to work with networks not permanently connected to the internet. On Tuesday 02 Sep 2003 1:11 am,

Re: [PHP] TIME

2003-09-02 Thread Curt Zirzow
* Thus wrote Dale Hersh ([EMAIL PROTECTED]): The battery on my server keeps on dieing, so the clock is not keeping time correctly. I was wondering is there any way to query some type of global time source in php? Totally unrealated to php but search for: Network Time Protocol (NTP) That

Re: [PHP] time calcs

2003-06-30 Thread Wendell Brown
On Mon, 30 Jun 2003 07:31:59 -0500, Wendell Brown wrote: On Sun, 29 Jun 2003 15:19:56 -0400, Larry R. Sieting wrote: I want to output the difference as a difference expressed in time format: 10:05:23 - 09:45:32 = 00:39:51 Try this: ?PHP $tot_time = ($data['end_time'] -

[PHP] time calcs

2003-06-29 Thread Larry R. Sieting
Hello, I am trying to get a time calculation using: $tot_time = ($data['end_time'] - $data['start_time']); The end_time start_time are stored in a db as column type of time. I want to output the difference as a difference expressed in time format: 10:05:23 - 09:45:32 = 00:39:51 Do

Re: [PHP] time calcs

2003-06-29 Thread Jason Wong
On Monday 30 June 2003 03:19, Larry R. Sieting wrote: I am trying to get a time calculation using: $tot_time = ($data['end_time'] - $data['start_time']); The end_time start_time are stored in a db as column type of time. I want to output the difference as a difference expressed in

[PHP] Time stamp and changing to a date.

2003-03-28 Thread Philip J. Newman
$mydate = 20030328231154; $myPrintDate=date (l dS of F Y h:i:s A,$mydate); echo $myPrintDate; Whats wrong -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Time stamp and changing to a date.

2003-03-28 Thread Rich Gray
$mydate = 20030328231154; $myPrintDate=date (l dS of F Y h:i:s A,$mydate); echo $myPrintDate; Whats wrong $mydate should be a unix style timestamp not a MMDDHHMMSS type date/time format... Check the functions time() and mktime() to help you generate unix timestamps. HTH Rich --

Re: [PHP] Time stamp and changing to a date.

2003-03-28 Thread Ryan Gibson
?php $mydate = date(20030328231154); $myPrintDate=date (l dS of F Y h:i:s A,$mydate); echo $myPrintDate; ? On 28/3/03 11:44 am, Philip J. Newman [EMAIL PROTECTED] wrote: $mydate = 20030328231154; $myPrintDate=date (l dS of F Y h:i:s A,$mydate); echo $myPrintDate; Whats wrong --

[PHP] time() question

2003-03-13 Thread Tom Ray
Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again how do I make it look like 2003-03-13 or a variant of that? TIA -- PHP General

Re: [PHP] time() question

2003-03-13 Thread Larry E. Ullman
Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again how do I make it look like 2003-03-13 or a variant of that? If you are pulling a

Re: [PHP] time() question

2003-03-13 Thread Tom Woody
On Thu, 13 Mar 2003 12:07:33 -0500 Tom Ray [EMAIL PROTECTED] wrote: Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again how do I

Re: [PHP] time() question

2003-03-13 Thread Ernest E Vogelsinger
At 18:07 13.03.2003, Tom Ray said: [snip] Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again

[PHP] Time Delay?

2003-02-01 Thread OjMyStEr
Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like this: ?php function

Re: [PHP] Time Delay?

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 21:27, OjMyStEr wrote: Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way

[PHP] Time code!!!

2003-01-20 Thread Karl James
does anyone have the code to where i can have the time printed on my home page like for example Monday, January 19, 2003 also I want to have it state when the users login in it says welcome back, (name) any advise would be fantastic? Thanks Karl

Re: [PHP] Time code!!!

2003-01-20 Thread Justin French
Please post in raw text, not HTML. ?php echo date('d m y'); ? look in the manual to decide what format you need to replace 'd m y' with: http://php.net/date The welcome back bit all depends on cookies, sessions, how your login scripts work, etc etc. Justin on 20/01/03 12:46 PM, Karl James

Re: [PHP] Time code!!!

2003-01-20 Thread Larry E. Ullman
does anyone have the code to where i can have the time printed on my home page like for example  Monday, January 19, 2003 The PHP Manual has this code, under the date() function (www.php.net/date). echo date (l, F j, Y);  also I want to have it state when the users login in it says welcome

RE: [PHP] Time code!!!

2003-01-20 Thread David Freeman
Hi Karl First up, would you mind posting your messages in plain text instead of html format? It's just a courtesy to the rest of us. does anyone have the code to where i can have the time printed on my home page like for example Monday, January 19, 2003 Sure, check out the date()

[PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
hey guys could someone help me I have created a user login register system in flash with PHP and Mysql. Everthing Now works fine aprt from the time stamp of when the user registered. Code --- // Get current date time $time = time(); // Connects to the Database.

Re: [PHP] time stamp screwing up

2003-01-06 Thread Stephan Seidt
What sort of mysql field type did you use for dateAdded ? You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format. - [ Paul Ferrie ] - wrote: hey guys could someone help me I have created a user login register system in flash with PHP and Mysql. Everthing Now works fine aprt from

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
nope it still comes up with all the zero's :( Stephan Seidt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What sort of mysql field type did you use for dateAdded ? You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format. - [ Paul Ferrie ] -

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:19, - \[ Paul Ferrie \] - wrote: hey guys could someone help me I have created a user login register system in flash with PHP and Mysql. Everthing Now works fine aprt from the time stamp of when the user registered. Code --- //

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
So Jason what your saying is this $query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL, '$name', '$pass', '$email', '$time'); Should be $query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL, '$name', '$pass', '$email', NOW()); ?? cheers Jason

Re: [PHP] time stamp screwing up

2003-01-06 Thread Stephan Seidt
yep i guess that, so NOW() is a mysql function. - [ Paul Ferrie ] - wrote: So Jason what your saying is this $query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL, '$name', '$pass', '$email', '$time'); Should be $query = INSERT INTO contacts (id, name, pass, email,

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:49, - \[ Paul Ferrie \] - wrote: So Jason what your saying is this $query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL, '$name', '$pass', '$email', '$time'); Should be $query = INSERT INTO contacts (id, name, pass, email, dateAdded)

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
So Is NOW() a mysql function? Stephan Seidt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... yep i guess that, so NOW() is a mysql function. - [ Paul Ferrie ] - wrote: So Jason what your saying is this $query = INSERT INTO contacts (id, name,

Re: [PHP] time stamp screwing up

2003-01-06 Thread - Edwin
- [ Paul Ferrie ] - [EMAIL PROTECTED] wrote: So Is NOW() a mysql function? Well, you can check for yourself ;) It should be somewhere around here: http://www.mysql.com/doc/en/Date_and_time_functions.html - E ...[snip]... __

Re: [PHP] time stamp screwing up

2003-01-06 Thread - \[ Paul Ferrie \] -
Well i am still getting all the zero's : ( : ( - Edwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... - [ Paul Ferrie ] - [EMAIL PROTECTED] wrote: So Is NOW() a mysql function? Well, you can check for yourself ;) It should be somewhere

Fw: [PHP] time stamp screwing up

2003-01-06 Thread Rick Emery
show us your database table structure (the whole thing). the NOW() will always work with a date or timestamp field - Original Message - From: - [ Paul Ferrie ] - [EMAIL PROTECTED] To: Sent: Monday, January 06, 2003 11:28 AM Subject: Re: [PHP] time stamp screwing up Well i am still

Re: [PHP] time stamp screwing up

2003-01-06 Thread Justin French
A MySQL timestamp is different to a MySQL timestamp. $time = time(); will produce a unix timestamp what you want is $time = date('Y-m-d'); to give a value in the format -MM-DD I think you can also use NOW(): $query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL,

[PHP] time out when uploading.. PLEASE HELP ME :)

2002-11-11 Thread Eduardo M. Bragatto
I'm using a simple php script called upload.php, here's the source: ?php move_uploaded_file($userfile, /my/dir); ? But I keep getting an error message: Fatal error: Maximum execution time of 20 seconds exceeded in D:\dominios\E\escolas-es\spe\upload.php on line 3 Then, I've tried to

[PHP] Time limit exceeded when uploading files

2002-11-02 Thread Eduardo M. Bragatto
I'm using a single php script to send files named upload.php, here is the source code: ?php set_time_limit(500); copy($userfile, log\\$userfile_name); echo htmlheadtitleUploading file.../titlemeta http-equiv=\refresh\ content=\0; url=http://test.com/file_sent.html\;/headbodycenterfont

[PHP] Time-zone self adjuster

2002-10-16 Thread Rick Faaberg
(I am new here, so excuse my recycled questions. Is there an archive?) What's a primo date/time display script that gets server time and adjusts to the client time zone automatically? Most I've seen have hard-coded GMT offsets, which I don't want. Thanks Rick -- PHP General Mailing List

[PHP] time of day

2002-10-03 Thread Bryan Koschmann - GKT
Hello, I was wondering if anyone has a good example of a way to do this. Kinda lame, but like if the time is between 8am and 12pm, say good morning, between 12pm and 6pm, say good afternoon, and so on. I know this is probably pretty trivial, but I just wanted to see what ideas where out there.

Re: [PHP] time of day

2002-10-03 Thread Kevin Stone
, October 03, 2002 3:43 PM Subject: [PHP] time of day Hello, I was wondering if anyone has a good example of a way to do this. Kinda lame, but like if the time is between 8am and 12pm, say good morning, between 12pm and 6pm, say good afternoon, and so on. I know this is probably pretty trivial

Re: [PHP] time of day

2002-10-03 Thread Michael Sims
On Thu, 3 Oct 2002 14:43:37 -0700 (PDT), you wrote: Hello, I was wondering if anyone has a good example of a way to do this. Kinda lame, but like if the time is between 8am and 12pm, say good morning, between 12pm and 6pm, say good afternoon, and so on. I know this is probably pretty trivial,

Re: [PHP] time to seconds

2002-09-25 Thread mhafizm
select time_to_sec('00:12:30) ?? From: adi [EMAIL PROTECTED] Date: 2002/09/18 Wed PM 04:54:31 CST To: PHP-General [EMAIL PROTECTED] Subject: [PHP] time to seconds Hi, I have a table table1, with a column Duration time type(ex 00:12:30) I want to make in PHP a sql selection

[PHP] Time is off?

2002-09-25 Thread Brandon Orther
Hello, I am trying to figure out why Squirrel Mail is giving the wrong time. I did a basic script ? echo date('h:I'); ? and the time is off in that script too. I have checked the server time and the server hardware clock. They are both on. Does anyone know a reason that the php time would

RE: [PHP] Time is off?

2002-09-25 Thread Jon Haworth
Hi Brandon, I did a basic script ? echo date('h:I'); ? and the time is off in that script [...] I have checked the server time and the server hardware clock. Well, date(h:I) means display the hours (in 12-hour format), followed by a colon, followed by a 1 or a 0 depending on whether

[PHP] time to seconds

2002-09-18 Thread adi
Hi, I have a table table1, with a column Duration time type(ex 00:12:30) I want to make in PHP a sql selection: SELECT * from table1 WHERE condition, and after that, to make sum of values of column Duration and display it. Any Help? How to transform time in seconds, with php functions? tx

RE: [PHP] time to seconds

2002-09-18 Thread Warren Daly
:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 9:55 AM To: PHP-General Subject: [PHP] time to seconds Hi, I have a table table1, with a column Duration time type(ex 00:12:30) I want to make in PHP a sql selection: SELECT * from table1 WHERE condition, and after that, to make sum of values

[PHP] Time Stamp

2002-09-18 Thread Chuck Payne
Hi, I have a form that I am using to update a mysql table but I can get timestamp to update. How can I pass that information to pass on. I have READ all books and feel I have correct systax but it just not working... input type=text name=lastupdate value=? echo date('D M d, Y H:i:s', time());

Re: [PHP] Time Stamp

2002-09-18 Thread 1LT John W. Holmes
MySQL syntax is MMDDHHMMSS or -MM-DD HH:MM:SS ---John Holmes... - Original Message - From: Chuck Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:25 AM Subject: [PHP] Time Stamp Hi, I have a form that I am using to update a mysql table

RE: [PHP] time() problem

2002-09-18 Thread Savaidis
Hello all! I use time() to keep UNIX seconds from 1970 to a timestamp(14) MySQL field. But when I read it (Dt_last) it is TO big compearing with today=time() in a php script that is only some seconds later. today : 1032350421 Dt_last: 20001101165838 What can I do? Thanks! Makis Makis --

RE: [PHP] time() problem

2002-09-18 Thread Adam Voigt
Change it to an INT or a VARCHAR datatype, the mysql timestamp field uses MySQL's date/time formmating. If you decide to let MySQL use it's own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix timestamp from that date field. Adam Voigt [EMAIL PROTECTED] On Wed, 2002-09-18 at

[PHP] time stamp

2002-08-27 Thread Steve Buehler
I am using PHP with MySQL and have a timestamp field in my db table. What would be the easiest way to get the newest timestamp out of the db? Thanks in Advance Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -- PHP

Re: [PHP] time question.

2002-07-26 Thread 1LT John W. Holmes
How do I compare time in php? Eg. If I have a mysql time field I retrieve stored in $result[0][0] how do I say : if (($result[0][0] $result[0][0] plus ten minutes) ($result[0][0] '00:00:00')){ MySQL and PHP timestamps are in different formats. MySQL uses MMDDHHMMSS and PHP uses a

[PHP] Time to Calculate Time

2002-07-08 Thread vins
Hey there ppl.. One dam thing i've been trying to figure out for about 2 weeks now it how the hell to calculate time. i have variables $Start, $End each with a timestamp 2 hours apart (2002070714, 2002070716) respectively How do i calculate those to timestamps to get the answer

Re: [PHP] Time to Calculate Time

2002-07-08 Thread Danny Shepherd
] To: [EMAIL PROTECTED] Sent: Monday, July 08, 2002 4:02 PM Subject: [PHP] Time to Calculate Time Hey there ppl.. One dam thing i've been trying to figure out for about 2 weeks now it how the hell to calculate time. i have variables $Start, $End each with a timestamp 2 hours apart (2002070714

Re: [PHP] Time to Calculate Time

2002-07-08 Thread Danny Shepherd
You just knew there was a regexp version on the way, didn't you :) Danny. ?php function unixTime($time) { $time=preg_replace('/(.{4})(.{2})(.{2})(.{2})(.{2})(.{2})/','\\1/\\2/\\3 \\4:\\5:\\6',$time); return strtotime($time); } $time1='2002070714'; $time2='2002070716';

Re: [PHP] Time to Calculate Time

2002-07-08 Thread vins
That looks great. But why do you have to carage the line after 3 in the function ? Danny Shepherd [EMAIL PROTECTED] wrote in message 022001c22696$087e4cc0$0200a8c0@DANNYS">news:022001c22696$087e4cc0$0200a8c0@DANNYS... You just knew there was a regexp version on the way, didn't you :) Danny.

Re: [PHP] Time to Calculate Time

2002-07-08 Thread vins
Never mind that just needs a space Thanx for all the help... have a surf to http://forum.ywait.co.za/ register and then i'll make you a MOD for the php scripting forum board. for the future. if you want Cheerz Danny Shepherd [EMAIL PROTECTED] wrote in message

RE: [PHP] Time Delay using phpscript

2002-06-24 Thread SP
: [PHP] Time Delay using phpscript Hello, Can anyone please clear my doubt I need to display some strings one by one after some specific time..In javascript we can use setTimeout() function.Is there any function like this in phpscript ???.. Thanks Regards Uma -- PHP General Mailing

Re: [PHP] Time Delay using phpscript

2002-06-24 Thread 1LT John W. Holmes
Take a look at this page, it uses flush to stagger the results as php processes it. pretty cool http://www.massassi.com/bTemplate/benchmarks/benchmark_var_assign.php?i=50 I'd be interested to hear from other people if that works in other browsers. It had a nice effect when I looked at it in

[PHP] Time Delay using phpscript

2002-06-23 Thread Uma Shankari T.
Hello, Can anyone please clear my doubt I need to display some strings one by one after some specific time..In javascript we can use setTimeout() function.Is there any function like this in phpscript ???.. Thanks Regards Uma -- PHP General Mailing List (http://www.php.net/) To

<    1   2   3   >