php-windows Digest 31 Oct 2002 13:59:17 -0000 Issue 1416

Topics (messages 16631 through 16633):

Re: Subject: PHP and Tomcat
        16631 by: neil smith

Re: forms POST help
        16632 by: Richard

Re: Date Increment Problem
        16633 by: Stephen Edmonds

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 --- Hi -

Do you mean the memory continues to increase (a mempry leak), or that is increases then reduces once the script finishes executing? PHP has a footprint of about 5meg on my machine.

Are you running PHP as a compiled in apache module, or as cgi ?

Afaik, each time you call a php page using cgi, php is invoked - then it is shut down at the end of script execution (at least on windoze)

HTH
Neil Smith



At 01:37 31/10/2002 +0000, you wrote:
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 30 Oct 2002 14:51:51 -0500
From: "R.S. Herhuth" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
MIME-Version: 1.0
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Interesting tidbit


We are running Tomcat and PHP under IIS on Windows 2k sp2.  While we
were watching the memory manager we noticed that whenever PHP was
invoked Tomcat's memory increased by about 5mb.  This was consistent
over about a half an hour, we have no reason to believe that it hasn't
been occuring like this since we have been using both on the same server
(about 2 months).  PHP has been very stable although the same cannot be
said about Tomcat, but that's another issue.

Specifically my question is why would the Tomcat memory increase while
it should be steady when PHP is invoked?

--- End Message ---
--- Begin Message ---
yes, i know this, the form works fine if i use the GET method, but every
time i use the POST method i get a 404 error. confusing., cannot think why.
can anyone help?


Abdolhamid Joukar <[EMAIL PROTECTED]> wrote in message
news:002d01c28029$32c83030$e56fd93e@;hamid...
> hi
>  if you are running your script on your computer your form action should
be
> like this
>  <form action="http://localhost/file.php>
> else
> if you are testing your script on the net may be your host have a
directory
> that named cgi-bin
> your php files should be placed there!
> thanks
> ----- Original Message -----
> From: "Richard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 5:11 PM
> Subject: [PHP-WIN] forms POST help
>
>
> > i have php4 up and running, but whenever i POST an html form to a php
page
> i
> > always get a 404 error message, even though the php page is present.
> >
> > Can anyone help?
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


--- End Message ---
--- Begin Message ---
60 seconds in an minute
60 minutes in an hour
24 hours in a day
3 days needed
therefor: 60 * 60 * 24 * 3

Its worth noting there are 3600 seconds in 1 hour... so you could use 3600 *
24 * 3

----- Original Message -----
From: "Constantin Baciu" <[EMAIL PROTECTED]>
To: "Stephen Edmonds" <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 8:07 AM
Subject: Re: [PHP-WIN] Date Increment Problem


> Correct me if I am wrong, but I think that the seconds in 3 days are
60*24*3
> (as opposed to 60*60*24*3)
>
> ----- Original Message -----
> From: "Stephen Edmonds" <[EMAIL PROTECTED]>
> Newsgroups: php.windows
> To: "PHP Helplist Windows" <[EMAIL PROTECTED]>; "Raheel Hussain"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 7:36 PM
> Subject: Re: [PHP-WIN] Date Increment Problem
>
>
> > Firstly, you need to understand time.
> >
> > Time in computers is stored as the number of seconds since January 1st,
> > 1970. The time now is 1035999078 (Or to humans, 17:31:30 on the 30th
Oct).
> > When you call the current time with time() it returns that long number
> > above. You can then add on 1 days worth of seconds to figure out when
> > tommorow is
> >
> > $CurrentTime = time();
> > $TommorowTime = $CurrentTime + ( 60 * 60 * 24 * 3 );
> >
> > You can then use date() to transform that number in to human form
> >
> > $HumanDate = date( d/n/y H:i, $TommorowTime );
> > print $HumanDate;
> >
> > Hope this helps
> >
> > Stephen
> >
> > ----- Original Message -----
> > From: "Raheel Hussain" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 30, 2002 11:04 AM
> > Subject: [PHP-WIN] Date Increment Problem
> >
> >
> > >
> > > hi, I m a newbie programmer, may b solve to this prob. is a cheap
thing,
> > but i cant get solution of it.
> > >
> > > i have two variables
> > > $RegisterDate, and $ExpireDate
> > >
> > > what I want to do is the the $RegisterDate will be taken from the
> system.
> > > but the $ExpireDate will be three days after the $RegisterDate,
> > >
> > > i m doing this in the following way, but having problems, i cant find
> the
> > way to increment the data for after three days
> > >
> > > $RegisterDate=date("m/d/y");
> > > $ExpireDate=$RegisterDate + 3 //creating problem,
> > >
> > > if the register date is 10/29/01 then the expire date should be
11/2/02.
> > >
> > > plz help
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > HotJobs - Search new jobs daily now
> >
> >
>
>
> ------------------------------------------------------------------------
> P.S. Stiai ca s-a lansat www.FreeSMS.ro ?
>


--- End Message ---

Reply via email to