代码改变世界

随笔分类 -  PHP

how to debug smarty with firebug

2012-07-24 13:56 by wildboar, 628 阅读, 收藏,
摘要: the article comes from the link following, I just want to backup it in my blog. http://www.garrickcheung.com/javascript/smarty-debug-with-firebug/ 1 {capture name='_smarty_debug' assign=debug_output} 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/ 阅读全文

wierd issue - just marked it when I am free to trace the source code

2012-06-28 13:56 by wildboar, 266 阅读, 收藏,
摘要: I create a function and use it illustrated as the image belowbut when trace the source code I found it was blocked on that line and the application run into a wierd function in the smarty ( I use the smarty in my project)I got the reason after investigation for a while, it is because of missing the 阅读全文

the debug function could not work in NetBeans IDE

2012-06-17 10:03 by wildboar, 180 阅读, 收藏,
摘要: 阅读全文

how to input the single quote in the phpmyadmin

2012-05-18 17:12 by wildboar, 205 阅读, 收藏,
摘要: I am a fresh in the PHP and MySql, I find the single quote in strangousin the phpmyadminbut when I enter the single quote manully, I find there are difference between them. 阅读全文

MySql.Data.MySqlClient.MySqlException: The user specified as a definer ('root'@'%') does not exist

2012-05-17 09:39 by wildboar, 1936 阅读, 收藏,
摘要: All the settings were fine and I was wondering what’s causing the problem. At first rush I thought that it could be a cache, as I had requested recently to have xcache on our server.But it wasn’t the case. The error was much more stupid than even one can imagine.That specific script uses a stored pr 阅读全文

SQLSTATE[HY000] [2002] Can't connect to local MySQL server

2011-08-02 22:41 by wildboar, 2673 阅读, 收藏,
摘要: Just need to use 127.0.0.1 instead of 'localhost' in the configuration fileI just know the solution above, but I dont know the reason, I google this issue and find the url belowhttp://forums.zend.com/viewtopic.php?f=69&t=1832It gives me more details about this issue, but I still didn' 阅读全文

Utime failed: Permission denied in Smarty/sysplugins/smarty_internal_template.php on line xxx

2011-08-02 22:38 by wildboar, 1340 阅读, 收藏,
摘要: Just change the source code followingsif ($saved_timestamp = $this->getCompiledTimestamp()) {to the below$saved_timestamp = $this->getCompiledTimestamp();if (saved_timestamp) { there is an useful article for this issue on smarty forumhttp://www.smarty.net/forums/viewtopic.php?p=69488 阅读全文

Mysql Error Code : 1436 Thread stack overrun

2011-07-02 23:15 by wildboar, 4946 阅读, 收藏,
摘要: I meet with the error while calling stored procedures from the MySql in my Mac. It similar as the description below:ERRNO: 256TEXT: SQLSTATE[HY000]: General error: 1436 Thread stack overrun: 4904 bytes used of a 131072 byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to sp 阅读全文