0

Hi All...

I am posting here in hopes that someone may be able to help me with this problem.

I am writing an application with ExtJS and PHP.

Now, I have a form that gets input from the users and one of the input required is a folder path.
Just a path, and not the actual file name itself.
I am able to code in ExtJS to get the filename (via file browser), but however FireFox is not returning the whole path to my form, just t he filename.

I've asked in the ExtJS forum, and apparently I can't do it with plain html and Javascript. I'd need flash or java.
Can someone advice me on how to start with implementing flash/java with my php and ExtJs?
Or if anyone have any other ideas on how to go about it?

Many many thanks! ;)

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by diafol
0

Don't make simple things complicated.

What's your application ? And what do you do with the path ?

0

Get the current working directory.

$dirPath = getcwd();
$UserPath = $dirPath.'/[Users]/';

Edited by phpbeginners: n/a

0

I need to let the users specify their home path to save their work in.
And ideally, they won't need to type it in.
And current working directory won't work in this case.
Thans anyway! ;)

0

Is the folder path a relative path within your domain?

If all your folders are under your domain, why can't you access them? It doesn't seem to follow. Could you elaborate?

Ideally an user would specify an username. That username, if free, is 'cleaned' and used as a folder name. Obviously, you need to protect the contents of the folder from others, but that should be straightforward.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.