php-general Digest 28 May 2011 18:53:21 -0000 Issue 7332

Topics (messages 313181 through 313218):

about getting a site
        313181 by: Negin Nickparsa
        313182 by: Joshua Kehn
        313183 by: Sharl.Jimh.Tsin
        313184 by: Negin Nickparsa
        313185 by: Negin Nickparsa

Re: Urgent help - Token Generation code!
        313186 by: Shreyas Agasthya

insert to table in php scripts
        313187 by: Negin Nickparsa
        313189 by: Lester Caine
        313190 by: Negin Nickparsa
        313191 by: Negin Nickparsa
        313192 by: viraj
        313193 by: Negin Nickparsa
        313194 by: Negin Nickparsa
        313195 by: Negin Nickparsa
        313196 by: Lester Caine
        313197 by: Negin Nickparsa
        313204 by: Igor Konforti
        313206 by: Negin Nickparsa
        313207 by: Negin Nickparsa
        313212 by: viraj
        313217 by: Negin Nickparsa

Re: phpsadness
        313188 by: Lester Caine
        313200 by: Andre Polykanine
        313201 by: Peter Lind
        313202 by: Robert Cummings
        313213 by: Nathan Nobbe
        313218 by: Andre Polykanine

how to use echo checkboxes in php when i don't have access to $_POST
        313198 by: Negin Nickparsa
        313199 by: Negin Nickparsa
        313203 by: Lars Nielsen
        313205 by: Negin Nickparsa
        313208 by: Jasper Mulder
        313209 by: Negin Nickparsa
        313210 by: Igor Konforti
        313211 by: Tim Streater
        313216 by: Negin Nickparsa

Re: Detecting HTTPS connections under Apache
        313214 by: Geoff Shang
        313215 by: Igor Konforti

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 don't have any site can i share my php files in somewhere 4 free?
if yes, what u suggest?

--- End Message ---
--- Begin Message ---
On May 28, 2011, at 2:18 AM, Negin Nickparsa wrote:

> if i don't have any site can i share my php files in somewhere 4 free?
> if yes, what u suggest?

Nergin-

Several small points.

1. Use correct punctuation. Use capitalization. 
2. Don't use phrases like "what u suggest" or "somewhere 4 free" as it will 
reflect poorly on yourself and cause most people to ignore your request.
3. The best things in life aren't free, if you want something useful you often 
have to pay for it in some form.
4. Question: By "share" do you mean "host and run?"
5. I am assuming a true flag thrown on point #4; I do not know of any free 
hosting sites worth mentioning.

Regards,

-Josh
____________________________________
Joshua Kehn | [email protected]
http://joshuakehn.com


--- End Message ---
--- Begin Message ---
On 2011年05月28日 14:18, Negin Nickparsa wrote:
if i don't have any site can i share my php files in somewhere 4 free?
if yes, what u suggest?

here,or try googlecode.

--
Best regards,
Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*)

Using Gmail? Please read this important notice: 
http://www.fsf.org/campaigns/jstrap/gmail?10073.


--- End Message ---
--- Begin Message ---
*Joshua You are right,I **apologize**.*

--- End Message ---
--- Begin Message ---
thanks Sharl,I'll study it

Joshua,Yes,I mean host and Run

--- End Message ---
--- Begin Message ---
Let me try and get back.

Thanks, Jasper!



On 28-May-2011, at 4:29 AM, Jasper Mulder <[email protected]> wrote:


----------------------------------------
From: [email protected]
To: [email protected]
Subject: Re: [PHP] Urgent help - Token Generation code!
Date: Sat, 28 May 2011 04:15:59 +0530

Jasper,

Tried echoing $sToken but wouldn't work.

Regards,
Shreyas

On 28-May-2011, at 4:11 AM, Jasper Mulder
wrote:


----------------------------------------
Date: Sat, 28 May 2011 03:56:26 +0530
From: [email protected]
To: [email protected]
Subject: [PHP] Urgent help - Token Generation code!

I am re-visiting the world of PHP after a really big hiatus and I
am finding
things veryslippery. Can someone please help me with the below code
and let
me know how I can print the token that is getting generated?

I am using EasyPHP and I am trying to echo the $token but it
wouldn't print
anything. I am trying it as : http://localhost/token/URLToken.php.
May I
know where all I am going wrong here in my approach?


$sUrl = "/tstd_c_b1@s54782";
$sParam = "primaryToken";
$nTime = time();
$nEventDuration = 86400;
$nWindow = $nTime + $nEventDuration;
$sSalt = "akamai123!";
$sExtract = ""; // optional


As a second try, what happens if you add right here the line

$sGen = urlauth_gen_url($sUrl, $sParam, $nWindow, $sSalt, $sExtract, $nTime);

Because it seems as though you just declare three functions in the code
without calling them...


function urlauth_gen_url($sUrl, $sParam, $nWindow,
$sSalt, $sExtract, $nTime) {



$sToken = urlauth_gen_token($sUrl, $nWindow, $sSalt,
$sExtract, $nTime);
echo $token;

There are two cases:
1. You made a typo and meant 'echo $sToken;' on the above line instead
2. You omitted the part where $token is defined and used

[More code that seemed fine]

--
Regards,
Shreyas Agasthya


Best regards,
Jasper Mulder


--- End Message ---
--- Begin Message ---
I have a code that i get the $_POST's result and then insert them in tables
of Mysql
it can run without error but it'll insert in the table twice and i don't
know why.
when I click the submit then with array_key_exists I go to if statement and
insert it.
i'll show the code if someone have time helping me.
cheers

--- End Message ---
--- Begin Message ---
Negin Nickparsa wrote:
I have a code that i get the $_POST's result and then insert them in tables
of Mysql
it can run without error but it'll insert in the table twice and i don't
know why.
when I click the submit then with array_key_exists I go to if statement and
insert it.
i'll show the code if someone have time helping me.

Consistently adding twice? Or occasionally?
I STILL hit problems where people double click a button and the submit happens twice, and have to do some javascript to prevent that since the php end is too late.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---
Consistently

here is the code:
<?php
session_start();
$connection=Mysql_connect('localhost','admin','123');
Mysql_select_db('db',$connection);
if(array_key_exists('sub',$_POST)&&$_POST['sub']=='Register')
{
$str=$_POST['uname'];
$str2=$_POST['pass1'];
$str3=$_POST['pname'];
$str4=$_POST['lname'];

$query="select * from user where user='$str'";
$result=mysql_query($query);
if (!$result)
{
print(mysql_errno() .":". mysql_error());
}

$num=Mysql_num_rows($result);

if($num==0)
{
$query1="insert into
user(kind,user,pass,name)values('p','$str','$str2','$str3')";
$result1=mysql_query($query1);

if (!$result1)
{
print(mysql_errno() .":". mysql_error());
}

$query2="insert into pnt(name,lname)values('$str3','$str4')";
$result2=mysql_query($query2);

if (!$result2)
{
print(mysql_errno() .":". mysql_error());
}

echo "you have been registered successfully!";
}
else
echo"sorry this account was used";
}
?>
<html>

<head>
<title>Registration</title>
</head>
<body>
<form method="post">
<fieldset><legend><b>Complete the form below:</b></legend>
 <p><b>Name:</b><input type="text" name="pname" />
<p><b>Last name:</b><input type="text" name="lname" />
<p><b>Username:</b><input type="text" name="uname" />
<p><b>Password:</b><input type="password" name="pass1" />
 </fieldset>
<input type="submit" name='sub' value="Register"/>
</form>
</body>
</html>

--- End Message ---
--- Begin Message ---
I click the submit button just one time! not twice
but when i go to MySql and select * from it
it shows me happening two times

--- End Message ---
--- Begin Message ---
hi negin,
do you get duplicate inserts into both tables? if yes, try an
'exit();' right after the success message;

echo "you have been registered successfully!";
exit();

this will stop the script after the message, and you wont see the form
either. at this point check the tables for duplicate records. if there
are no duplicates, you are closer to the solution.


~viraj

On Sat, May 28, 2011 at 1:31 PM, Negin Nickparsa <[email protected]> wrote:
> I click the submit button just one time! not twice
> but when i go to MySql and select * from it
> it shows me happening two times
>

--- End Message ---
--- Begin Message ---
Hi viraj
intresting!
i changed the code to this:
$kind=$_SESSION['s3'];
$query1="insert into
user(kind,user,pass,name)values('$kind','$str','$str2','$str3')";
$result1=mysql_query($query1);
i set the session in my another page

and now it works properly:D
LOL!!!!!!

--- End Message ---
--- Begin Message ---
Yes viraj it was in both tables

--- End Message ---
--- Begin Message ---
i used your exit too,yes it's better to hide the form after registration:)

--- End Message ---
--- Begin Message ---
Negin Nickparsa wrote:
I click the submit button just one time! not twice
but when i go to MySql and select * from it
it shows me happening two times
The code looks OK, so something is hitting it twice. I normally have a unique index on anything that I do not want duplicates in - which would then flag an error.
( I never used MySQL ;) I'm using Firebird )

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---
i'm wondering that what was the problem!
why with just a session it now works propely!!!
how!

--- End Message ---
--- Begin Message ---
But why do you double-post your question?
http://news.php.net/php.general/313198
?

On Sat, May 28, 2011 at 11:21, Negin Nickparsa <[email protected]> wrote:

> i'm wondering that what was the problem!
> why with just a session it now works propely!!!
> how!
>

--- End Message ---
--- Begin Message ---
cause it's in another topic!!! and another problem!
this problem was solved
i had another problem
what do you mean!?

--- End Message ---
--- Begin Message ---
in this topic problem WAS this one:
insert to a table twice(that was solved)

and on that post problem is this one:
working with echo html then insert to a table (problem in $_POST)

I thought it is very different am i wrong?

--- End Message ---
--- Begin Message ---
hi nigen,
the intention of that 'exit' was to stop the script temporarily to
avoid any second time inserts. i think you better figure-out what
caused your script to insert same data twice in a single form post.

to hide the form, 'exit' is not the best option. there are several
different ways, one simple method the 'header' function.
http://www.php.net/manual/en/function.header.php


~viraj

On Sat, May 28, 2011 at 1:50 PM, Negin Nickparsa <[email protected]> wrote:
> i used your exit too,yes it's better to hide the form after registration:)

--- End Message ---
--- Begin Message ---
Thanks Viraj,I'll read it.

--- End Message ---
--- Begin Message ---
Daevid Vincent wrote:
A friend sent me this URL today. While amusing, he's got many valid points
and I certainly share in his frustration.

http://www.phpsadness.com

I'd take him a bit more seriously if he used a real name ;)
But many of the points I looked at simply reflect that he has yet to take advantage of any of the free development tools that highlight problems even before you try and run the code? Of cause what would be really useful would be a comment section on each page so that they CAN be corrected, or linked to the discussion on the pro's and con's on making changes to them. But on the whole PHP is no more 'inconsistent' than any other language? Many of the things I learnt to do in Algol all those years ago are now done differently, and no doubt things will change again - next version of PHPX :) I've just wasted the last two days trying to get a C++ program that I've been using for 15 years even to compile in the latest iteration of the old Borland tool set .... and I had to pay lots of pennies for the privilege to even try!

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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

