【发布时间】:2012-01-27 04:49:15
【问题描述】:
我似乎无法让以下代码工作?
$playerfileLocation = "../wp-content/gallery/playerphotos/' . $playerid . '.jpg";
if(file_exits($playerfileLocation))
echo "The file File exists";
else
echo "The file File does not exist";
“playerid”字段是一个被传递的数字。
我似乎无法让它工作。呃!
【问题讨论】:
-
这个相对路径有效吗?
-
否...页面在到达 if 语句后停止。我在此“测试”下方有未显示的文本。