Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

I want to search the local C drive for *.pst file

Javascript coding ..

Moderators: macek, egami, gesf

I want to search the local C drive for *.pst file

Postby s_narkar » Thu May 19, 2005 2:54 am

Hello all,

I will explain you all in breif what i want to do.
There will be one link or button. when the user clicks on it. The new windows open in which i have to search the local drive "C" of that user and get the list of all pst files.

Is this possible in PHP? If not possible then what's the other way.

Please reply asap.

Thanks.
:help:
User avatar
s_narkar
New php-forum User
New php-forum User
 
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm

Re: I want to search the local C drive for *.pst file

Postby WiZARD » Thu May 19, 2005 9:42 pm

s_narkar wrote:Hello all,

I will explain you all in breif what i want to do.
There will be one link or button. when the user clicks on it. The new windows open in which i have to search the local drive "C" of that user and get the list of all pst files.

Is this possible in PHP? If not possible then what's the other way.

Please reply asap.

Thanks.
:help:

You are may use system for run external (OS shell)
manual:
system -- Execute an external program and display the output
see for more info at the URL:http://ua2.php.net/system
googLuck
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby sadisticmachine » Wed May 25, 2005 4:33 am

I believe that is still a command on the server.

Is this beyond the scope of a Java applet?
sadisticmachine
New php-forum User
New php-forum User
 
Posts: 109
Joined: Tue Nov 02, 2004 5:33 am

Postby ruturajv » Thu May 26, 2005 2:30 am

sadisticmachine wrote:I believe that is still a command on the server.

Is this beyond the scope of a Java applet?

yes JAVA can do it NOT javascript
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby swirlee » Thu May 26, 2005 10:09 am

ruturajv wrote:yes JAVA can do it NOT javascript


Are you sure? You're correct about JavaScript, of course, but I thought that in-browser Java applets ran inside a "sandbox" so that it could not access files on the client machine without permission.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby gesf » Sat May 28, 2005 4:16 pm

I think both Java and javascript can't do it!
User avatar
gesf
Moderator
Moderator
 
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby Alexej Kubarev » Sun May 29, 2005 2:02 am

Im pretty sure that none of them can.. as it will be a breach in security and theefore is blocked (had that discussion before)
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby ruturajv » Sun May 29, 2005 7:36 pm

Javascript definately can't do it .... (Im dead sure about it... If somebody has any other links that prove I'm wrong please let me know... :) )
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Can anyone help me out

Postby s_narkar » Mon May 30, 2005 9:27 pm

Hello all,

Do any one have a help link that can help me for the java applet coding.

Thanks.
User avatar
s_narkar
New php-forum User
New php-forum User
 
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm

Postby Alexej Kubarev » Tue May 31, 2005 12:50 am

no, as i belive JAVA applets cannot do it as well: it would be a security hole.. and active x... well.. have no idea.. but it will not make any use for you as almost all users do not like to install them..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby s_narkar » Tue May 31, 2005 1:25 am

Do you know any other way in which i can satisfy my requirement. I want to search the pst files from c drive of the user and import the records into database.
User avatar
s_narkar
New php-forum User
New php-forum User
 
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm

Postby Alexej Kubarev » Tue May 31, 2005 1:27 am

no, sorry... i belive the ONLUÝ way is creating an ActiveX component and asking a user to install it, then creating a webservice... it will be quite like a windows Update :)

Hehe.. unfortunatelly i have never created anything simmilar before..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby s_narkar » Tue May 31, 2005 1:33 am

Create ActiveX will work fine on windows but will give problem on mac.
User avatar
s_narkar
New php-forum User
New php-forum User
 
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm

Postby Alexej Kubarev » Tue May 31, 2005 1:36 am

True: but all this is still quite a big problem: i would never let anyone list anything on my PC
Why would you like to do that anyway?!
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby s_narkar » Tue May 31, 2005 1:47 am

Thanks Alexei Kubarev for all your help
User avatar
s_narkar
New php-forum User
New php-forum User
 
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm

Postby Alexej Kubarev » Tue May 31, 2005 1:52 am

You are always welcome
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby ruturajv » Tue May 31, 2005 7:27 pm

hey
If you have Adobe photoshop > 6.0 check their help
it is totally in HTML and Javascript with a search... never got time to see how they search...
must have saved some array... !!
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby Alexej Kubarev » Wed Jun 01, 2005 4:17 am

actually its a simple interrigation with a exe program that will search the LOCAL computer...
Or atleas thats the way i would do it :)
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby s_narkar » Wed Jun 01, 2005 11:14 pm

The photoshop help will not help me because they search the string for the pre-defined array.

Leave out the search for particular file. :(

If the user manually browse the pst file. Can anyone help me to read the pst file. How can i do that. :help:

Waiting for reply.

Thanks in advance
User avatar
s_narkar
New php-forum User
New php-forum User
 
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm

Postby swirlee » Fri Jun 03, 2005 7:05 am

The documentation has a section called Handling file uploads. I recommend you read it.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby popeye » Sat Jul 09, 2005 8:17 pm

Try this post. Point at the C: drive and replace file extension of the file with what you need.

[url]
http://www.php-forum.com/p/viewtopic.ph ... highlight=
[/url]
User avatar
popeye
New php-forum User
New php-forum User
 
Posts: 120
Joined: Sat Jan 03, 2004 7:06 pm
Location: New York, NY


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.