Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 5th, 2004, 03:39 AM
Registered User
Join Date: Jul 2004
Location: , , Ireland.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to joconnor Send a message via Yahoo to joconnor
Default getting path of file using PHP or Javascript

i have a form where the user can choose a file to be executed by browsing their hard drive. the code i'm using to alloe them to do this is <INPUT name=sourcebutton TYPE="file" class="browse" value="Browse">. i need the path of the file in order to execute the file. any help is greatly appreciated. i'm relativly new to PHP and have never used the file chooser before.
thanx in advance
Reply With Quote
  #2 (permalink)  
Old September 25th, 2004, 11:31 AM
Authorized User
Join Date: Aug 2003
Location: Bay City, mi, USA.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to dkittell Send a message via AIM to dkittell Send a message via Yahoo to dkittell

Are you looking to upload the file and then run it or run a file that is on their computer on your site such as a word find that uses a text doc from a person's comp.

David Kittell
Reply With Quote
  #3 (permalink)  
Old September 27th, 2004, 10:09 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , USA.
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo

first of all there is no "value" attribute for <input type="file">. if you add <input type="file"> you will notice there's a button next to the textbox with "browse" value, use that to browse for the file

www.campusgrind.com the college portal
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid report file path rwalker Crystal Reports 1 January 28th, 2009 10:49 AM
Knowing File Path x_ray VB.NET 2002/2003 Basics 8 February 15th, 2006 04:12 PM
Getting path of the file zorglub76 C# 4 December 23rd, 2005 04:25 AM
Get File path maxpotters Excel VBA 4 April 6th, 2005 01:19 PM
How to get the File Path DarthSith ASP.NET 1.0 and 1.1 Basics 2 October 29th, 2004 02:24 PM

All times are GMT -4. The time now is 04:24 AM.

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