Image

Imagespazzykat wrote in Imagephp

Upload File Code Problems ... Please help

Hi, I been trying to write code that uploads files onto a server. I have a folder named "upload" in the same folder with the two files.

The first file is test.php. Code: test.php
The second file is getfile.php. Code: getfile.php

I get this error when I try to upload the file: Parse error: parse error, unexpected '\"' in /Library/WebServer/Documents/wxrats/Website/getfile.php on line 9

I got the information from: PHP Tutorial
I also found similar code O'Reilly's PHP Cookbook.

Ask many friends (online).

I am desperate and annoyed. IT IS 8 LINES OF FREAKING CODE! =((

I just need my webpage upload files to a server. if anyone has another solution ... PLEASE HELP!

~Kat

::EDIT:: I figured it out. There were some invisible characters before the "../upload! Yay for copy and paste evil funtime!