#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    13
    Rep Power
    0
    I have developed a flash file (Macromedia Flash 4) and I put at the server. But this flash file can't be downloaded by people (read,copy), unless he/she had registerd the user member.
    So anyone know how to write PHP code to protect the flash file. Thank you.
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>But this flash file can't be downloaded by people (read,copy)
    If this flash file is visible on your page, it's downloadable no matter where you hide it.

    What you can do is to make a preview using GIF animation or whatever, then make a link to download your *.swf file.

    Wait a minute, do you know what is the difference between SWF file and FLA file?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    err, how do you know if they have logged in/registered ?
    if you are running sessions or place a cookie on them then just have an if () stmt in your page that checks to see if they are a member, if so, they can download/see the link whatever if not, they dont even know its there

    hth

    ------------------
    cheers
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    13
    Rep Power
    0
    for example
    i put my happy.swf at path "www.happy.com/flash/myfile/"

    if a user browse the file:"www.happy.com/flash/myfile/happy.swf"

    then this person know the path, sure he can download it.

    So it is no secure...

    what I do is I got a table to keep user name and password. then if people login, then set cookie. So I am going to protect this file.

    so how I going to do, thank you
  8. #5
  9. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>then this person know the path, sure he can download it.

    You can simply use htaccess+htpasswd to protect just your 'myfile' directory.

Similar Threads

  1. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 09:27 AM
  2. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 07:06 AM
  3. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 08:42 PM
  4. HTML frames in flash, etc.
    By anubite in forum Flash Help
    Replies: 1
    Last Post: February 3rd, 2004, 01:15 AM
  5. passing variables from a txt file to flash
    By matto in forum Flash Help
    Replies: 1
    Last Post: January 20th, 2004, 12:25 PM

IMN logo majestic logo threadwatch logo seochat tools logo