Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:45:24+00:00 2026-06-17T21:45:24+00:00

My site throws an Error 500 when uploading a pdf. I have gone into

  • 0

My site throws an Error 500 when uploading a pdf.

I have gone into the php.ini page and changed

file_uploads = On
upload_max_filesize = 2m

to

file_uploads = On
upload_max_filesize = 100m

Yet it still throws the 500 error. I’m at a loss as to why my server won’t allow this.

I should also state the file I’m testing this with is only 50kb.

EDIT:


The source of this error has lead to another question I had but wasn’t quite ready to figure it out. Anyways, here it goes.

I am having the user verify the contents of the pdf they uploaded, and then I want to pass it to another page to save the file to a local drive.

The error the log is throwing is

PHP Parse error:  syntax error, unexpected ';' in updatePDF-check.php on line 36

Line 36 is as follows

echo "<input type = 'hidden' name = 'uploadedFile' value = '".$_FILES['file']."'">;

Which leads to the question. How should I have this page display the file, and then pass it on to the next page so that it can be saved?

double edit, fixed the typo in the above line, but my question still stands I believe

echo "<input type = 'hidden' name = 'uploadedFile' value = '".$_FILES['file']."'>";

It should be worth stating that display_errors was also turned off in the php.ini file. So I have turned that on as well

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:45:25+00:00Added an answer on June 17, 2026 at 9:45 pm

    Your parse error will be fixed with this:

    echo "<input type = 'hidden' name = 'uploadedFile' value = '".$_FILES['file']."'>";
    

    Your > was one char too far to the right 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php function which inserts a searchbar into each page on a
site.com/link?p=2 give $_GET['p']==2 even though i've already made site.com/link rewrite to site.com/index.php?page=link So, i'm
I have a simple site with just 1 page that has a form with
I'm baffled. My site randomly throws the following error: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException'
I have a php site that works fine in FireFox and Chrome, but breaks
I am currently working on a PHP/MySQl application. A 500 error is thrown if
I've got a site that throws a Content Encoding Error in the browser if
Consider the following trivial HTML page that throws an error: <html><head><script> throw new Error('oops');
I've got a web site that sporadically throws the following error: Server Error in
Possible Duplicate: .htaccess throws a 500 error I am using CodeIgniter and need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.