Welcome! Log In Create A New Profile

Advanced

php upload program gives 404 not found message

Posted by wrknight 
php upload program gives 404 not found message
November 16, 2015 12:34PM
The attached program (index.php) results in a 404 Not Found message. The exact message in the nginx error log is as follows:

2015/11/16 11:44:53 [error] 17711#17711: *815 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '{', expecting ',' or ';' in /var/www/workspace/index.php on line 11" while reading response header from upstream, client: 127.0.0.1, server: wip, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "wip"

At this point, I cannot find the uploaded file anywhere and suspect that no file was uploaded anywhere. I suspect the problem has to do with the location of $_FILE, but I am at a loss to identify or locate any file or directory where the file was supposed to be uploaded.

Can anyone tell me where to find the uploaded file and/or if it got uploaded?
Attachments:
open | download - index.php (476 bytes)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready