Warning: file_put_contents(/webroot/code/test.txt): failed to open stream: Read-only file system in /26/579/9j3o/index.php on line 3
2015-12-09
Notice: Undefined offset: 1 in /26/561/8n2d/index.php on line 6
2015-12-08
<?php
$fruit=array('苹果','香蕉','菠萝');
foreach($fruit as $key=>$value){
echo '<br>第'.$key.'值是:'.$value;
}
?>
$fruit=array('苹果','香蕉','菠萝');
foreach($fruit as $key=>$value){
echo '<br>第'.$key.'值是:'.$value;
}
?>
2015-12-07
$host = '127.0.0.1';
$user = 'code1';
$pass = '';
//在这里编写数据库连接代码
try{
$link = mysql_connect($host,$user,$pass);
throw new Exception('connect fail');
}catch(Exception $e){
echo $e->getMessage();
}
他喵的我居然connect fail了。
$user = 'code1';
$pass = '';
//在这里编写数据库连接代码
try{
$link = mysql_connect($host,$user,$pass);
throw new Exception('connect fail');
}catch(Exception $e){
echo $e->getMessage();
}
他喵的我居然connect fail了。
2015-12-04