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 8756375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:04:23+00:00 2026-06-13T14:04:23+00:00

I am using PHPExcel plugin for reading excel and storing values in database.Its really

  • 0

I am using PHPExcel plugin for reading excel and storing values in database.Its really cool and works very fine.But I have an issue when I am uploading an excel sheet from different location on my machine.
I guess it is bcoz,the PHPExcel.php has a constant defined

if (!defined('PHPEXCEL_ROOT')) {
   define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
   require(PHPEXCEL_ROOT .'PHPExcel/Autoloader.php');
} 

I would like to know how can I upload and read file from any location?Also,I am not saving my file after uploading,but just reading and saving records to DB, as the purpose is to just enter the records into a database.How can I fix it? The documentation is really good and extensive but I am a bit short of time to explore it and also a newbie to Obj Oriented PHP
Thanks for your time.

PS : I am not storing the file on the server,just reading and fetching the data from it.

  • 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-13T14:04:24+00:00Added an answer on June 13, 2026 at 2:04 pm

    @Mark Baker
    Your comments helped me a lot and I fixed the issue.I was trying actually to reduce the load by not uploading the file.Instead just reading it and saving it.But it is not possible as we have to have the file physically located on the serve at the time of operation.
    I have changed my approach and now upload the file,read it and then unlink the file from the server after the operations are over.

    Thank you for the help and I appreciate your efforts in answering folks over PHPExcel issues.It is indeed a great tool to work on and looking forward to explore it more.

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

Sidebar

Related Questions

I'm using phpexcel to create some sheets and everything is working fine, but there's
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
I am currently working on reading a excel using php and storing those records
I'm using the PHPExcel lib which it seems to do great jobs, but in
I am using PHPExcel library to read/write excel files. Now I want to generate
I'm using the PHPExcel library to open an existing Excel spreadsheet then create a
I am using PHPExcel to export data from my PHP page to Excel. I
I'm building a WordPress plugin using PHPExcel to export reports of student attendance. So
I am using the PHPExcel framework to try to write out a very large
Here's the code i'm using right now to set the cell values. It works

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.