rahulkadukar Posted April 27, 2010 Share Posted April 27, 2010 I got a script that is used to display recursively the contents of a directory .When I tested it on my machine using XAMPP everything was working fine. I have a text box where I input the name of directory which in my case can sometimes be as simple as "C:/". When I uploaded this PHP script on a server and tried to give the same Input I get the Error that Directory does not exist. I think the problem is a that since the script is now on some server hence it is not able to detect the fact that "C:/" is a directory because such a directory does not exist on the server. How can I solve this Problem ? Any help would be appreciated. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/199916-need-help-with-directory-listing/ Share on other sites More sharing options...
dgoosens Posted April 27, 2010 Share Posted April 27, 2010 indeed the script runs on the server and it is impossible for it to directly interact with you personal computer... this can not be done with PHP... Link to comment https://forums.phpfreaks.com/topic/199916-need-help-with-directory-listing/#findComment-1049298 Share on other sites More sharing options...
rahulkadukar Posted April 27, 2010 Author Share Posted April 27, 2010 Thanks for the reply, so basically there is no way for this to work, I mean it is hence impossible to interact with my PC from PHP through a server. Is there any other way to get this situation to work ? Link to comment https://forums.phpfreaks.com/topic/199916-need-help-with-directory-listing/#findComment-1049300 Share on other sites More sharing options...
dgoosens Posted April 27, 2010 Share Posted April 27, 2010 depends on what you are trying to achieve... this kind of things should be possible with Java or Flash... client side scripting languages Link to comment https://forums.phpfreaks.com/topic/199916-need-help-with-directory-listing/#findComment-1049303 Share on other sites More sharing options...
rahulkadukar Posted April 27, 2010 Author Share Posted April 27, 2010 depends on what you are trying to achieve... this kind of things should be possible with Java or Flash... client side scripting languages Ok so basically I will need to use Flash or Java, I wanted to create a web page where if a user Enters the name of any directory on their machine then the contents of that directory should be displayed in the browser. Thanks for the help Link to comment https://forums.phpfreaks.com/topic/199916-need-help-with-directory-listing/#findComment-1049306 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.