OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
php-general Digest 27 Apr 2008 21:53:30 -0000 Issue 5428

php-general-digest-helplists.php.net
Date: Sun Apr 27 2008 - 16:53:30 CDT


php-general Digest 27 Apr 2008 21:53:30 -0000 Issue 5428

Topics (messages 273633 through 273638):

convert unix time to Gregorian
        273633 by: Yui Hiroaki
        273634 by: Nathan Nobbe

newbie with php/HTML question
        273635 by: Rod Clay
        273636 by: Stut
        273638 by: Rod Clay

newbie with php/HTML/HTTP question
        273637 by: Rod Clay

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


hi!
I am try to change unix time to Gregorian.

I successfully convert unix time to Gregorian.
But Gregorian time is now showing hour and second and more detail time.

<?php
$unix_timestamp="1208764059";
echo "$unix_timestamp"."\tUnix Time Stamp"."<br />";
$julius=unixtojd($unix_timestamp);
$Gregorian=jdtogregorian("$julius");
echo "$Gregorian";
?>

Above code showing the result only date and year.

ie
1208764059 Unix Time Stamp
2454578 //julius
4/21/2008 //Gregorian <-----

I need to see hour and time or more detail time.

If some knows convert Unix time stamp to Gregorian with hour and second,
please teach me how!

attached mail follows:


On Sun, Apr 27, 2008 at 12:27 PM, Yui Hiroaki <hiroakiyuigmail.com> wrote:

> hi!
> I am try to change unix time to Gregorian.
>
> I successfully convert unix time to Gregorian.
> But Gregorian time is now showing hour and second and more detail time.
>
> <?php
> $unix_timestamp="1208764059";
> echo "$unix_timestamp"."\tUnix Time Stamp"."<br />";
> $julius=unixtojd($unix_timestamp);
> $Gregorian=jdtogregorian("$julius");
> echo "$Gregorian";
> ?>
>
> Above code showing the result only date and year.
>
> ie
> 1208764059 Unix Time Stamp
> 2454578 //julius
> 4/21/2008 //Gregorian <-----
>
>
> I need to see hour and time or more detail time.
>
> If some knows convert Unix time stamp to Gregorian with hour and second,
> please teach me how!

have you tried the date function ?

<?php
echo date('M d, Y g:m:s', 1208764059);
?>
Apr 21, 2008 3:04:39

-nathan

attached mail follows:


I've written my php script to accept either:

1) url parameters, when first invoked (so in this case I'm getting
variables out of the $_GET global array), but then I create a form with
method=PUT and, when this form is submitted and comes back into this
same php script, I'm looking for

2) variables in the $_PUT global array

However, I tested this just now and, for some reason I can't fathom,
though the form I create has method=PUT, when it is submitted and comes
back to my php script, $_SERVER['REQUEST_METHOD'] still contains "GET".

Am I missing something fairly obvious here (quite possible!)?

Once my php script is invoked with parameters in the url (i.e., implicit
GET method), am I not able to create a form with method=PUT and have
this form come back into my php script with values in the $_PUT global
array??

Thanks for any help anyone can give me! I'm stumped!

Rod Clay
rclaycolumbus.rr.com

attached mail follows:


On 27 Apr 2008, at 22:40, Rod Clay wrote:
> I've written my php script to accept either:
>
> 1) url parameters, when first invoked (so in this case I'm getting
> variables out of the $_GET global array), but then I create a form
> with method=PUT and, when this form is submitted and comes back into
> this same php script, I'm looking for
>
> 2) variables in the $_PUT global array
>
> However, I tested this just now and, for some reason I can't fathom,
> though the form I create has method=PUT, when it is submitted and
> comes back to my php script, $_SERVER['REQUEST_METHOD'] still
> contains "GET".
>
> Am I missing something fairly obvious here (quite possible!)?
>
> Once my php script is invoked with parameters in the url (i.e.,
> implicit GET method), am I not able to create a form with method=PUT
> and have this form come back into my php script with values in the
> $_PUT global array??
>
> Thanks for any help anyone can give me! I'm stumped!

You want POST not PUT. Nearly all browsers don't currently support PUT
requests.

-Stut

--
http://stut.net/

attached mail follows:


Wow, thanks. I can't believe I made this mistake. This group is
sooooooo helpful. I could probably have looked at this another 10 hours
and not seen this. Thanks again.

Also, I'd like to apologize for the double post. I posted the first
with an email address different from the one I subscribed to the list
with and I thought it wouldn't be accepted, so posted the second with
the "correct" email address. Surprisingly, they both posted! Not sure
how this happened.

Stut wrote:
> On 27 Apr 2008, at 22:40, Rod Clay wrote:
>> I've written my php script to accept either:
>>
>> 1) url parameters, when first invoked (so in this case I'm getting
>> variables out of the $_GET global array), but then I create a form
>> with method=PUT and, when this form is submitted and comes back into
>> this same php script, I'm looking for
>>
>> 2) variables in the $_PUT global array
>>
>> However, I tested this just now and, for some reason I can't fathom,
>> though the form I create has method=PUT, when it is submitted and
>> comes back to my php script, $_SERVER['REQUEST_METHOD'] still
>> contains "GET".
>>
>> Am I missing something fairly obvious here (quite possible!)?
>>
>> Once my php script is invoked with parameters in the url (i.e.,
>> implicit GET method), am I not able to create a form with method=PUT
>> and have this form come back into my php script with values in the
>> $_PUT global array??
>>
>> Thanks for any help anyone can give me! I'm stumped!
>
> You want POST not PUT. Nearly all browsers don't currently support PUT
> requests.
>
> -Stut
>

attached mail follows:


I've written my php script to accept either:

1) url parameters, when first invoked (so in this case I'm getting
variables out of the $_GET global array), but then I create a form with
method=PUT and, when this form is submitted and comes back into this
same php script, I'm looking for

2) variables in the $_PUT global array

However, I tested this just now and, for some reason I can't fathom,
though the form I create has method=PUT, when it is submitted and comes
back to my php script, $_SERVER['REQUEST_METHOD'] still contains "GET".

Am I missing something fairly obvious here (quite possible!!)?

Once my php script is invoked with parameters in the url (i.e., implicit
GET method), am I not able to create a form with method=PUT and have
this form come back into my php script with values in the $_PUT global
array??

Thanks for any help anyone can give me! I'm stumped!

Rod Clay
rclaycolumbus.rr.com