473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do you retrive drives and net work connections?

I want to retrieve a list of all the drives (HD, CD-ROM, Removable,
etc) and also network connections/mappings and shares connected to the
computer which is Windows XP.

I am trying to avoid using FileSystemObject if possible. Is there
anyway of doing this with PHP extensions?

My other thought would be to use exec() or a Java applet.

Any one of code that does this already or have any ideas how it could
be done?

Thanks.

Jun 8 '06 #1
4 1318
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.

Jun 8 '06 #2

milahu wrote:
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.


Only the client's. What would the command be to use exec() to get list
of drives?

Jun 9 '06 #3
"ImOk" <j_********@yahoo.com> wrote:

milahu wrote:
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.


Only the client's. What would the command be to use exec() to get list
of drives?


You can't do it. All of your PHP code, including the exec() function, runs
on the SERVER.

To enumerate the disk drives on a client computer, you have to send a
program to the client. That means using a Java or ActiveX applet. The
user will have to specifically override the security settings to allow that
to happen.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jun 10 '06 #4
Sorry I confused this. You are right it would be the SERVER i.e. the
computer PHP is actiually executing on. I would like to have PHP return
back to me the list of drives and shares to my browser.

Tim Roberts wrote:
"ImOk" <j_********@yahoo.com> wrote:

milahu wrote:
Do you want the client's or the server's drives? To get the latter one,
you could use PHP's exec, otherwise you need a Java Applet.


Only the client's. What would the command be to use exec() to get list
of drives?


You can't do it. All of your PHP code, including the exec() function, runs
on the SERVER.

To enumerate the disk drives on a client computer, you have to send a
program to the client. That means using a Java or ActiveX applet. The
user will have to specifically override the security settings to allow that
to happen.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.


Jun 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bruno Alexandre | last post by:
Hi guys, withou using SP, I want to be able to add a Parameter to the SQL Query and retrive the Recordset so I can use the Paging property under the recorset object.... how can I do this? I'm...
36
by: Ron Johnson | last post by:
http://hardware.devchannel.org/hardwarechannel/03/10/20/1953249.shtml?tid=20&tid=38&tid=49 -- ----------------------------------------------------------------- Ron Johnson, Jr....
4
by: Phillip N Rounds | last post by:
I need to eumerate all available drives in a C# Windows Form application ( and then of course the directory tree, but that's not the problem) My question is, how to I enumerate all the available...
2
by: Terry | last post by:
Any .dll or COM+ for .Net can help me retrive data from a Access file? The table contain several columns and the last one is a container which I store Article; because each article is a little bit...
2
by: ImOk | last post by:
WHen I run this under Windows I get the Count of drives but then I get an error message on the Reset() when I try to enumerate. Does this work for anyone? $fs = new...
3
by: =?Utf-8?B?UGV0ZXIgSiwgU2Nhbmlh?= | last post by:
Hello I'm looking for an solution about how to retrive data from an client side located Excel document by using an ASP.Net application. I don't want to upload the file to the server. I just want...
3
by: Sabine | last post by:
Hi there, I would need your help again. I am using Dev Avish's API function "Search for a file" http://www.mvps.org/access/api/api0006.htm to find a file on my computer which works well. As...
1
idsanjeev
by: idsanjeev | last post by:
hello i wants to retrive data in textarea like input text but in textarea value is not work so what should be use to retrive textarea value after any error <input type="text" name="name"...
8
by: Salad | last post by:
I was asked to get my daughter a flash drive. She needs to use it to copy files to it so she can transfer the files at school to her desktop at home. I've never used one but I figure some of...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.