php-windows Digest 18 Sep 2003 08:26:38 -0000 Issue 1915

Topics (messages 21408 through 21414):

Re: Date question?
        21408 by: Harpreet
        21409 by: Harpreet
        21410 by: Jim Hunter

Re: Problem in Win32api.c
        21411 by: DvDmanDT
        21413 by: Stefan Martin

environment variables
        21412 by: Omar

ANY ONE CAN ANSWER ME!!
        21414 by: nabil

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
If i have a date in the form 'Nov 11 2011 12:00AM' how can i show the date
as mm/dd/yy and time as 12:00:00

help is appreciated.

Thanks,

Regards
----- Original Message -----
From: "malte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 2:16 PM
Subject: Re: [PHP-WIN] Date question?


> you also can do
>
> <?
> $date_as_string = "2003-04-02";
>
> $temp = explode("-", $date_as_string); // Cuts your String at '-' and
stores
> it in the $temp - Array
>
> $date_as_timestamp = mktime(1,0,0,$temp[1], ($temp[2]+9), $temp[0]); //
> contains the timestamp to the date 9 Months ahead
>
> echo date("Y-j-n", $date_as_timestamp); // puts out the date in this form:
> Year-Days-Month
> ?>
>
> check out date() and mktime() in the php manual... oh yeah and i supposed
> 2003-04-02 to mean February 4th 2003 if i'm wrong you have to change the
> mktime line..
>
> ----- Original Message -----
> From: "Disko_kex" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 12, 2003 3:50 PM
> Subject: [PHP-WIN] Date question?
>
>
> > Hi
> >
> > If I have a date (2003-04-02) and want to select 9 months later, how to
> > do?
> >
> > Thanks.
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I have a field in my sql server called expiration which is of type datetime.

It has values as seen in the tables and query analyser as  1/1/01 2:11:11 PM

When i try to display the same value in a php page it shows as Jan 1 2001
2:11PM

How can i view the same format as seen the database on my php page.

Please help.I cannot find anything in the manual.

thanks

--- End Message ---
--- Begin Message ---
Check out the PHP manual on date formatting:

http://us2.php.net/date

Jim 
 
-------Original Message-------
 
From: Harpreet
Date: Wednesday, September 17, 2003 02:36:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Date question?
 
I have a field in my sql server called expiration which is of type datetime.
 
It has values as seen in the tables and query analyser as 1/1/01 2:11:11 PM
 
When i try to display the same value in a php page it shows as Jan 1 2001
2:11PM
 
How can i view the same format as seen the database on my php page.
 
Please help.I cannot find anything in the manual.
 
thanks
 
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 
.

--- End Message ---
--- Begin Message ---
I really doubt it is.. Why not check? Hmm... CVS latest update 5 weeks
ago... License in headers... Seems like the one before that was 10 months
ago... So... I don't think so... To bad, I want this extension... It's sooo
cool...

-- 
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Stefan Martin" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi Fabian,
>
> > In (win32, invokefunction) following variables are declared:
> > void *w32api_return_buffer = NULL;
> > int w32api_return_buffer_size = 0;
> > zval **func_arguments = NULL;
> >
> > func_arguments gets later filled with
> > if(zend_get_parameters_array_ex(argc, &func_arguments) == FAILURE)
>
> > But this only works if there are not more than one arguments.
> > If there are two or more the values get filled in
> > w32api_return_buffer_size (second) and w32api_return_buffer (third)
etc...
> > I hardly believe that this was the intention. I temporarily fixed it by
> > declaring func_arguments as array like func_arguments[10] so it will
work
> > for up to ten arguments, but I guess the right solution should be better
> > than that.
>
> I run into same problem and allocated the memory dynamically according the
> number of given parameters. This acutally solved the problem. I commented
on
> this bug (see http://bugs.php.net/bug.php?id=25235), but there was no
> response.
>
> But there are more problems. If you look at the function
> php_w32api_complex_marshall_zval_to_c(), you will see that the relevant
part
> is commented out. So the handling of complex types simply doesnt work.
> I really wonder whether the extension is still being actively developed.
>
> Best Regards
> Stefan

--- End Message ---
--- Begin Message ---
Hi Dvdmandt,

> Why not check?

I did check that several days ago by making a diff against the lastest php5
snapshot and the php-4.3.3-version. That diff made me wonder if there's an
ongoing development effort.

> To bad, I want this extension... It's sooo cool...

Many people need that extension. So my question is: what is the offical
statement regarding the future of this extension?


Best Regards
Stefan.

--- End Message ---
--- Begin Message ---
Hello.
Is there a way to know the windows login account using a PHP environment
variable?
Thank you

--- End Message ---
--- Begin Message ---
I m going to tear my hair off, I can not solve the problem..

The specified CGI application misbehaved by not returning a complete set of
HTTP headers

but in php.ini i made :
cgi.rfc2616_headers = 1
cgi.force_redirect = 0

what should I do next ?

--- End Message ---

Reply via email to