-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP fwrite() Function #235
Comments
Is fsockopen enabled or disabled on admin page? If it is disabled, ask your host to enable outbound connections. |
Make sure to use same php version for cron as one that you use for website. |
i added simple code in lgsl_cron.php
Result is - Function Exists CRON: /usr/local/bin/ea-php74 /home/sefgstxb/public_html/lgsl_files/lgsl_cron.php may be issue is in outbound 80/443 ports ? or any other ideas? |
Try this
|
can be fwrite() error caused only by fsockopen |
with ur code i got "I can see port 80" then i tested with other (game ip:port)
and got this
i doubt fsockopen have to work for websites coz its allowed from php.ini with but does not work for game IP:PORTs :( |
You should have tested port 27105 instead of 1337 as there is no app listening on that port at the destination IP Your host whitelisted some ports. |
Warning: fsockopen(): unable to connect to 80.241.245.222:27105 (Connection refused) in /home/sefgstxb/public_html/lgsl_files/lgsl_cron.php on line 20 same |
This is host issue. |
so as i understend its shld be 80 & 443 outbound ports for fsockopen ? |
Yes and no.
Yes |
tnx for ur help and time... <3 |
hello
few days ago i transfered my web from VPS to shared hosting(with cpanel)
on VPS everything was perfect, works well without any erros
now im geting this error while cron runs
plz help me solve this problem....
The text was updated successfully, but these errors were encountered: