Difference in Forward proxy and Reverse proxy

I came across this problem while reading the architecture of TIVOLI Access Management.Well, after discussing a while with people i found the correct difference between Forward Proxy and Reverse Proxy and the advantage of using them.

Warning: MySQL server has gone away query:INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname,

How to handle this error: Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '<em>MySQL server has gone away\nquery: UPDATE cache SET data =&amp;#039;a:4.... in C:\xampp\htdocs\studentindia\includes\database.mysql.inc on line 172 Solution:

Convert a string of hexadecimal digits into its equivalent integer values in C (can use atoi)

Problem : Write a function htoi(s) which converts a string of hexadecimal digits(including optional 0X) into its equivalent integer value.The allowable digits are 0 to 9, a through f. I suggest a simple solution of this problem.