can't get file path from file

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

ppkkyaw
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Aug 21, 2012 4:25 pm

can't get file path from file

Postby ppkkyaw » Sun Oct 28, 2012 6:56 pm

hey guys

I can't get file path and file name when I browse file in php
here is my code

<?php
$a=$_GET[$_FILES['ImgBrowser']];
echo $a;
?>
<html>
<head></head>

<body>
<form action="SaveImg.php" method="get" name="aaa">
<input type="file" name="ImgBrowser"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>


and I would like to get select file name and it file path.
example. I select one file from D:\User\Image\aa.txt
I would like to get file path as D:\User\Image
and file name as aa.txt

help me guys

ppkkyaw
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Aug 21, 2012 4:25 pm

Re: can't get file path from file

Postby ppkkyaw » Tue Nov 06, 2012 4:55 pm

what do u want to say?

MeroD
New php-forum User
New php-forum User
Posts: 53
Joined: Wed Oct 10, 2012 12:14 am

Re: can't get file path from file

Postby MeroD » Wed Nov 07, 2012 12:31 am

Maybe looking through this tutorial may help:
http://www.dreamincode.net/forums/topic ... -with-php/

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: can't get file path from file

Postby seandisanti » Wed Nov 07, 2012 2:45 pm

jinijames wrote:source files/
controller/
ctrl_showData.php
model/
Database.class.php
***links removed***


I get that you're just making random posts to spam for your site, but if people who see them think that you're retarded and make the assumption that the other developers you're advertising for are too, how does that help the business at all? Or are you doing it just for link purposes for SEO? I hope when a moderator actually addresses your crap they delete all of your posts too.
</rant>


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron