Upload File Code Problems ... Please help

    Date: 08/23/05 (PHP Community)    Keywords: php, web

    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!

    Source: http://www.livejournal.com/community/php/338850.html

« Source File Location || Stupid question I'm... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home