For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > September 2007 > Re: [PHP-WIN] path + filename









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-WIN] path + filename
John Mertic

2007-09-05, 7:01 pm

That once again is entirely determined by the browser; PHP only gets
what's the the $_FILES['frmNewsDocument'] array.

That said, perhaps in the onsubmit event of the form you could stick
some javascript in that pushed the full path into another hidden form
variable.

On 9/5/07, Gustav Wiberg <gustav@hmn.se> wrote:
> Hi!
>
>
> From a browse/file-button in a html-form, how Do I retrieve the actual name including the path to it???
>
> I don't want just filename.doc.
>
>
> This would returnthe filename only...
> $doc = $_FILES['frmNewsDocument']['name'];
>
>
> I want to retrieve c:\program\filename.doc
>
>
> Best regards
> /Gustav Wiberg
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.5/990 - Release Date: 2007-09-04 22:36
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."

-Mark Twain
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com