簡單的php文件上傳示例在mac中不起作用。作爲一個Java開發人員很難與scrpting語言php文件上傳不能在mac中工作
<html>
<head>
<title>File Upload Form</title>
</head>
<body>
This form allows you to upload a file to the server.<br>
<form action="getfile.php" enctype="multipart/form-data" method="post"><br>
Type (or select) Filename: <input type="file" name="uploadFile">
<input type="submit" value="Upload File">
</form>
</body>
</html>
檢查錯誤和getfile.php作爲
<html>
<head>
<title>Process Uploaded File</title>
</head>
<body>
<?php
move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'],
"uploads/{$_FILES['uploadFile'] ['name']}")
?>
</body>
</html>
我已經調查谷歌設置爲文件大小的一切ACL問題或php.ini文件看起來OK(確定)我 ACL的給了777權限文檔目錄 關於php.ini中檢查的文件上傳大小PARAMS和使用50M 和文件試圖爲100KB的圖像文件
任何人都可以幫我在Mac上設置此?
嘗試啓用錯誤報告'的error_reporting(E_ALL)'或使用try catch來獲取錯誤。 –