Jump to content

Atom-G

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Atom-G

  1. Atom-G

    Table - one or more

    This is useful to know, thank you!
  2. Atom-G

    Table - one or more

    Hi all,I'm doing a website and it will contain a survey that will be available for the first 2 weeks of each month. Each time, 30 persons will be picked in random to do the survey. Each time, I need to create 30 new row (30 INSERT) in my table and they will contain the answers (eg: user_id, answer1, answer2, answer3, etc.) . But after, let say, 2 years, I will have a LOT of row! like 2 * 12 * 30 ~= 650. What should I do with that? Is it "ok" to have that much data in a mysql table? or should I do a backup in a xml file or something else and try to keep as low data in the table as I can?.Thank you
  3. First of all, thx a lot for all those nice reply.I have a server that can do:- FTP server- MySql- PHPSo this is a good start .All the idea you gave here, is what I already did (I should have mentionned before..). It is good idea. BUT, is this will prevent someone to put exactly this in is adress bar?http://mysite.com/download/thefiles.zip ?No (or if YES, then explain please.. cause I don't understand )So, I am already able to show link or not if the user is logged, or not.Let's say that fileplanet (where we can download a lot of games), we could only find the good adress and type it in to get the demo we want or the full game we want. We would never need any log in, and hackers would have find this way loooooooong ago.I'm pretty sure their is something that can be done with the CHMOD. Like in this screenshot, I can modify on my FTP server those settings ->So perhaps I could only let access to ME, the admin of sites, and give permission to access the files by a php function or somehting... welll, this is where I'm stuck... I think we cannot put files like .zip or .jpg in a database.Thx for all the help again!
  4. edit:lol, tough it was something else....
  5. This is how you add the JS file if you don't want to put it all the source IN your html file. It's like an include: <html><head><script src="/thejsfile.js" type="text/javascript"></script></head><body></body></html>
  6. I think I'll replace notepad2 for notepad++tabbed browsing and more features + always as simple as notepad(1)
  7. Hi all,I've searched a lot about that, received a lot of opinions, but still, I'm unable to Do what someone told me, cause I don't see how to do it OR, won't do what they suggested me, cause it is not "real" protection This is the problem: How to protect files (and perhaps directories, but at least accessing a file) from a "NOT LOGGED USER". So if the user is not logged, he won't be able to reach that file by typing the adress in his browser, for example: http://mywebsite.com/files/thefile.zip. However, if the user have logged in, he will be able to download it.What people suggested: Create directory with name that it is "impossible" for someone to reach it. example: <a href="http://mywebsite.com/eafeakljfhefeaklfh/thefile.zip" target="_blank">http://mywebsite.com/eafeakljfhefeaklfh/thefile.zip</a>. I really don't like this idea... it is still possible to reach it... and I don't want to create those kind of folders... Put a file in a private directory on the server and make it available to only the admin. (modify the CHMOD) I like this idea, but I DON'T know how to do it. Like, I put a file that I can only access (I = admin). So if a user try to access it by a web link, I verify the session (if he is logged). If yes -> then (now this is the problem) have a PHP function that will download the file for the user (I don't know any php function that do this). I think that perhaps if it is me that call the php function on server side, it will consider myself the admin in the CHMOD. Or is there ANY other solution? and good SECURE solution (to prevent people to reach by adress bar any file)? By using PHP and sessions.I know how to protect a folder and ask a username and password (like logging in windows) but this is not what I want... and it is not the power of "session" php offers.THANK YOU! A LOT!
  8. hum, thats kind of nice. We are limited to the image, but not bad at all.Is there any proxy check or something? When I was reading on the net, peopl where saying to look for proxy etc, but not saying what method to use....
  9. Hi all of you,I already did a website in PHP where it will verify 41 websites, if they are online or not. I use simply fopen. But this take a while to load, like up to 10s to 100s.So I would like to make a page in javascript to make it more "instant", always loading page. I tryed using XMLHttpRequest.open but I keep having this error: "Permission denied to call method XMLHttpRequest.open". After reading on the net, I now know that we cannot use this method to access a external website of our domain, for security reason.Now my question is: What other functions/method I could use to verify if a website is offline or not? With XMLHttpRequest.open I was verifying the "if (xx.readyState == 4) & if (xx.status == 200)".What you guys would do?Thank you.
  10. thank you, and my last post was "and use tables?" and not frames. Anyway, thx a lot for the help .
  11. Ok, so you recommend me to learn PHP (wich is ok with me) and use frame?
  12. Hey, I checked the website w3schools and I find the design nice so I decided to check out the code and I saw that there is "like" 4 main table for menu, top logo, main text and menu at right. Ok I understand the code, but how this kind of programming could be good? I think I missed something and thats why:if you modify one option in your left menu, then you need to change EACH internet page with taht new button/internet link. If you use frame, then you only need to change ONE internet page to adjust the menu.Is there something I missed or this is a good way to do?thx for help!
  13. throw your code in here, always better when helping.
  14. ok.... it was just a fast example to easily show the redirect thing. You can copy the code in a html file and in no time understand the way a name works.
  15. Wow for the HTMLGate, nice one. Offer lots of nice services but you still can code without them.For me, I used:Name: Scite wich can be downloaded ->here.Or the HomePage is -> here.Price: FreePlatform: Windows, LinuxDescritption: Very simple. Highlith lots of language (like NotePad2). If you don't want lots of thing in front of you, only a text editor that offer nice highlith, this is a good choice.But thinking of going to HTMLGate
  16. Atom-G

    music

    Well I found a WebPage that shows lot of different ways to play a sound, but still, it doesn't work with FireFox. We miss a plugin (it says Apple Quicktime) but when the "auto download" start, it says no plugin found, and I already have quicktime 7 on my pc. So I don't understant, or FireFox don't support this for now.Here is the webpage showing lots of diferent ways to play a sound, from simple to more complex. WebSite Sound
  17. Atom-G

    music

    If I say this don't work with FireFox.... , any other good idea?
  18. You can put this tag to make a reference in your web page. For example, if you put somewhere in your page (named index.html for this example here) <a name="test">Access</a> and somewhere else you put <a href=./index.html#test>Click Here</a>, than Click Here will become a link and by clicking on it the page will center on the word "Access".Here is a sample code that you can try:<html><head><title>test</title></head><body><a href="./index.html#test">click here</a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><a name="test">test</a>You have been redirected here.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></body></html>
  19. A good HTML editor that I use is Scite, wich can be downloaded ->here.Or the HomePage is -> here.After it is installed, start it and click on language and then Hypertext. Or press F12.
  20. Well, first of all, thx for the nice website you gave; programguru. Also, it seems to work fine now . Don't really know why , but well, thx again.If I may ask another question, what exactly type="image/x-icon" do? I searched on google, but without any good result. I used this type thing because I found it on www.w3schools website.
  21. Hi all,I try to show a favicon for my website, it does show in adress bar, but it doesn't show in Tab bar of FireFox, what i'm doing wrong . Here is the simple code and a weblink also, ctrl+click it to see that yon won't have the favicon (a small camera) in the firefox tab bar.Thx!The Webpage <html><head><title>Test page</title><link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /><meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" /></head><body></p>Test page<p></body></html>
×
×
  • Create New...