Problem with fwrite php -


i getting problem while using fwrite in php. following code works in local computer gives error in server.

$fp = fsockopen("www.example.com", 80, $errno, $errstr, 30); if(!$fp) {    echo 'error: '.$errno.', '.$errstr; } else {    fwrite($fp, 'kool'); } 

there no error fsockopen. passes , gives no error. fwrite not being able write. fails , returns no error false

if you're on shared host, server not allow outbound connections on port 80. inbound connections allowed.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -