Search results

  1. S

    How do I bypass Authentication of .htaccess using PHP?

    I have a page: ________________________________ <html> <body> <a href="protected/example.docx"> Prompt </a> <br/><br/> <a href="dl.php"> No Prompt </a> </body> </html> ____________________________ I've set the .htaccess so that when I click on the "Prompt" link, I'll...
  2. S

    How do I prevent or allow people to download a file, using PHP?

    Let's say I have a 1MB example.exe file. How can I prevent someone who knows the name of the file from downloading it. But lets also say that when a user enters a correct code word and submits it, they are allows to download the file. How can I set this up? What do I have to do in my FTP...
  3. S

    AJAX: How do I default an enter-press to a non-submit button?

    I'd like to make a search bar were the user can press enter, and the results are posted without having to refresh the page. If I make the "search" button a submit button, the page will refresh. If I make the "search" button a regular button, the page will load the results without refreshing...
  4. S

    AJAX: How do I default an enter-press to a non-submit button?

    I'd like to make a search bar were the user can press enter, and the results are posted without having to refresh the page. If I make the "search" button a submit button, the page will refresh. If I make the "search" button a regular button, the page will load the results without refreshing...
  5. S

    Question about PHP timed events.?

    How can I set an event that happens once per day. (In this case, I want to delete video files at midnight from the server). I know sites like XKCD have automated released events of comics at midnight. Is this just done by running a script every time the page has been loaded. Or is there a...
Back
Top