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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -