Is fsockopen() enabled on Chopin?

Status
Not open for further replies.

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Hello. I'm trying to send mails through Gmail's SMTP server although it doesn't seem to be working. It worked for a few days after the server moves, though it hasn't since April 6th.

Since using an external SMTP server requires fsockopen(), I ran the following code to test if fsockopen is enabled and it doesn't appear to be enabled.

PHP:
<?php
if(!function_exists("fsockopen")) {
   echo "Function Exists";
}
else {
echo "Function Does Not Exist";
}
?>

The output becomes Function Does Not Exist (http://www.techairlines.com/fsock.php).

I'm wondering if this is permanent or just temporary. Thanks.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Your code is not correct. Try with this code
PHP:
<?php
if(function_exists('fsockopen')) {
echo "fsockopen function is enabled";
}
else {
echo "fsockopen is not enabled";
}
?>

Check this http://chopin.x10hosting.com/~bossbest/test.php

so it is sure that fsockopen is enabled on chopin.
 
Last edited:

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Your code is not correct. Try with this code
PHP:
<?php
if(function_exists('fsockopen')) {
echo "fsockopen function is enabled";
}
else {
echo "fsockopen is not enabled";
}
?>

Check this http://chopin.x10hosting.com/~bossbest/test.php

so it is sure that fsockopen is enabled on chopin.

Thanks Zubair! Guess fsockopen is enabled. I'll go look into my settings for SMTP again since this is probably an issue on my end.
 
Status
Not open for further replies.
Top