<? php
$pictures=array('tire.jpg','oil.jpg','spark_plug.jpg',
'door.jpg','steering_wheel.jpg',
'thermostat.jpg','wiper_blage.jpg',
'gasket.jpg','brake_pad.jpg');
shuffle($pictures);
?>
<html>
<head>
<title>Bob's Auto Parts</title>
</head>
<body><h1>Bob's Auto Parts</h1>
<div align="center">
<table width=100%>
<tr>
<?php
for($i=0;$i<3;$i++){
echo "<td align=\"center\"><img src=\"";
echo $pictures[$i];
echo "\"/></td>";
}?>
</tr>
</table>
</div>
</body>Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\bobs_front_page.php on line 3
$pictures=array('tire.jpg','oil.jpg','spark_plug.jpg',
'door.jpg','steering_wheel.jpg',
'thermostat.jpg','wiper_blage.jpg',
'gasket.jpg','brake_pad.jpg');
shuffle($pictures);
?>
<html>
<head>
<title>Bob's Auto Parts</title>
</head>
<body><h1>Bob's Auto Parts</h1>
<div align="center">
<table width=100%>
<tr>
<?php
for($i=0;$i<3;$i++){
echo "<td align=\"center\"><img src=\"";
echo $pictures[$i];
echo "\"/></td>";
}?>
</tr>
</table>
</div>
</body>Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\bobs_front_page.php on line 3
地址
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pictures
但放在C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pictures不行