Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    RESOLVED - just with a careful retype and check of all variables. It would appear my editor was pasting in extra characters as well with copy and paste. thanks a lot for all your help and pointing in the right direction.
  2. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    Yes you are right - most of my problem is trying to figure out which page to open the dictionary - to try and figure out what the problem is. The error I have posted in full above. Now I know that I can populate the array above - all is well. Infact retyping out the examples got much further...
  3. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    I got the jpg up now. So all is good here. this still gives error... Something wrong with variables?? <?php if(isset($_POST['upload']) && $_FILES['userfile']['size']>0){ print_r($_FILES['userfile']); $fileName = $_FILES['userfile']['name']; echo $fileName; } ?>
  4. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    back to matters in hand: this seems to be the source of all problems: <?php if(isset($_POST['upload']) && $_FILES['userfile']['size']>0){ print_r($_FILES['userfile']); $fileName = $_FILES['userfile']['name']; echo $fileName; } ?> gives Parse error: syntax error, unexpected T_VARIABLE...
  5. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    ok got it working now Array ( [name] => code_640340_1.txt [type] => text/plain [tmp_name] => /tmp/phpQOIGee [error] => 0 [size] => 429 ) however if I try to upload anything bigger - small photo it doesn't sent.
  6. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    the second script displayed the form fine - no mention of tmp_name. However if I submit anything it does nothing.
  7. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    Well I can't see the error codes as I can not display a page I just get - Parse error: syntax error, unexpected T_STRING in /home/biomagn1/public_html/recommendingpeople.com/ya.php on line 11 It would seem that whenever it sees tmp_name it throws the above error
  8. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    whereever I get mention of tmp_name I get an error in any script I try
  9. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    what's the next stage?
  10. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    that worked (the second one :))
  11. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    Thanks for checking this out. Yes as far as I can see there is no problem with the php - that's what makes it more frustrating. What sort of thing can I look for in my php? I am using php5.2.11 on a remote server. file uploads is on, upload_tmp_dir has no value which from what I have read...
  12. vamonos

    unexpected T_STRING $_FILES['userfile']['tmp_name']

    I have tried several variations of a file upload script but all give me an unexpected T_STRING error with $_FILES['userfile']['tmp_name']. Does anyone know why this might be? For example - from this same page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD>...

Part and Inventory Search

Back
Top