I know that it is possible to launch a file browser from PHP script (when selecting the file to upload), but is it possible to Is it possbile to launch a 'Browse for Folder' dialog box from PHP script?

Since I did not find any functionality in the PHP, I have checked out PHPGtk and WinBinder for the above option.

Recommended Answers

All 3 Replies

PHP is server-side. It never interacts with the client directly, there is no way it can open any dialog, that's up to Javascript and HTML.

Sheesh!
Allright, getting into the correct context ----

PHP creates the HTML and the JavaScript codes on the clients computer. So, is there any way the the above two can do what I need.

Have you used PHPGTK?

Are you wanting a list of folders on the clients computer or the server? If server, then you can use php, html, and some javascript to create a pop-up kind of like that (same functionality).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.