Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2007, 05:49 AM
Registered User
 
Join Date: Nov 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default File Upload question - source directory

Hi

Okay, so my file uploading script works fine.

Its EASY to record the original filename of the source file by using-
echo $_FILES['userfile']['name']

BUT does anyone know how to record the original directory it was found?

I am trying to create a system that uploads a bulk of files, scans the documents for hyperlinks between those documents. But for it to work properly, I need to record the directory structure between the files...

Thanks for the help!

 
Old February 23rd, 2007, 10:06 AM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Do you mean you want to save the location where the file came from(which would not make much sense) or do you want to save the location of the file when it's uploaded.

In either way you need a database. You also could use xml to store these locations but a database is easier.

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.





Similar Threads
Thread Thread Starter Forum Replies Last Post
File Upload Question Remains Unaswered Ron Howerton ASP.NET 1.0 and 1.1 Basics 23 October 25th, 2006 08:48 AM
File Upload Question? Ron Howerton ASP.NET 1.0 and 1.1 Basics 17 October 23rd, 2006 01:08 PM
File Upload Question Ron Howerton ASP.NET 2.0 Basics 3 October 23rd, 2006 01:06 PM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
Q. How do I upload a file to a directory? richard.york PHP FAQs 0 April 8th, 2004 05:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.