Actually,  many of the points are not important for me so far, however
this one really drives me mad:
http://phpsadness.com/?page=sad/35   (can't   explode()  by  an  empty
string)
Besides that, he says nothing about unicode issues.
I  love  PHP  (I  really do, it's a neat language, as for me!), but it
*should* be unicode by default. If you ever read my code when I try to
make and strtr() with a unicode string, you'll understand me because I
do  an iconv(), then strtr() and then an iconv() back to unicode. That
is not a good coding practice, is it?

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion

------------ Original message ------------
From: Lester Caine <[email protected]>
To: [email protected]
Date created: , 10:49:28 AM
Subject: [PHP] phpsadness


      Daevid Vincent wrote:
> A friend sent me this URL today. While amusing, he's got many valid points
> and I certainly share in his frustration.
>
> http://www.phpsadness.com

I'd take him a bit more seriously if he used a real name ;)
But many of the points I looked at simply reflect that he has yet to take 
advantage of any of the free development tools that highlight problems even 
before you try and run the code?
Of cause what would be really useful would be a comment section on each page so 
that they CAN be corrected, or linked to the discussion on the pro's and con's 
on making changes to them. But on the whole PHP is no more 'inconsistent' than 
any other language? Many of the things I learnt to do in Algol all those years 
ago are now done differently, and no doubt things will change again - next 
version of PHPX :)
I've just wasted the last two days trying to get a C++ program that I've been 
using for 15 years even to compile in the latest iteration of the old Borland 
tool set .... and I had to pay lots of pennies for the privilege to even try!

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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



