fsockopen error with php 7.0 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: fsockopen error with php 7.0 (/showthread.php?tid=64452) |
fsockopen error with php 7.0 - alfred.laggner - 02-21-2016 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. RE: fsockopen error with php 7.0 - freddy - 02-21-2016 all you need to do is 1. enable your email 2. set your $config['smtp_timeout'] = 20; //set as long as you need RE: fsockopen error with php 7.0 - alfred.laggner - 02-21-2016 Thank you freddie, I am not sure what you mean with enable email? Can you please give me more specific advice? RE: fsockopen error with php 7.0 - alfred.laggner - 02-21-2016 (02-21-2016, 07:20 PM)freddy Wrote: all you need to do is I am not sure with what you mean with 'enable your email'. May I ask you to explain what to do to enable my email. I appreciate your support. RE: fsockopen error with php 7.0 - novianbiz - 12-29-2016 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. RE: fsockopen error with php 7.0 - InsiteFX - 12-30-2016 You can try this, but also make sure that your sockets are enabled. PHP Code: $config['useragent'] = 'CodeIgniter'; RE: fsockopen error with php 7.0 - Ramachandran VG - 01-09-2020 (02-21-2016, 07:20 PM)freddy Wrote: all you need to do is Thank You. Solved the issue... |