johnsmith153 Posted September 23, 2008 Share Posted September 23, 2008 $destination="www.name.com/folder/file.php"; $addtourl="name=".$_POST['n']."&email=".$_POST['e']."&phone=".$_POST['p']."&terms_conditions=1&x=".$x."&y=".$y.$extra; $destination.="?".$addtourl; $fp = fsockopen("www.name.com",80); $out = "POST / HTTP/1.1\r\n"; $out .= "Host: $destination\r\n"; $out .= "Content-Type: application/x-www-form-urlencoded\n". $out .= "Content-Length: ".strlen($destination)."\n\n". $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); fclose($fp); Link to comment https://forums.phpfreaks.com/topic/125474-what-have-i-done-wrong-fsockopen/ Share on other sites More sharing options...
axm Posted September 23, 2008 Share Posted September 23, 2008 Hello, would help if we knew what problem that outputted Link to comment https://forums.phpfreaks.com/topic/125474-what-have-i-done-wrong-fsockopen/#findComment-648690 Share on other sites More sharing options...
Maq Posted September 23, 2008 Share Posted September 23, 2008 Try debugging, echo out your values and put this at the top of your script: error_reporting(E_ALL); ini_set('error_reporting', E_ALL); Link to comment https://forums.phpfreaks.com/topic/125474-what-have-i-done-wrong-fsockopen/#findComment-648717 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.