Jump to content

<<<ENDHTML:


vytas

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...