php-general Digest 22 Sep 2002 13:29:47 -0000 Issue 1600

Topics (messages 117126 through 117161):

Re: checking if an array is empty
        117126 by: Michael Sims
        117128 by: electroteque
        117132 by: Michael Sims
        117133 by: electroteque

Re: Editor
        117127 by: B.C. Lance
        117140 by: Chip Wiegand
        117147 by: Jeff Bluemel

[[EMAIL PROTECTED]: RE: php emails]
        117129 by: The Doctor
        117138 by: Michael Geier
        117143 by: The Doctor

Re: sessions
        117130 by: Chris Shiflett

ob_end_clean and header redirecting
        117131 by: electroteque

Design question.
        117134 by: Chuck PUP Payne
        117136 by: Justin French
        117137 by: Chris Shiflett
        117139 by: Chuck PUP Payne
        117145 by: . Edwin

more stress on server...
        117135 by: Matt Zur

Re: Help sending IMAP mail
        117141 by: Manuel Lemos

Re: Best Practice
        117142 by: Peter J. Schoenster
        117144 by: . Edwin
        117148 by: Peter J. Schoenster

Re: accessing session variables
        117146 by: Jeff Bluemel

Running a PHP script automatically?
        117149 by: Joseph Szobody
        117150 by: Chris Shiflett
        117151 by: Keith Vance
        117153 by: Tom Rogers
        117155 by: David McInnis

return the amount of records in a mysql databace
        117152 by: Philip J. Newman
        117161 by: Mark Charette

counting guest users
        117154 by: Andy

Re: Running a PHP script automatically?  FORGOT the link
        117156 by: David McInnis

Re: Java?
        117157 by: Alexander Kleshchevnikov

Elliptic curve cryptology
        117158 by: EjdeR
        117160 by: Danny Shepherd

A weired browser-session problem
        117159 by: Monil Chheda

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 ---
On Sun, 22 Sep 2002 01:13:08 +1000, you wrote:

>how can i check if an array is currently empty , for instance i have a file
>input field with an array name for multiple images, i need to check if there
>was no file uploaded in that field name and ignore it in the loop

I find that empty() works well to test if an array contains any
elements...
--- End Message ---
--- Begin Message ---
thats the thing , the word Array is what it returns even though there was no
input file.

"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sun, 22 Sep 2002 01:13:08 +1000, you wrote:

>how can i check if an array is currently empty , for instance i have a file
>input field with an array name for multiple images, i need to check if
there
>was no file uploaded in that field name and ignore it in the loop

I find that empty() works well to test if an array contains any
elements...


--- End Message ---
--- Begin Message ---
On Sun, 22 Sep 2002 11:09:16 +1000, you wrote:

>thats the thing , the word Array is what it returns even though there was no
>input file.

Oh, I see.  Without seeing your code, the best recommendation I have
is to loop through the array and remove the empty elements, then check
to see if the array is empty, something like this:

if (is_array($array)) {
  foreach ($array as $key => $element) {
    if ($element == "") {
      unset($array[$key]);
    }
  }
}

if (empty($array)) {
  ...
}

Sorry if I'm still misunderstanding...
--- End Message ---
--- Begin Message ---
yeh wicked thanks

-----Original Message-----
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 22, 2002 11:48 AM
To: [EMAIL PROTECTED]
Cc: electroteque
Subject: Re: [PHP] checking if an array is empty


On Sun, 22 Sep 2002 11:09:16 +1000, you wrote:

>thats the thing , the word Array is what it returns even though there was
no
>input file.

Oh, I see.  Without seeing your code, the best recommendation I have
is to loop through the array and remove the empty elements, then check
to see if the array is empty, something like this:

if (is_array($array)) {
  foreach ($array as $key => $element) {
    if ($element == "") {
      unset($array[$key]);
    }
  }
}

if (empty($array)) {
  ...
}

Sorry if I'm still misunderstanding...

--- End Message ---
--- Begin Message ---
http://www.phpedit.net



Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is based on 
>windows.  Thanks, Bryan
> 

--- End Message ---
--- Begin Message ---
On Sat, 2002-09-21 at 06:15, Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is based on 
>windows.  Thanks, Bryan

HTML-Kit by Chami software (www.chami.com) - saves in unix format or
windoze format, extremely configurable, direct uploads/downloads/editing
of files on the remote server, built in Tidy, etc etc.

--
Chip

--- End Message ---
--- Begin Message ---
I am using Zend Studio, and I absolutely love it.  this isn't just an
editor, but a project manager, and has debugging options where it loads the
file in your default browser, and then allows you to do step through, add
watches etc.

http://zend.com/store/products/zend-studio.php


"Bryan McLemore" <[EMAIL PROTECTED]> wrote in message
004901c26170$fc6fc510$0101a8c0@fwcmain">news:004901c26170$fc6fc510$0101a8c0@fwcmain...
Hi guys, just wondering if anyone could recomend a good editor that is based
on windows.  Thanks, Bryan


--- End Message ---
--- Begin Message ---
Anyone knows why the below is hapeening?

My PHP info page is on http://www.nk.ca/phpinfo.phtml

----- Forwarded message from Bob Federer <[EMAIL PROTECTED]> -----

Return-Path: <[EMAIL PROTECTED]>
Received: from doctor.nl2k.ab.ca (IDENT:[EMAIL PROTECTED] [127.0.0.1])
        by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with ESMTP id g8M1FDh7013565
        (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
        for <[EMAIL PROTECTED]>; Sat, 21 Sep 2002 19:15:13 -0600 (MDT)
Received: (from root@localhost)
        by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6/Submit) id g8M1FDkG013564
        for [EMAIL PROTECTED]; Sat, 21 Sep 2002 19:15:13 -0600 (MDT)
Resent-Message-Id: <[EMAIL PROTECTED]>
Received: from ELITE (CPE0050ba761922.cpe.net.cable.rogers.com [24.157.79.145])
        by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with SMTP id g8LMD1h8000209
        for <[EMAIL PROTECTED]>; Sat, 21 Sep 2002 16:13:04 -0600 (MDT)
Reply-To: <[EMAIL PROTECTED]>
From: "Bob Federer" <[EMAIL PROTECTED]>
To: "System Administrator a.k.a. The Root of the Problem" <[EMAIL PROTECTED]>
Subject: RE: php emails
Date: Sat, 21 Sep 2002 18:12:57 -0700
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
In-Reply-To: <[EMAIL PROTECTED]>
Resent-From: [EMAIL PROTECTED]
Resent-Date: Sat, 21 Sep 2002 19:15:13 -0600
Resent-To: The Doctor <[EMAIL PROTECTED]>

Hello Dave,
The php mail function is still not working. I've changed the coding a little
bit to help you debug it. The code on the page is now:

<?php
mail('[EMAIL PROTECTED], [EMAIL PROTECTED]', 'An email to two people', 'This is
a test');
?>

As you can see, it will send an email to both you and me.

To test the page you can go to community updates or sellwithpictures. The
two URLs are:

http://www.sellwithpictures.com/php/emailtest.html

and

http://www.communityupdates.com/php/emailtest.html

Please email me when you have it working.
Thanks for your effort.

Apart from being a neat thing for a page to be able to do, I'm doing a quote
for a large site where they require emails to be sent out by the site when
someone fills out a form, so we need to have this figured out.

Thanks again,

bob


-----Original Message-----
From: System Administrator a.k.a. The Root of the Problem
[mailto:[EMAIL PROTECTED]]
Sent: September 21, 2002 12:54 PM
To: Bob Federer
Subject: Re: php emails

On Sat, Sep 21, 2002 at 01:43:03PM -0700, Bob Federer wrote:
> Hello Dave,
>
> I'm going to want to be able to send emails form the Community Updates and
> Sell With Pictures sites using PHP.
>
> The code to send a simple email is very straightforward in php (it's one
> line of code) example below:
>
> <?phpmail('bob_elitegroup.on.ca', 'test email', 'This is just a test');?>
>
> If the system is set up correctly on your end, it should work flawlessly.
> Unfortunately, at this point, it is not working. Apparently, the php.ini
> file needs to be adjusted at your end. The link below has details of how
to
> do it.
>
> http://www.webmasterbase.com/article/679
>
>
> Could you look into this and let me know when you have made this
functional?
>

Try now.

> Thanks
>
> bob

--
contact:
Dave Yadallee  NetKnow  The Internet Knowledge Company
[EMAIL PROTECTED]  http://www.nl2k.ab.ca
990-3244



----- End forwarded message -----

-- 
Member - Liberal International  On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED]       Ici [EMAIL PROTECTED]
Society MUST be saved! Extremists must dissolve.  
Beware of defining as intelligent only those who share your opinions
--- End Message ---
--- Begin Message ---
I have never used BSD so forgive any of the obvious:
  1.  Sendmail installed on this machine?
  2.  Is the php.ini value for 'sendmail_path' correct?
  3.  Is there any firewall or port.deny for SMTP?
  4.  Can you send mail from the CLI?
-- 
Michael Geier
CDM Sports, Inc. - Systems Administrator
    email: [EMAIL PROTECTED]

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM d-(---) s+:+ a31 C+++(++) ULVIS++++$ P--->+ L+++>++++ E--- 
W+++ N++ o+(-) K+ w(---) O M-- V--()@ PS+(++) PE Y+ PGP t+ 5+ 
X+ R++* tv+ b++++(+++) DI+ D++ G e+* h--- r+++ y++++
------END GEEK CODE BLOCK------


Quoting The Doctor <[EMAIL PROTECTED]>:

> Anyone knows why the below is hapeening?
> 
> My PHP info page is on http://www.nk.ca/phpinfo.phtml
> 
> ----- Forwarded message from Bob Federer <[EMAIL PROTECTED]>
> -----
> 
> Return-Path: <[EMAIL PROTECTED]>
> Received: from doctor.nl2k.ab.ca (IDENT:[EMAIL PROTECTED]
> [127.0.0.1])
>       by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with ESMTP id
> g8M1FDh7013565
>       (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168
> verify=NO)
>       for <[EMAIL PROTECTED]>; Sat, 21 Sep 2002 19:15:13 -
0600
> (MDT)
> Received: (from root@localhost)
>       by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6/Submit) id
> g8M1FDkG013564
>       for [EMAIL PROTECTED]; Sat, 21 Sep 2002 19:15:13 -0600
> (MDT)
> Resent-Message-Id:
> <[EMAIL PROTECTED]>
> Received: from ELITE (CPE0050ba761922.cpe.net.cable.rogers.com
> [24.157.79.145])
>       by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with SMTP id
> g8LMD1h8000209
>       for <[EMAIL PROTECTED]>; Sat, 21 Sep 2002 16:13:04 -0600
> (MDT)
> Reply-To: <[EMAIL PROTECTED]>
> From: "Bob Federer" <[EMAIL PROTECTED]>
> To: "System Administrator a.k.a. The Root of the Problem"
> <[EMAIL PROTECTED]>
> Subject: RE: php emails
> Date: Sat, 21 Sep 2002 18:12:57 -0700
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: text/plain;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
> Importance: Normal
> In-Reply-To: <[EMAIL PROTECTED]>
> Resent-From: [EMAIL PROTECTED]
> Resent-Date: Sat, 21 Sep 2002 19:15:13 -0600
> Resent-To: The Doctor <[EMAIL PROTECTED]>
> 
> Hello Dave,
> The php mail function is still not working. I've changed the coding
> a little
> bit to help you debug it. The code on the page is now:
> 
> <?php
> mail('[EMAIL PROTECTED], [EMAIL PROTECTED]', 'An email to two people',
> 'This is
> a test');
> ?>
> 
> As you can see, it will send an email to both you and me.
> 
> To test the page you can go to community updates or
> sellwithpictures. The
> two URLs are:
> 
> http://www.sellwithpictures.com/php/emailtest.html
> 
> and
> 
> http://www.communityupdates.com/php/emailtest.html
> 
> Please email me when you have it working.
> Thanks for your effort.
> 
> Apart from being a neat thing for a page to be able to do, I'm
> doing a quote
> for a large site where they require emails to be sent out by the
> site when
> someone fills out a form, so we need to have this figured out.
> 
> Thanks again,
> 
> bob
> 
> 
> -----Original Message-----
> From: System Administrator a.k.a. The Root of the Problem
> [mailto:[EMAIL PROTECTED]]
> Sent: September 21, 2002 12:54 PM
> To: Bob Federer
> Subject: Re: php emails
> 
> On Sat, Sep 21, 2002 at 01:43:03PM -0700, Bob Federer wrote:
> > Hello Dave,
> >
> > I'm going to want to be able to send emails form the Community
> Updates and
> > Sell With Pictures sites using PHP.
> >
> > The code to send a simple email is very straightforward in php
> (it's one
> > line of code) example below:
> >
> > <?phpmail('bob_elitegroup.on.ca', 'test email', 'This is just a
> test');?>
> >
> > If the system is set up correctly on your end, it should work
> flawlessly.
> > Unfortunately, at this point, it is not working. Apparently, the
> php.ini
> > file needs to be adjusted at your end. The link below has details
> of how
> to
> > do it.
> >
> > http://www.webmasterbase.com/article/679
> >
> >
> > Could you look into this and let me know when you have made
> this
> functional?
> >
> 
> Try now.
> 
> > Thanks
> >
> > bob
> 
> --
> contact:
> Dave Yadallee  NetKnow  The Internet Knowledge Company
> [EMAIL PROTECTED]  http://www.nl2k.ab.ca
> 990-3244
> 
> 
> 
> ----- End forwarded message -----
> 
> -- 
> Member - Liberal International        On 11 Sept 2001 the WORLD was
> violated.
> This is [EMAIL PROTECTED]     Ici [EMAIL PROTECTED]
> Society MUST be saved! Extremists must dissolve.  
> Beware of defining as intelligent only those who share your
> opinions
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


---------------------------------------------
 This email sent using CDM Sports Webmail v2
            [ http://webmail.cdmsports.com ]

--- End Message ---
--- Begin Message ---
On Sat, Sep 21, 2002 at 09:26:56PM -0500, Michael Geier wrote:
> I have never used BSD so forgive any of the obvious:
>   1.  Sendmail installed on this machine?

Yes.

>   2.  Is the php.ini value for 'sendmail_path' correct?

Yes.

>   3.  Is there any firewall or port.deny for SMTP?

NO?

>   4.  Can you send mail from the CLI?

Explain.

> -- 
> Michael Geier
> CDM Sports, Inc. - Systems Administrator
>     email: [EMAIL PROTECTED]
> 
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCM d-(---) s+:+ a31 C+++(++) ULVIS++++$ P--->+ L+++>++++ E--- 
> W+++ N++ o+(-) K+ w(---) O M-- V--()@ PS+(++) PE Y+ PGP t+ 5+ 
> X+ R++* tv+ b++++(+++) DI+ D++ G e+* h--- r+++ y++++
> ------END GEEK CODE BLOCK------
> 
> 
> Quoting The Doctor <[EMAIL PROTECTED]>:
> 
> > Anyone knows why the below is hapeening?
> > 
> > My PHP info page is on http://www.nk.ca/phpinfo.phtml
> > 
> > ----- Forwarded message from Bob Federer <[EMAIL PROTECTED]>
> > -----
> > 
> > Return-Path: <[EMAIL PROTECTED]>
> > Received: from doctor.nl2k.ab.ca (IDENT:[EMAIL PROTECTED]
> > [127.0.0.1])
> >     by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with ESMTP id
> > g8M1FDh7013565
> >     (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168
> > verify=NO)
> >     for <[EMAIL PROTECTED]>; Sat, 21 Sep 2002 19:15:13 -
> 0600
> > (MDT)
> > Received: (from root@localhost)
> >     by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6/Submit) id
> > g8M1FDkG013564
> >     for [EMAIL PROTECTED]; Sat, 21 Sep 2002 19:15:13 -0600
> > (MDT)
> > Resent-Message-Id:
> > <[EMAIL PROTECTED]>
> > Received: from ELITE (CPE0050ba761922.cpe.net.cable.rogers.com
> > [24.157.79.145])
> >     by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with SMTP id
> > g8LMD1h8000209
> >     for <[EMAIL PROTECTED]>; Sat, 21 Sep 2002 16:13:04 -0600
> > (MDT)
> > Reply-To: <[EMAIL PROTECTED]>
> > From: "Bob Federer" <[EMAIL PROTECTED]>
> > To: "System Administrator a.k.a. The Root of the Problem"
> > <[EMAIL PROTECTED]>
> > Subject: RE: php emails
> > Date: Sat, 21 Sep 2002 18:12:57 -0700
> > Message-ID: <[EMAIL PROTECTED]>
> > MIME-Version: 1.0
> > Content-Type: text/plain;
> >     charset="iso-8859-1"
> > Content-Transfer-Encoding: 7bit
> > X-Priority: 3 (Normal)
> > X-MSMail-Priority: Normal
> > X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
> > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
> > Importance: Normal
> > In-Reply-To: <[EMAIL PROTECTED]>
> > Resent-From: [EMAIL PROTECTED]
> > Resent-Date: Sat, 21 Sep 2002 19:15:13 -0600
> > Resent-To: The Doctor <[EMAIL PROTECTED]>
> > 
> > Hello Dave,
> > The php mail function is still not working. I've changed the coding
> > a little
> > bit to help you debug it. The code on the page is now:
> > 
> > <?php
> > mail('[EMAIL PROTECTED], [EMAIL PROTECTED]', 'An email to two people',
> > 'This is
> > a test');
> > ?>
> > 
> > As you can see, it will send an email to both you and me.
> > 
> > To test the page you can go to community updates or
> > sellwithpictures. The
> > two URLs are:
> > 
> > http://www.sellwithpictures.com/php/emailtest.html
> > 
> > and
> > 
> > http://www.communityupdates.com/php/emailtest.html
> > 
> > Please email me when you have it working.
> > Thanks for your effort.
> > 
> > Apart from being a neat thing for a page to be able to do, I'm
> > doing a quote
> > for a large site where they require emails to be sent out by the
> > site when
> > someone fills out a form, so we need to have this figured out.
> > 
> > Thanks again,
> > 
> > bob
> > 
> > 
> > -----Original Message-----
> > From: System Administrator a.k.a. The Root of the Problem
> > [mailto:[EMAIL PROTECTED]]
> > Sent: September 21, 2002 12:54 PM
> > To: Bob Federer
> > Subject: Re: php emails
> > 
> > On Sat, Sep 21, 2002 at 01:43:03PM -0700, Bob Federer wrote:
> > > Hello Dave,
> > >
> > > I'm going to want to be able to send emails form the Community
> > Updates and
> > > Sell With Pictures sites using PHP.
> > >
> > > The code to send a simple email is very straightforward in php
> > (it's one
> > > line of code) example below:
> > >
> > > <?phpmail('bob_elitegroup.on.ca', 'test email', 'This is just a
> > test');?>
> > >
> > > If the system is set up correctly on your end, it should work
> > flawlessly.
> > > Unfortunately, at this point, it is not working. Apparently, the
> > php.ini
> > > file needs to be adjusted at your end. The link below has details
> > of how
> > to
> > > do it.
> > >
> > > http://www.webmasterbase.com/article/679
> > >
> > >
> > > Could you look into this and let me know when you have made
> > this
> > functional?
> > >
> > 
> > Try now.
> > 
> > > Thanks
> > >
> > > bob
> > 
> > --
> > contact:
> > Dave Yadallee  NetKnow  The Internet Knowledge Company
> > [EMAIL PROTECTED]  http://www.nl2k.ab.ca
> > 990-3244
> > 
> > 
> > 
> > ----- End forwarded message -----
> > 
> > -- 
> > Member - Liberal International      On 11 Sept 2001 the WORLD was
> > violated.
> > This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
> > Society MUST be saved! Extremists must dissolve.  
> > Beware of defining as intelligent only those who share your
> > opinions
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> > 
> 
> 
> ---------------------------------------------
>  This email sent using CDM Sports Webmail v2
>             [ http://webmail.cdmsports.com ]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
Member - Liberal International  On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED]       Ici [EMAIL PROTECTED]
Society MUST be saved! Extremists must dissolve.  
Beware of defining as intelligent only those who share your opinions
--- End Message ---
--- Begin Message ---
Pablo Oliva wrote:

>I have read that in order to account for browsers/users who do not have
>cookies enabled, that you should append the session id to the url (query
>string).
>

Yes, there are basically three ways that the Web client can pass a 
unique identifier to the server:

1. Cookie
2. URL variable
3. Post variable

Using a Post variable requires that the user always be submitting a form 
with a method of post, so this isn't very flexible, and most people 
don't use it. So, to support users who do not have cookies enabled, the 
URL variable is your best alternative.

>Now, if I do do that,
>www.site.com?phpsessid=gafklgjr952344afgfa,
>

I'm not sure if you just made a typo here, but you *must* specify a 
resource in a URL. In your above example, you could specify document 
root (/) as the resource like this:

http://www.site.com/?phpsessid=gafklgjr952344afgfa

Or, you could specify a specific script to use:

http://www.site.com/foo.php?phpsessid=gafklgjr952344afgfa

Either way, it is best to use a proper URL. Even when Web clients handle 
improper URLs (most handle http://www.example.org for example, which 
fails to specify any resource), it is dangerous to depend on that.The 
old saying, "be strict in what you send and lenient in what you 
receive," has unfortunately been combined with, "use whatever works," so 
that many people are now lenient in what they send. :-)

>do I have to do anything so
>that I force php to recognize the session id in the query string?
>

The short answer is yes. However, it must be named whatever PHP is 
expecting it to be named (for example, a variable named foo won't be 
assumed to be the unique identifier), and you must not have php.ini 
configurations that will force PHP to ignore it (such as 
session.use_only_cookies, or whatever that one is called).

I hope that answers your question. :-)

Chris

--- End Message ---
--- Begin Message ---
function return_exit() {
    if (EXIT_AFTER_REDIRECT == 1) {
     return exit();
    }
  }
////
// Redirect to another page or site
  function redirect($url) {
    header('Location: ' . $url);
    return_exit();
  }
ob_start();
echo "<script></script>";
ob_end_flush();
ob_end_clean();
redirect($PHP_SELF);

here is a test i'm trying to be able to send script into the header and then
be able to redirect ones the script output has finished,  it states in the
manual that ob_end_clean : "This function discards the contents of the
output buffer and turns off output buffering. " so can it remove the
buffered output somehow onces it has been flushed before i redirect ? its an
issue i'd like to solve sure there is document.location but i'd prefer to
stick with header for redirecting let me know


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

I have a question. I been working a personal project that I am want to make
a like simpler. I have several pages have in which I have place the
information to connect to my database, whick is getting old.

What I am wanting to do is create file like most do, a config, but I want to
know which is better, config.php or config.inc. I know there not much
different from what I have read but I am wanting to know which gives more
protection. And what recommendation would you give on set it up? I am only
asking because I am at some point wanting to release my project to public.

Chuck Payne
Magi Design and Support

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

I place name all my included files *.inc... I place them all in a folder
/inc/ and place a .htaccess file in that directory to restrict the files
being served of HTTP:

<Files ~ "\.inc$">
    Order Allow,Deny
    Deny from all
</Files>

Another option would be to place them in a folder ABOVE your web root, so
that Apache can't serve them -- if you have that option.


This does a few things for me:

1. I know that all *.php files are intended to be served direct to the user
through a web browser, and I know that all .inc files are code fragments,
not intended to be run out of context.

2. As long as Apache is configured properly, no one will see any passwords n
stuff.


Cheers,

Justin



on 22/09/02 11:55 AM, Chuck PUP Payne ([EMAIL PROTECTED]) wrote:

> Hi,
> 
> I have a question. I been working a personal project that I am want to make
> a like simpler. I have several pages have in which I have place the
> information to connect to my database, whick is getting old.
> 
> What I am wanting to do is create file like most do, a config, but I want to
> know which is better, config.php or config.inc. I know there not much
> different from what I have read but I am wanting to know which gives more
> protection. And what recommendation would you give on set it up? I am only
> asking because I am at some point wanting to release my project to public.
> 
> Chuck Payne
> Magi Design and Support
> 

--- End Message ---
--- Begin Message ---
This explanation from Justin is worth saving.

I also like to call all of my included modules *.inc, and I prefer to 
store them outside of document root.

However, if you want to keep all of your files together, the .htaccess 
file shown below is the best way to restrict direct access to modules. 
Some people make the mistake of simply making *.inc files considered PHP 
by Apache (claiming it is better to execute them than to have their 
source code displayed), but this gives attackers the opportunity to 
execute your modules out of context - a very dangerous approach.

One extra note worth adding is that you should add this configuration to 
your httpd.conf if you are the Web server administrator. This will keep 
you from having to remember the .htaccess file everywhere. Justin's 
method is best for when you do not have this option.

Chris

Justin French wrote:

>I place name all my included files *.inc... I place them all in a folder
>/inc/ and place a .htaccess file in that directory to restrict the files
>being served of HTTP:
>
><Files ~ "\.inc$">
>    Order Allow,Deny
>    Deny from all
></Files>
>
>Another option would be to place them in a folder ABOVE your web root, so
>that Apache can't serve them -- if you have that option.
>

--- End Message ---
--- Begin Message ---
Thanks guys. That really helpful.

Chuck Payne

On 9/21/02 10:16 PM, "Chris Shiflett" <[EMAIL PROTECTED]> wrote:

> This explanation from Justin is worth saving.
> 
> I also like to call all of my included modules *.inc, and I prefer to
> store them outside of document root.
> 
> However, if you want to keep all of your files together, the .htaccess
> file shown below is the best way to restrict direct access to modules.
> Some people make the mistake of simply making *.inc files considered PHP
> by Apache (claiming it is better to execute them than to have their
> source code displayed), but this gives attackers the opportunity to
> execute your modules out of context - a very dangerous approach.
> 
> One extra note worth adding is that you should add this configuration to
> your httpd.conf if you are the Web server administrator. This will keep
> you from having to remember the .htaccess file everywhere. Justin's
> method is best for when you do not have this option.
> 
> Chris
> 
> Justin French wrote:
> 
>> I place name all my included files *.inc... I place them all in a folder
>> /inc/ and place a .htaccess file in that directory to restrict the files
>> being served of HTTP:
>> 
>> <Files ~ "\.inc$">
>>    Order Allow,Deny
>>    Deny from all
>> </Files>
>> 
>> Another option would be to place them in a folder ABOVE your web root, so
>> that Apache can't serve them -- if you have that option.
>> 
> 

--- End Message ---
--- Begin Message ---
(Sorry if I've already sent this.)

I agree. But, I don't really see any problem having *.inc files as *.inc.php
(so that they'll be executed by Apache) esp. IF the config file have only
this: (Even if this is executed nothing shows up...)

<?php

  $my_super_user = 'blahblah';
  $my_super_password = 'blahblahblah';

?>

I just thought this is worth knowing esp. if there's no way you can use
.htaccess. (Of course, if you can't use .htaccess, you might want to change
ISPs or set up your own server but that is for a different topic :)

- E

> This explanation from Justin is worth saving.
>
> I also like to call all of my included modules *.inc, and I prefer to
> store them outside of document root.
>
> However, if you want to keep all of your files together, the .htaccess
> file shown below is the best way to restrict direct access to modules.
> Some people make the mistake of simply making *.inc files considered PHP
> by Apache (claiming it is better to execute them than to have their
> source code displayed), but this gives attackers the opportunity to
> execute your modules out of context - a very dangerous approach.
>
> One extra note worth adding is that you should add this configuration to
> your httpd.conf if you are the Web server administrator. This will keep
> you from having to remember the .htaccess file everywhere. Justin's
> method is best for when you do not have this option.
>
> Chris
>
> Justin French wrote:
>
> >I place name all my included files *.inc... I place them all in a folder
> >/inc/ and place a .htaccess file in that directory to restrict the files
> >being served of HTTP:
> >
> ><Files ~ "\.inc$">
> >    Order Allow,Deny
> >    Deny from all
> ></Files>
> >
> >Another option would be to place them in a folder ABOVE your web root, so
> >that Apache can't serve them -- if you have that option.
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Here is the site and the file names:
Test Site:
- index.php
- about.php
- services.php

Which example would cause more stress on the server and/or what are the 
advantages, disadvantages to each example?

Example 1
-index.php with these links:
<a href="index.php">Home</a>
<a href="index.php?view=about">Home</a>
<a href="index.php?view=services">Home</a>

With the index.php using a switch statment for the view var and file 
includes.

OR

Example 2
-index.php with these links:
<a href="index.php">Home</a>
<a href="about.php">Home</a>
<a href="services.php">Home</a>

Any help will be appreciated.

-Matt



-- 
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com

Need a Web Site??? - Visit... www.zurnet.com

1997 - 2002 - 5th Anniversary!!!

--- End Message ---
--- Begin Message ---
Hello,

On 09/21/2002 07:19 PM, Jeff Schwartz wrote:
> The IMAP documentation on the php site says that you can create an IMAP message 
>using imap_mail_compose but fails to say how to send it.
> 
> I've tried using imap_mail but it gives me a parameter count error.
> 
> Does anyone know how to send the message?

I usually do not use the IMAP extension for composing and sending 
messages because I do not need IMAP and sending messages really has 
nothing to do with IMAP.

You may want to try this PHP class instead which is what I use to send 
messages, even complex ones with attachments, HTML with embedded images, 
text and HTML alternative versions in the same message, messages with 
non-ASCII characters (accents, cedillas, characters of other alphabets).

http://www.phpclasses.org/mimemessage

-- 

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote:

> 
>     I'm working on converting several static (price) pages on our site
>     into dynamic pages, with the data stored in an MySQL database and
>     PHP to pull the data out, with CSS to build the page and present it.

I don't see how CSS would build anything, I guess it's just 
terminology.

>      At the same time, I would also like to have a 'printer friendly'
>     link on each page that visitors can click on and get the same page
>     re-rendered for easy printing.  What's the best way to get the data
>     converted from one form to another?  Should I be querying the
>     database again to get the same data to reformat?  Should I store the
>     data in sessions and reformat based on the CSS?  I would think
>     having to query twice for the same thing would be a degradation in
>     performance, right?  So what's the best practice?

I have not idea what the best practice is. If your data changes 
infrequently you could build static pages, nothing faster than static 
pages. Few people work on sites where most of these questions mean 
much. A friend worked on a site that he and I had developed and I left 
the firm and he later said the customer was complaining about response 
time .. I suggested he take the query string and cache the response in 
a db file and check that db file for every incoming request rather than 
going to Oracle (yeah, they were using Oracle when mysql would have 
done fine). They opted to just bolster the hardware, end of complaints 
and it was running plain cgi, not even mod_perl. Oh well.

I do something that few people do. I take a request from the *client* 
and I process it. Just data manipulation. Since I'm doing the web I get 
an html template (from Smarty.php.net in this case) and do a merge. I 
like to use a wrapper, as such:

$data contains an array or arrays of whatever which is all the data 
needed for this page (based on the query string in the request). It is 
the body of the page (I've got smarty in my own class, viewer):

$data['content'] = $g->viewer->Merge($data,$template); 

Now, I merge everything with the WRAPPING page:

print  $g->viewer->Merge($data,'index.html'); 

Here is my index.html page ($content is the body of the page):

{include file="inc/header.html"}

{include file="../site_nav.html"}
<table width="80%">
<tr>
<td valign="top" width="25%">

{include file="./left_nav.html"}

</td>
<td  valign="top" width="74%">
{$content}
</td>
</tr>
</table>

{include file="inc/footer.html"}

__END index.html

So if you want to show a printable page just do something like this:

if($print == 1) {
        print  $g->viewer->Merge($data,'print_index.html'); 

where print_index.html would have a different layout, perhaps minimal 
header and footer or none at all. Or you  could do some processing on 
the data or whatever. 


Peter










--- End Message ---
--- Begin Message ---
Hi there,

On Sunday, September 22, 2002 12:20 PM
Subject: Re: [PHP] Best Practice
Peter J. Schoenster wrote:
<snip>
> On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote:
>
> >
> >     I'm working on converting several static (price) pages on our site
> >     into dynamic pages, with the data stored in an MySQL database and
> >     PHP to pull the data out, with CSS to build the page and present it.
>
> I don't see how CSS would build anything, I guess it's just
> terminology.
>
</snip>

Actually, in a sense, CSS can "build" a page--esp. if "build" means how data
are to be presented (formatted) by the browser. Remember, with CSS you can
hide and unhide elements?

For the original question...

> >      At the same time, I would also like to have a 'printer friendly'
> >     link on each page that visitors can click on and get the same page
> >     re-rendered for easy printing.  What's the best way to get the data
> >     converted from one form to another?  Should I be querying the
> >     database again to get the same data to reformat?  Should I store the
> >     data in sessions and reformat based on the CSS?  I would think
> >     having to query twice for the same thing would be a degradation in
> >     performance, right?  So what's the best practice?
>

The best practice, IMHO, is the one implemented here:

  http://www.alistapart.com/

Try the page with your standard-compliant browser (like N7) and with a
(crappy) browser like N4 and see the difference. You can "dissect" the site
and find out how they did it. Or, you can read articles like this:

  http://www.alistapart.com/stories/netscape/

And one for "easy printing":

  http://www.alistapart.com/stories/goingtoprint/

- E
--- End Message ---
--- Begin Message ---
On 22 Sep 2002 at 12:31, @ Edwin wrote:

> Actually, in a sense, CSS can "build" a page--esp. if "build" means how
> data are to be presented (formatted) by the browser. Remember, with CSS
> you can hide and unhide elements?

Ah .. yes ... forgot about that. That is building. Appreciate the 
reminder.

> The best practice, IMHO, is the one implemented here:
> 
>   http://www.alistapart.com/
> 
> Try the page with your standard-compliant browser (like N7) and with a
> (crappy) browser like N4 and see the difference. You can "dissect" the
> site and find out how they did it. Or, you can read articles like this:
> 
>   http://www.alistapart.com/stories/netscape/
> 
> And one for "easy printing":
> 
>   http://www.alistapart.com/stories/goingtoprint/

I gotta go back and refresh myself. Thanks for the links. 


Peter
--- End Message ---
--- Begin Message ---
I'm assuming there has got to be a better answer then this, but I found I
had the same problem is I was using headers to go to the next page, but when
I used the html tags then everything was fine (the SID wasn't getting
passed).


"Murat ." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i have written
>
> ini_set("session.name", "SID");
>
> before, in page1.php. and i've added it on page2.php before session_start
> and it works.
>
> thanks..
>
>
>
> "Murat ." <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > i tried but it didn't work.
> > i wrote in page2.php:
> >
> > <?php
> > session_start();
> > echo $_SESSION['isim'];
> > ?>
> >
> > and i was noticed: "Undefined index: isim in ....."
> >
> > but i have written $_SESSION['isim']='murat' in page1.php
> >
> >
> >
> > "Sascha Cunz" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Just use the session_start() in the second page and they will be
magically
> > there where you've put them in the first page.
> >
> > Sascha
> >
> > Am Samstag, 21. September 2002 17:01 schrieb Murat .:
> > > hi,
> > >
> > > page1.php creates a session and its variables in it in  successfully.
> the
> > > variables and values are created like
> > > $_SESSION['x']='abc'
> > >
> > >  page1.php sends the SID information to page2.php via GET method. how
> can
> > i
> > > access the those variables with SID information in page2.php?
> > >
> > > thanks
> >
> >
>
>


--- End Message ---
--- Begin Message ---
Folks, I have a PHP script that needs to be executed automatically every 15 minutes. I 
have the option of doing this on a RedHat linux box, or on Windows 2000 Server.

How would I do this (on either platform) and which would be easier?

I believe somehow I could create a cron job on linux, but I'm a bit confused how that 
would work. Would I just call the php script using Lynx? If so, does the Lynx process 
die when the php script is finished? Will I have dozens of Lynx processes still 
running at the end of the day?

In Windows, I believe I could use the task scheduler, or something like that. But 
again, how exactly would I call the script? I certainly don't want a new browser 
window to open every 15 minutes, especially if it doesn't close again.

Any insight? Thanks!

Joseph

--- End Message ---
--- Begin Message ---
Joseph,

The easiest way, in my opinion, is to make your PHP script into a shell 
script or to call it with PHP yourself. A Red Hat Linux box is going to 
have a command line PHP located somewhere like /usr/bin/php. So, make 
the first line of your PHP script something like this:

#! /usr/bin/php

Make sure it is executable (chmod 755 script.php, for example), and 
execute it:

./script.php

With cron, just call the script using the full path, and you're all set.

Happy hacking.

Chris

Joseph Szobody wrote:

>Folks, I have a PHP script that needs to be executed automatically every 15 minutes. 
>I have the option of doing this on a RedHat linux box, or on Windows 2000 Server.
>
>How would I do this (on either platform) and which would be easier?
>

--- End Message ---
--- Begin Message ---
On the Linux box compile PHP as CGI (i.e. don't configure it as an apache
mod). Then you can just run your script from the the command-line.

For example:
#!/usr/local/bin/php -q
<?php
print "Hello world.\n";
?>

The -q suppresses the html crap that gets spit out. I don't know jack
about Redhat (Debian rocks), you might be able to get an RPM that will
install the php executable for you.

To do the crontab:
RUN THIS COMMAND
crontab -e

TYPE THIS
15,30,45,0 * * * * name_of_your_script

THEN
ESC
:wq

Keith Vance
Vance Consulting LLC
www.vanceconsulting.net
(206) 355-2399

Try my open source PHP authentication system, Rampart by visiting 
http://rampart.sourceforge.net/. Commercial support is available at, 
http://www.vanceconsulting.net/support/.

On Sat, 21 Sep 2002, Joseph Szobody wrote:

> Folks, I have a PHP script that needs to be executed automatically every 15 minutes. 
>I have the option of doing this on a RedHat linux box, or on Windows 2000 Server.
>
> How would I do this (on either platform) and which would be easier?
>
> I believe somehow I could create a cron job on linux, but I'm a bit confused how 
>that would work. Would I just call the php script using Lynx? If so, does the Lynx 
>process die when the php script is finished? Will I have dozens of Lynx processes 
>still running at the end of the day?
>
> In Windows, I believe I could use the task scheduler, or something like that. But 
>again, how exactly would I call the script? I certainly don't want a new browser 
>window to open every 15 minutes, especially if it doesn't close again.
>
> Any insight? Thanks!
>
> Joseph
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

Sunday, September 22, 2002, 2:44:54 PM, you wrote:
JS> Folks, I have a PHP script that needs to be executed automatically every 15 
minutes. I have the option of doing this on a RedHat linux box, or on Windows 2000 
Server.

JS> How would I do this (on either platform) and which would be easier?

JS> I believe somehow I could create a cron job on linux, but I'm a bit confused how 
that would work. Would I just call the php script using Lynx? If so, does the Lynx 
process die when the php script
JS> is finished? Will I have dozens of Lynx processes still running at the end of the 
day?

JS> In Windows, I believe I could use the task scheduler, or something like that. But 
again, how exactly would I call the script? I certainly don't want a new browser 
window to open every 15 minutes,
JS> especially if it doesn't close again.

JS> Any insight? Thanks!

JS> Joseph


JS> --
JS> PHP General Mailing List (http://www.php.net/)
JS> To unsubscribe, visit: http://www.php.net/unsub.php


I do this in cron

0,15,30,45 * * * * /usr/bin/lynx -dump http://domain.com/clkdown.php 1> /dev/null 2> 
/dev/null

-- 
regards,
Tom

--- End Message ---
--- Begin Message ---
This is what your are looking for.  It works great.

I think this article assumes Linux which is what I use anyway.  I guess that
if you were to use windows you could schedule the task but you would need to
call it using

c:\pathTOphp\php.exe c:\pathTOscript\script.php

Use Linux!

David

----- Original Message -----
From: "Tom Rogers" <[EMAIL PROTECTED]>
To: "Joseph Szobody" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 22, 2002 12:02 AM
Subject: Re: [PHP] Running a PHP script automatically?


> Hi,
>
> Sunday, September 22, 2002, 2:44:54 PM, you wrote:
> JS> Folks, I have a PHP script that needs to be executed automatically
every 15 minutes. I have the option of doing this on a RedHat linux box, or
on Windows 2000 Server.
>
> JS> How would I do this (on either platform) and which would be easier?
>
> JS> I believe somehow I could create a cron job on linux, but I'm a bit
confused how that would work. Would I just call the php script using Lynx?
If so, does the Lynx process die when the php script
> JS> is finished? Will I have dozens of Lynx processes still running at the
end of the day?
>
> JS> In Windows, I believe I could use the task scheduler, or something
like that. But again, how exactly would I call the script? I certainly don't
want a new browser window to open every 15 minutes,
> JS> especially if it doesn't close again.
>
> JS> Any insight? Thanks!
>
> JS> Joseph
>
>
> JS> --
> JS> PHP General Mailing List (http://www.php.net/)
> JS> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> I do this in cron
>
> 0,15,30,45 * * * * /usr/bin/lynx -dump http://domain.com/clkdown.php 1>
/dev/null 2> /dev/null
>
> --
> regards,
> Tom
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


--- End Message ---
--- Begin Message ---
Can someone point me in the right direction to find out how i can return the
amount of records in a mysql databace ?

---
Philip J. Newman.
PhilipNZ.com New Zealand
http://www.philipnz.com/
[EMAIL PROTECTED]

Mob: +64 (25) 6144012.
Tele: +64 (9) 5769491.

Family Site:
Philip J. Newman
Internet Developer
http://www.newman.net.nz/
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
select count(*) as n from ... where ...

-----Original Message-----
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]

Can someone point me in the right direction to find out how i can return the
amount of records in a mysql databace ?

--- End Message ---
--- Begin Message ---
Hi there,

I am wondering how some pages count guest users. An example is phpbb. They
always know how many guest users are browsing the site. Are they using
cookies or db for this, or both? Maybe there is a code snipped out for this
already?

Thank you for any hint on that.

Andy


--- End Message ---
--- Begin Message ---
Sorry, I forgot the link.

http://phpbuilder.com/columns/darrell20000319.php3

David

----- Original Message -----
From: "David McInnis" <[EMAIL PROTECTED]>
To: "Tom Rogers" <[EMAIL PROTECTED]>; "Joseph Szobody"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 22, 2002 12:16 AM
Subject: Re: [PHP] Running a PHP script automatically?


> This is what your are looking for.  It works great.
>
> I think this article assumes Linux which is what I use anyway.  I guess
that
> if you were to use windows you could schedule the task but you would need
to
> call it using
>
> c:\pathTOphp\php.exe c:\pathTOscript\script.php
>
> Use Linux!
>
> David
>
> ----- Original Message -----
> From: "Tom Rogers" <[EMAIL PROTECTED]>
> To: "Joseph Szobody" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, September 22, 2002 12:02 AM
> Subject: Re: [PHP] Running a PHP script automatically?
>
>
> > Hi,
> >
> > Sunday, September 22, 2002, 2:44:54 PM, you wrote:
> > JS> Folks, I have a PHP script that needs to be executed automatically
> every 15 minutes. I have the option of doing this on a RedHat linux box,
or
> on Windows 2000 Server.
> >
> > JS> How would I do this (on either platform) and which would be easier?
> >
> > JS> I believe somehow I could create a cron job on linux, but I'm a bit
> confused how that would work. Would I just call the php script using Lynx?
> If so, does the Lynx process die when the php script
> > JS> is finished? Will I have dozens of Lynx processes still running at
the
> end of the day?
> >
> > JS> In Windows, I believe I could use the task scheduler, or something
> like that. But again, how exactly would I call the script? I certainly
don't
> want a new browser window to open every 15 minutes,
> > JS> especially if it doesn't close again.
> >
> > JS> Any insight? Thanks!
> >
> > JS> Joseph
> >
> >
> > JS> --
> > JS> PHP General Mailing List (http://www.php.net/)
> > JS> To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > I do this in cron
> >
> > 0,15,30,45 * * * * /usr/bin/lynx -dump http://domain.com/clkdown.php 1>
> /dev/null 2> /dev/null
> >
> > --
> > regards,
> > Tom
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


--- End Message ---
--- Begin Message ---
On 04 ??? 2000, you wrote in php.general:

> I note that the documentation for PHP 4.0 says that Java is supported;
> I haven't been able to find any documentation on how it is supported. 
> Can someone point me to something?
> 
> Hugh
> 
> --
> Hugh Caley, Lumeria, Inc.
> Lead Systems Engineer
> [EMAIL PROTECTED]
> 
> 
> 
> 
Testing ...
--- End Message ---
--- Begin Message ---
i cant find any example about "Elliptic curve cryptology".. do you have any
example? i cant understand without an example :)



--- End Message ---
--- Begin Message ---
http://www.amazon.com/exec/obidos/ASIN/1884777694/102-5129419-0804910

----- Original Message -----
From: "EjdeR" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 22, 2002 11:12 AM
Subject: [PHP] Elliptic curve cryptology


> i cant find any example about "Elliptic curve cryptology".. do you have
any
> example? i cant understand without an example :)
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hello friends,

I have a weired problem with sessions.

I am using session_start();
session_register("Sessionname");

The following is my problem.
1) User with valid username and password is given an
Administration Menu.
2) Various options are there. He selects a particular
option.
3) The selected option is opened in a new page.
4) He does his job on the new window. But midway ( say
after 2 pages ), after making a few chioices, he
closes the newly opened window,leading to some
variables being registered
5) Now , after some time , selects the same option.
6) Makes his selection. But , he gets the choices that
he had used previous time inspite of him closing the
window .

How do I get rid of the problem ? I would like that
even if the user closes the browser midway and then
again checks the same , his new sessions should be
registered and not the old.

Is there a way wherein we can destroy the sessions of
the new browser window as soon as the browser is
closed ?

I would be very thankful to you for your help.
Thanks a zillion for your help.

Best Regards,
Monil Chheda
http://www.eliteral.com
http://domains.eliteral.com
http://services.eliteral.com

=====
Best Regards,
Monil Chheda(INDIA)
http://domains.eliteral.com
===========================
===========================

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
--- End Message ---

Reply via email to