标签:mamp
原创文章,转载请注明出处!
最近小学习了一下Mac下的Apache,Mysql,php。这里记录一下,以备忘
在MAMP下测试成功,直接echo返回所数据
Failed to configure for local php debugging
require_once(PRO_ROOT.‘/message/pb_message.php‘);
require_one(PRO_ROOT.‘/message_proto/pb_protohbcommand.php‘);
$l_requestContent = file_getcontents("php://input");
$l_requestCommand = new RequestCommand();
$l_requestCommand->parseFromString($l_requestContent);
echo($l_request->loginRequest()->user_data()->user_id());
alias mysql=‘/Applications/MAMP/Library/bin/mysql‘
if(mysql_num_rows(mysql_query("show databases like ‘"."test_database"."‘"))==1){
drop database test_database;
}
create database test_database;
标签:mamp
原文地址:http://blog.csdn.net/rct1985/article/details/24960689