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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:15:11+00:00 2026-05-24T06:15:11+00:00

$file=$_FILES[‘import’][‘name’]; $path=’C:/Documents and Settings/Administrator/My Documents/Downloads’.$file; echo $file.’hi’; $dbhost = ‘localhost’; $dbuser = ‘root’; $dbpass

  • 0
$file=$_FILES['import']['name'];
        $path='C:/Documents and Settings/Administrator/My Documents/Downloads'.$file;
echo $file.'hi';
         $dbhost = 'localhost';
  $dbuser = 'root';
  $dbpass = '';
  $dbname = 'test1';
  $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');

mysql_select_db($dbname);

  // Dump table.
//  $query = "DROP TABLE location";
//  $result = @mysql_query ($query);  //runs the query

//  if (mysql_affected_rows() == 1) {  //if it ran ok.
//
//  echo '<p>The database was updated</p>';
//  exit();
//
//  } else {  // if did not run ok.
//    $message = '<p>The database was not updated</p>';
//  }  // end table dump.

  // Create table call_in.
//  $query = "CREATE TABLE location1(id int(255) NOT NULL AUTO_INCREMENT,lat VARCHAR(100),long VARCHAR(100),PRIMARY KEY(id))";
$query="CREATE TABLE `test1`.`location1` (
`id` INT( 255 ) NOT NULL AUTO_INCREMENT ,
`lat` VARCHAR( 1000 ) NOT NULL ,
`long` VARCHAR( 1000 ) NOT NULL ,
`speed` VARCHAR( 1000 ) NOT NULL ,
`time` DATETIME NOT NULL ,
`address` VARCHAR( 1000 ) NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = InnoDB;";
  $result = @mysql_query ($query);  //runs the query

  $query = "LOAD DATA LOCAL INFILE 'D:/technoho_360gps-sqldump.sql' INTO TABLE `location1` FIELDS TERMINATED BY '\', \'' LINES TERMINATED BY '\n' STARTING BY 'INSERT'";
  $result = @mysql_query ($query);  //runs the query
    echo 'hello';

  mysql_close();  // close the database connection.
    }

In this code i have given static system path but i want system file path from file tag.

  • 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-05-24T06:15:12+00:00Added an answer on May 24, 2026 at 6:15 am

    If you are talking about the file path of the uploaded file from the user’s end, i.e., browser’s end, it is not possible.

    You can only get the path of the uploaded file path in the server using php.
    Browser policy don’t allow you to get the actual path of the file on the disk of the user.

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

Sidebar

Related Questions

My search query is something like this SELECT files.id,files.file,files.name,files.uid,files.size,files.downloads,files.deleted,files.descr, files.upload_id,files.thumb,files.category,files.expirydate, MATCH(name,descr) AGAINST ('$all $none
How do I obtain the short path of a file in Windows using python
Perl seems to be killing my array whenever I read a file: my @files
I have a large collection of data in an excel file (and csv files).
The .XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based
When I extract files from a ZIP file created with the Python zipfile module,
There is a data file and some image files that I have to download
Sometimes two image files may be different on a file level, but a human
I observe unmanaged.dll files having a unmanaged.dll.manifest file tagging along. On opening this files
Our app allows multiple files to be selected in a file selection dialog which

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.