Disables SSL/HTTPS connections for hosts that don’t support them. Some services, however, still require SSL support.
This method will throw a user warning when invoked, which can be hidden by changing your
error_reporting()
settings.
Access
public
Returns
Type |
Description |
---|---|
A reference to the current instance. |
Examples
Disable SSL for the service.
- Note: It is not recommended to disable SSL.
- Note: This method is inherited by all service-specific classes.
// Disable SSL (Using @ to suppress the warning from the output) $sdb = new AmazonSDB(); @$sdb->disable_ssl(true); // Test if the value was set var_dump($sdb->use_ssl);Result:
bool(false)
Source
Method defined in sdk.class.php | Toggle source view (6 lines) | View on GitHub