i am having troubles with socket programming .. :S
i am kind of confused and unable to locate error in the following code..
- Code: Select all
19 $socket = fsockopen($host, 80, $errnum, $errstr, 30);
20 if ($socket === false)
22 echo 'Error ' . $errnum . ' : ' . $errstr;
23 return false;
i have $host defined.. line nos. are as shown..
i get following error ..
Fatal error: Only variables can be passed by reference in C:\.....\index.php on line 19
please help.. as i am unable to understand what mistake i have made..