SitePoint Sponsor

User Tag List

Results 1 to 20 of 20

Hybrid View

  1. #1
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Check files on users computer

    Hello, can I use JS to check for files on the users computer?

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no

  3. #3
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you know what language I could use to do this?

  4. #4
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    some active script like spywares

  5. #5
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I just wanted to check for an image?

  6. #6
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    u cant enter into other computers without hacks neither for an image
    im sorry

  7. #7
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do web sites have alert boxes that tell you "You must download this first before using our site". The annoying sites you want to murder? Once you download it, they STHU?

    No, I dont want to do this. I am building a game, and I want to store some images & other files on the users machine. I was hoping to make the user download the files before playing. Any ideas how those annoying sites do it?

  8. #8
    SitePoint Evangelist
    Join Date
    May 2004
    Location
    Germany
    Posts
    550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by augathra
    No, I dont want to do this. I am building a game, and I want to store some images & other files on the users machine. I was hoping to make the user download the files before playing. Any ideas how those annoying sites do it?

    Give them a link to a zip file with the images for download. Then in their profile they can store the path to the images and you can have your script creating the links.
    Say you save the path in the session, then you check if it is set, if yes use it, if not use the images on the server.

    I think this is how all the browsergames do it

    P.S. I come from the php Forum, so no js in my answer

  9. #9
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha i like the descriptions too. Thanks for the suggestion Daimaju. I was really just trying to save a small portion of bandwidth, as I wanted a fairly graphical game. I could make an installer that goes to the Program Files, but the people that have not installed it won't see the graphics.

    So this brings me to another question: =)

    Could I use PHP, scrambled in one of those scrambler things to hide sources, the user downloads it, sends a MySQL query to my server updating their profile. Then they could play?

  10. #10
    SitePoint Addict
    Join Date
    Jan 2004
    Location
    Colorado Springs
    Posts
    308
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It can be done, it's just not widely known. There is no tutorial for it, or support for it because it would grant access to knowledge on how to plant spyware into one's computer.

    Good luck though.

  11. #11
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try search the install shield scripts!
    its programmed in c#

  12. #12
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nekeno, can it be done with PHP/JS, if you know, or do I have to use something like Java or C++?

  13. #13
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you really think you can go rumaging around a user's computer and look for files like:

    "My Tax Returns and Net Worth for the last 10 years"

    "My Passwords, Bank Acount Numbers, and Online Trading Account Access Codes"

    "Pending Drug deals over $1 million"

    "Pending Drug deals under $1 million"

    "Corporate Structure of my World Wide Drug Empire"

    I don't think many people would be browsing the internet if you could do that with javascript.

  14. #14
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by 7stud
    Do you really think you can go rumaging around a user's computer and look for files like:

    "My Tax Returns and Net Worth for the last 10 years"

    "My Passwords, Bank Acount Numbers, and Online Trading Account Access Codes"

    "Pending Drug deals over $1 million"

    "Pending Drug deals under $1 million"

    "Corporate Structure of my World Wide Drug Empire"

    I don't think many people would be browsing the internet if you could do that with javascript.
    i like the description about files on your computer

  15. #15
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Exactly. It is a security issue and it makes sense that a web page shouldn't have access to that kind of capabilities. If you want to do this you'll need to get your users to download and install a special separate application to do this for you. If you want to do it in IE only (and thus limit your target audience) I wouldn't be surprised is you could do it with active X. After all, since when did active X care about security?

  16. #16
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stymiee
    I wouldn't be surprised is you could do it with active X.
    That would be a yes

    augathra: I think your best bet would be to write a real application as a window (or otherwise) executable, which could talk to your script via the internet. Just tell your users that they have to install the game forst, don't try and just hack into their computerrs without telling them!

    Douglas
    Hello World

  17. #17
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Naw, Ill just keep all files server side. Thanks for all the replies.

  18. #18
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On second thought, maybe ill just ask the user if they want to store the files locally or use the ones on the server.

    But if anyone wants to tell me if it's *possible* to use a PHP file like I described above to update their status, be my guest!

  19. #19
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by augathra
    But if anyone wants to tell me if it's *possible* to use a PHP file like I described above to update their status, be my guest!
    If you want to have a game running on someone'scomputer... I really don't think it should be written in PHP. If it was just text based.. then yea it could be possible. Otherwise you want something that can be run on the client side, say a Flash movie of an application written in Delphi or C# or something.Delphi and C# both have tools you could use to talk to a server running a PHP script, so you could still do authentication and stuff server side using PHP.

    Have a look at http://www.globulos.com/ for an example of a game written in Flash which talks to a server. Your server could be a PHP script.

    hth,
    Douglas
    Hello World

  20. #20
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is mostly text based. Ill look into making it client anyways. Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •