Mailing List Archive



Back to the month index Back to the list index

J. M. Castagnetto (jcastagnetto@hotmail.com)
Mon, 12 Apr 1999 15:49:29 PDT


Message-ID: <19990412224929.60965.qmail@hotmail.com>
From: "J. M. Castagnetto" <jcastagnetto@hotmail.com>
Subject: Re: http_referer
Date: Mon, 12 Apr 1999 15:49:29 PDT

[Warning PHP3 only answer]

I think that you may be using the wrong capitalization for the
variable. To check what you have available, make a script (let's say
"info.php3"), and put the following in it:

<?php
        phpinfo();
?>

Then call it inf your browser, once it is save in your web server
(assuming in "cgi-bin"):

        http://www.foo.com/cgi-bin/info.php3

This will give you a list of all the variables you script has access
to, when called via yous web server.

Pick what you need from there.

>From: Patrick LECROSNIER <lecrosnp@club-internet.fr>
>Reply-To: lecrosnp@club-internet.fr
>To: Multiple recipients of list <msql-list@services.bunyip.com>
>Subject: http_referer
>Date: Sun, 11 Apr 1999 09:44:50 -0400 (EDT)
>
>Hi,
>Is it possible to know the name of a page of redirection ?
>And in this case they are nothing in http-referer :-(
>The page of redirection is in phtml v.2
>
>Thank you very much.
>Patrick
>
=====
Jesus M. Castagnetto - jcastagnetto@hotmail.com
Pilot stuff & etc.:
  http://www.geocities.com/ResearchTriangle/Lab/1059/
LAB: http://www.scripps.edu/research/metallo
Metalloprotein DB: http://metallo.scripps.edu/

_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
From davidp@wsa.net.au Mon Apr 12 19:59:46 1999
Received: from ccnet.com.au (root@slave.uccnet.com.au [203.17.71.2])
        by services.bunyip.com (8.8.5/8.8.5) with ESMTP id TAA29176
        for <msql-list@services.bunyip.com>; Mon, 12 Apr 1999 19:59:44 -0400 (EDT)
Received: from dave.WSA (dialup1.uccnet.com.au [203.17.71.11])
        by <msql-list@services.bunyip.com>ccnet.com.au (8.9.2/8.9.0) with SMTP id KAA11563
        for <msql-list@services.bunyip.com>; Tue, 13 Apr 1999 10:02:16 +1000 (EST)
Reply-To: <dpalmer@wsa.net.au>
From: "David Palmer" <davidp@wsa.net.au>
To: <msql-list@services.bunyip.com>
Subject: RE: Converting a 6 digit date to mSQL Date format (Part 2)
Date: Tue, 13 Apr 1999 10:03:50 +1000
Message-ID: <032001be8541$1d177e80$9a00a8c0@dave.WSA>
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 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Importance: Normal
In-Reply-To: <19990410015216.46878.qmail@hotmail.com>

Thank you for your most helpful replies. It worked !

To quote the mSQL 2.0 manual for Date & Time Related Functions for
msqlDateToUnixTime() ;

"The mSQL date routines will assume the 20th century if only 2 digits of the
year value are presented".

This above statement appears to be incorrect.

The msqlDateToUnixTime() function would not work unless I provided the
leading "19" for the century, as you mentioned in your e-mail below.

I'm hoping the data supplied that loads the database will provide a 4 digit
year before next century and this will correct the above problem with
msqlDateToUnixTime() function.

David Palmer

-----Original Message-----
From: J. M. Castagnetto [mailto:jcastagnetto@hotmail.com]
Sent: Saturday, 10 April 1999 11:52
To: davidp@wsa.net.au; msql-list@services.bunyip.com
Subject: Re: Converting a 6 digit date to mSQL Date format (Part 2)

I just noticed:

[snip]
>$day = strseg($row[1],0,1);
>$yr = strseg($row[1],4,5);

Shouldn't it be: $yr = "19" + strseg($row[1],4,5);

to get the 4 digit year you need later?

[snip]
>$msqldate = $day + $mth + $yr;
[snip]

Regards.

=====
Jesus M. Castagnetto - jcastagnetto@hotmail.com
Pilot stuff & etc.:
  http://www.geocities.com/ResearchTriangle/Lab/1059/
LAB: http://www.scripps.edu/research/metallo
Metalloprotein DB: http://metallo.scripps.edu/

_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com