vytas Posted April 27, 2007 Share Posted April 27, 2007 A friend of mine got some PHP codes from a site , and he needed to do the configuration , like login in and stuff.So i helped him , and i saw this at the page.if(!(@mysql_connect()) && @mysql_select_db()){ <<<ENDHTML: ENDHTML;}so my question is what does the @ sign do and the <<<ENDHTML Link to comment Share on other sites More sharing options...
zppblood Posted April 27, 2007 Share Posted April 27, 2007 The '@' is an error suppression operator that used on anything that gives a value. So if mysql_connect or mysql_select_db would to give an error, the '@' would hide the error from the user.I don't know for sure about the '<<<', but believe it could be the heredoc syntax. Link to comment Share on other sites More sharing options...
murfitUK Posted April 28, 2007 Share Posted April 28, 2007 Is <<ENDHTML something to do with the cgi-perl language?http://www.pageresource.com/cgirec/ptut4.htm Link to comment Share on other sites More sharing options...
Mr_CHISOL Posted April 28, 2007 Share Posted April 28, 2007 http://php.net/manual/en/language.types.st....syntax.heredoc Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.