--- End Message ---
--- Begin Message ---
On May 28, 2011 11:27 AM, "Andre Polykanine" <[email protected]> wrote:
>
> Hello Lester,
>
> Actually,  many of the points are not important for me so far, however
> this one really drives me mad:
> http://phpsadness.com/?page=sad/35   (can't   explode()  by  an  empty
> string)

http://www.php.net/manual/en/function.str-split.php

Regards

--- End Message ---
--- Begin Message ---
On 11-05-28 05:26 AM, Andre Polykanine wrote:
Hello Lester,

Actually,  many of the points are not important for me so far, however
this one really drives me mad:
http://phpsadness.com/?page=sad/35   (can't   explode()  by  an  empty
string)
Besides that, he says nothing about unicode issues.
I  love  PHP  (I  really do, it's a neat language, as for me!), but it
*should* be unicode by default. If you ever read my code when I try to
make and strtr() with a unicode string, you'll understand me because I
do  an iconv(), then strtr() and then an iconv() back to unicode. That
is not a good coding practice, is it?

Isn't explode() with an empty string akin to division by zero?

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--- End Message ---
--- Begin Message ---
On Sat, May 28, 2011 at 4:33 AM, Robert Cummings <[email protected]>wrote:

> On 11-05-28 05:26 AM, Andre Polykanine wrote:
>
>> Hello Lester,
>>
>> Actually,  many of the points are not important for me so far, however
>> this one really drives me mad:
>> http://phpsadness.com/?page=sad/35   (can't   explode()  by  an  empty
>> string)
>> Besides that, he says nothing about unicode issues.
>> I  love  PHP  (I  really do, it's a neat language, as for me!), but it
>> *should* be unicode by default. If you ever read my code when I try to
>> make and strtr() with a unicode string, you'll understand me because I
>> do  an iconv(), then strtr() and then an iconv() back to unicode. That
>> is not a good coding practice, is it?
>>
>
> Isn't explode() with an empty string akin to division by zero?
>

Strings are already accessible through array notation anyway, seems like ol
dude may benefit from a php-general membership as well.

-nathan

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

It's not unicode... :-((
Yepp,  I  saw  this  thing  in  notes  with array_map, array_chunk and
array_something_else but it's still too slow, on my opinion.

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion

------------ Original message ------------
From: Peter Lind <[email protected]>
To: Andre Polykanine
Date created: , 12:37:18 PM
Subject: [PHP] phpsadness


      On May 28, 2011 11:27 AM, "Andre Polykanine" <[email protected]> wrote:
>
> Hello Lester,
>
> Actually,  many of the points are not important for me so far, however
> this one really drives me mad:
> http://phpsadness.com/?page=sad/35   (can't   explode()  by  an  empty
> string)

http://www.php.net/manual/en/function.str-split.php

Regards


--- End Message ---
--- Begin Message ---
because I echo the checkboxes like this:

if($num>0)
{
echo "<table border=2>";
for($i=0;$i<$num;$i++)
{
$row=mysql_fetch_row($result);
echo "<tr>";
echo"<td><input type='Checkbox' name='p$i'  value='yes' unchecked /></td>";
echo"<td>$row[0]</td>";
 echo"</tr>";
}//for
echo"</table>";
}//if

i can't use $_POST because it's not in html
how can i insert my items that are checked into table?

--- End Message ---
--- Begin Message ---
i mean my tables in Mysql

--- End Message ---
--- Begin Message ---
lør, 28 05 2011 kl. 13:32 +0430, skrev Negin Nickparsa:
> because I echo the checkboxes like this:
> 
> if($num>0)
> {
> echo "<table border=2>";
> for($i=0;$i<$num;$i++)
> {
> $row=mysql_fetch_row($result);
> echo "<tr>";
> echo"<td><input type='Checkbox' name='p$i'  value='yes' unchecked /></td>";
> echo"<td>$row[0]</td>";
>  echo"</tr>";
> }//for
> echo"</table>";
> }//if
> 
> i can't use $_POST because it's not in html
> how can i insert my items that are checked into table?
Hey,

You are generating HTML output from PHP! Right?

Then why dont you have access to $_POST ???

/Lars


--- End Message ---
--- Begin Message ---
because when the name is in echo it can't access to $_POST
4 example $_POST['p$i']
it tells me undefined variable p$i

when in html we write it in form because it has post method it can set
$_POST but here in php i just echo it and i can't access it
maybe i am wrong but how can i correct it?

--- End Message ---
--- Begin Message ---
----------------------------------------
> Date: Sat, 28 May 2011 16:39:13 +0430
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [PHP] how to use echo checkboxes in php when i don't have access 
> to $_POST
>
> because when the name is in echo it can't access to $_POST
> 4 example $_POST['p$i']
> it tells me undefined variable p$i
>
> when in html we write it in form because it has post method it can set
> $_POST but here in php i just echo it and i can't access it
> maybe i am wrong but how can i correct it?

In PHP, single quotes do not allow in-line variable substitution.
My guess is that it will work if you use $_POST['p'.$i] or $_POST["p$i"] 
instead.

Further, please mind your punctuation and language use - here I also refer to 
the 
other posts you made. As was stated before, people may be offended and thus it 
makes
the chances of you solving your problem fast smaller.
As a last, please refrain from bombarding the list with small posts. Please 
think a bit
before posting your questions. Thanks in advance.

Best regards,
Jasper Mulder
                                          

--- End Message ---
--- Begin Message ---
I'm sorry that I disturbed you and the List,I tried hard to mind my
punctuations but my English has weaknesses you can understand from my
posts,one time I apologized......

No my problem is not with these punctuations i know  them
I said for example,I mean in general

suppose that i have this SIMPLE code:
<?php
echo"<input type='Checkbox' name='negin'  value='yes' checked />";
echo $_POST['negin'];
?>
<html>
<head>
<body>
<form method="post">
</form>
</body>
</head>
</html>
error is this:
Undefined index: negin in *D:\phpweb\negin2.php* on line *4*
*
*
*how can I correct this?*

--- End Message ---
--- Begin Message ---
It means that array $_POST does not have a key called "negin".
Simple If statement before line 4 would fix this.

And I agree with @Jasper Mulder. Perhaps you should try
stackoverflow.comfor this kind of questions....

Regards

On Sat, May 28, 2011 at 16:03, Negin Nickparsa <[email protected]> wrote:

> I'm sorry that I disturbed you and the List,I tried hard to mind my
> punctuations but my English has weaknesses you can understand from my
> posts,one time I apologized......
>
> No my problem is not with these punctuations i know  them
> I said for example,I mean in general
>
> suppose that i have this SIMPLE code:
> <?php
> echo"<input type='Checkbox' name='negin'  value='yes' checked />";
> echo $_POST['negin'];
> ?>
> <html>
> <head>
> <body>
> <form method="post">
> </form>
> </body>
> </head>
> </html>
> error is this:
> Undefined index: negin in *D:\phpweb\negin2.php* on line *4*
> *
> *
> *how can I correct this?*
>

--- End Message ---
--- Begin Message ---
On 28 May 2011 at 14:11, Igor Konforti <[email protected]> wrote: 

> It means that array $_POST does not have a key called "negin".
> Simple If statement before line 4 would fix this.

> On Sat, May 28, 2011 at 16:03, Negin Nickparsa <[email protected]> wrote:

>> suppose that i have this SIMPLE code:
>> <?php
>> echo"<input type='Checkbox' name='negin'  value='yes' checked />";
>> echo $_POST['negin'];
>> ?>
>> <html>
>> <head>
>> <body>
>> <form method="post">
>> </form>
>> </body>
>> </head>
>> </html>
>> error is this:
>> Undefined index: negin in *D:\phpweb\negin2.php* on line *4*
>> *
>> *
>> *how can I correct this?*

For one thing you need to have the PHP code inside the <form></form>. Second 
you don't need to echo the <input>, just write that straight into the HTML. And 
you need to use the isset() function so you don't try to echo $_POST['negin'] 
unless it it is set.

--
Cheers  --  Tim

--- End Message ---
--- Begin Message ---
Yes,you are right I visited the
http://stackoverflow.com/users/218196/felix-kling
and i found my problem and solved it

--- End Message ---
--- Begin Message ---
On Fri, 27 May 2011, Curtis Maurand wrote:

$_SERVER['HTTPS']

I don't see this at all.

I'm definitely connecting securely. Here are the status lines from Lynx when surfing to https://MintFM.net/phpinfo.php:

    1. Looking up mintfm.net
    2. Making HTTPS connection to mintfm.net
    3. Verified connection to mintfm.net (cert=mintfm.net)
    4. Certificate issued by: /C=FR/O=GANDI SAS/CN=Gandi Standard SSL CA
    5. Secure 128-bit TLS1.0 (DHE_RSA_AES_128_CBC_SHA1) HTTP connection
    6. Sending HTTP request.
    7. HTTP request sent; waiting for response.
    8. HTTP/1.1 200 OK
    9. Data transfer complete

So it's definitely secure, but I'm not seeing anything in $_SERVER that says so. So I'm wondering if Apache is not exporting something properly.

Geoff.


--- End Message ---
--- Begin Message ---
LOL :)
Just saw phpinfo() and you are right, it shows port 80 even if it's httpS :0

But the problem is, that $_SERVER['SERVER_PORT'] is apache variable and not
php, meaning that apache is telling PHP that it works on port 80.
Even if you use .htaccess and variable "%{SERVER_PORT}" it will not work (or
will?) :(

I personally would solve this by two virtualhost setting in apache. Then one
line in virtaulhost:
*php_flag [variable_name] [value]*
could help me if it's secure or not...
Can you try that?

But I agree with @Richard, you have few issues with LAMP configuration....

Regards


On Sat, May 28, 2011 at 19:52, Geoff Shang <[email protected]> wrote:

> On Fri, 27 May 2011, Curtis Maurand wrote:
>
>  $_SERVER['HTTPS']
>>
>
> I don't see this at all.
>
> I'm definitely connecting securely.  Here are the status lines from Lynx
> when surfing to https://MintFM.net/phpinfo.php:
>
>    1. Looking up mintfm.net
>    2. Making HTTPS connection to mintfm.net
>    3. Verified connection to mintfm.net (cert=mintfm.net)
>    4. Certificate issued by: /C=FR/O=GANDI SAS/CN=Gandi Standard SSL CA
>    5. Secure 128-bit TLS1.0 (DHE_RSA_AES_128_CBC_SHA1) HTTP connection
>    6. Sending HTTP request.
>    7. HTTP request sent; waiting for response.
>    8. HTTP/1.1 200 OK
>    9. Data transfer complete
>
> So it's definitely secure, but I'm not seeing anything in $_SERVER that
> says so.  So I'm wondering if Apache is not exporting something properly.
>
>
> Geoff.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---

Reply via email to