fsockopen error with php 7.0 |
I run codeigniter3.03 on digital ocean nginx and php 7. When I try to send an email I get this error:
Code: Severity: Warning My email setup is Code: $config['useragent'] = 'CodeIgniter'; This version runs flawlessly in the same config under php 5.x. in php.ini i have Code: extension=php_openssl.dll I could not get any hint anywhere why this should not work in php7. Can anybody give me a hint what to check or what the cause of this error could be.
all you need to do is
1. enable your email 2. set your $config['smtp_timeout'] = 20; //set as long as you need
Thank you freddie, I am not sure what you mean with enable email? Can you please give me more specific advice?
I have updated my servers that have PHP 5.x to 5.6 and 7, then i got same error like above.
Try this: Disable this code: Code: //PHP 5.3 Only Add this lines below disabled codes: Code: //PHP 5.6 & 7.0 Only Configuration Hope this solves that problem. Thank you.
You can try this, but also make sure that your sockets are enabled.
PHP Code: $config['useragent'] = 'CodeIgniter'; What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |