Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Support IPv6
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dominique Ottello  
View profile   Translate to Translated (View Original)
 More options Apr 23 2012, 12:31 pm
Newsgroups: fr.comp.lang.php
From: Dominique Ottello <air.inta...@fra.fr.invalid>
Date: Mon, 23 Apr 2012 18:31:08 +0200
Local: Mon, Apr 23 2012 12:31 pm
Subject: Support IPv6
Bonjour,

Existe-t-il un moyen de savoir, par un script PHP, si le serveur sur
lequel tourne PHP supporte ou non IPv6 ?

Merci.
--
Aujourd'hui, l'idéal du progrès est remplacé par l'idéal de l'innovation :
il ne s'agit pas que ce soit mieux, il s'agit seulement que ce soit nouveau,
même si c'est pire qu'avant et cela de toute évidence. Montherlant
Technologie aéronautique - http://ottello.net - Les anciens de Vilgénis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BertrandB  
View profile   Translate to Translated (View Original)
 More options Apr 23 2012, 2:45 pm
Newsgroups: fr.comp.lang.php
From: BertrandB <News.20.Bertra...@SUP2BEVALID.spamgourmet.com.INVALID>
Date: Mon, 23 Apr 2012 20:45:25 +0200
Local: Mon, Apr 23 2012 2:45 pm
Subject: Re: Support IPv6
Le 23/04/2012 18:31, Dominique Ottello a écrit :
> Bonjour,

> Existe-t-il un moyen de savoir, par un script PHP, si le serveur sur
> lequel tourne PHP supporte ou non IPv6 ?

> Merci.

avec passthru on peut avoir le résultat des commandes unix ... enfin
chez certains hébergeurs pas tous.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dominique Ottello  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 4:28 am
Newsgroups: fr.comp.lang.php
From: Dominique Ottello <air.inta...@fra.fr.invalid>
Date: Wed, 22 Aug 2012 10:28:56 +0200
Local: Wed, Aug 22 2012 4:28 am
Subject: Re: Support IPv6
Dominique Ottello <air.inta...@fra.fr.invalid> crivait :

> Bonjour,

> Existe-t-il un moyen de savoir, par un script PHP, si le serveur sur
> lequel tourne PHP supporte ou non IPv6 ?

Apr s un certain temps ( Fernand Raynaud=), je me r ponds :

<?php
//Test extension sockets
if (extension_loaded('sockets')) {
        //Cr ation du socket IPv4
        $socket = socket_create(AF_INET, SOCK_RAW, 1);
        if($socket === false) {
           $errorcode = socket_last_error();
           $errormsg = socket_strerror($errorcode);
           echo "<p>Erreur socket IPv4 : ".$errormsg."</p>\n";
        }
        else {
                echo "<p>IPv4 support </p>\n";
                socket_close($socket);
        }

        //Cr ation du socket IPv6
        $socket = socket_create(AF_INET6, SOCK_RAW, 1);
        if($socket === false) {
           $errorcode = socket_last_error();
           $errormsg = socket_strerror($errorcode);
           echo "<p>Erreur socket IPv6: ".$errormsg."</p>\n";
        }
        else {
                echo "<p>IPv6 support </p>\n";
                socket_close($socket);
        }

}

else echo "<p>Extension PHP sockets non charg e</p>\n";

--
Ce n'est pas parce qu'ils sont nombreux avoir tort
qu'ils ont forc ment raison. Coluche


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »