From professional translators, enterprises, web pages and freely available translation repositories.
梒 33. creating variables
edellinen
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
瞰赽 33-1. creating variables with different scopes.
esimerkki 33-1.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
瞰赽 1. a stream for reading/writing global variables
esimerkki 1.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
the session_unset() function frees all session variables currently registered.
huomaa:
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
if you're interested in importing other variables into the global scope, such as server, consider using extract().
huomaa:
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
parses str as if it were the query string passed via an url and sets variables in the current scope. if the second parameter arr is present, variables are stored in this variable as an array elements instead.
huomaa:
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
// fill in data for the distinguished name to be used in the cert // you must change the values of these keys to match your name and // company, or more precisely, the name and company of the person/site // that you are generating the certificate for. // for ssl certificates, the commonname is usually the domain name of // that will be using the certificate, but for s/mime certificates, // the commonname will be the name of the individual who will use the // certificate. $dn = array( "countryname" = "uk", "stateorprovincename" = "somerset", "localityname" = "glastonbury", "organizationname" = "the brain room limited", "organizationalunitname" = "php documentation team", "commonname" = "wez furlong", "emailaddress" = "wez@php.net"); // generate a new private (and public) key pair $privkey = openssl_pkey_new(); // generate a certificate signing request $csr = openssl_csr_new($dn, $privkey); // you will usually want to create a self-signed certificate at this // point until your ca fulfills your request. // this creates a self-signed cert that is valid for 365 days $sscert = openssl_csr_sign($csr, null, $privkey, 365); // now you will want to preserve your private key, csr and self-signed // cert so that they can be installed into your web server, mail server // or mail client (depending on the intended use of the certificate). // this example shows how to get those things into variables, but you // can also store them directly into files. // typically, you will send the csr on to your ca who will then issue // you with the "real" certificate. openssl_csr_export($csr, $csrout) and debug_zval_dump($csrout); openssl_x509_export($sscert, $certout) and debug_zval_dump($certout); openssl_pkey_export($privkey, $pkeyout, "mypassword") and debug_zval_dump($pkeyout); // show any errors that occurred here while (($e = openssl_error_string()) !== false) {echo $e. "\n";}
esimerkki 1. openssl_csr_new() example - creating a self-signed-certificate
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting