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

Javascript coding ..

Moderators: egami, macek, gesf

Post Reply
User avatar
s_narkar
New php-forum User
New php-forum User
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm
Contact:

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
WiZARD
Moderator
Moderator
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

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
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

sadisticmachine
New php-forum User
New php-forum User
Posts: 109
Joined: Tue Nov 02, 2004 5:33 am

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?

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

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
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

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.
Image

User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Sat May 28, 2005 4:16 pm

I think both Java and javascript can't do it!
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

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)
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

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
s_narkar
New php-forum User
New php-forum User
Posts: 20
Joined: Tue Nov 02, 2004 11:29 pm
Contact:

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
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

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..
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

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

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
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

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..
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

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

Tue May 31, 2005 1:33 am

Create ActiveX will work fine on windows but will give problem on mac.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

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?!
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

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

Tue May 31, 2005 1:47 am

Thanks Alexei Kubarev for all your help

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Tue May 31, 2005 1:52 am

You are always welcome
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

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
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

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 :)
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

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

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
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Fri Jun 03, 2005 7:05 am

The documentation has a section called Handling file uploads. I recommend you read it.
Image

User avatar
popeye
New php-forum User
New php-forum User
Posts: 121
Joined: Sat Jan 03, 2004 7:06 pm
Location: New York, NY

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]
The greatest enemy of knowledge is
not ignorance; it is the illusion of knowledge.
-Stephen Hawking

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest