note 117358 rejected from function.gethostbyname by cmb
| From: | cmb@php.net | Date: | Wed, 27 May 2015 11:05:06 +0000 |
| Subject: | note 117358 rejected from function.gethostbyname by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202678@lists.php.net to get a copy of this message | ||
Note Submitter: marktheblake at gmail dot com
----
I used the code exactly as in the example and I get this error
Parse error: syntax error, unexpected T_VARIABLE in /home/username/public_html/test.php on line 4
<?php
$ip = gethostbyname(âwww.google.comâ);
echo $ip;
?>
I cant think what is wrong