Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. It may be that "abmp3.com" have actually purchased a song from the site before, discovered the vulnerability and decided to exploit it. You may even unknowingly have a direct link to the file... It's complete guesswork without us being able to see the site.
  2. For the image captcha I was asked to click a star.. I clicked the Sun and I was wrong?
  3. `git clone` is a Git command. You need to install Git and then have a directory where you can clone the remote repository to.
  4. You need to control access to the files via an interface. Pass the file name, or even better an ID, through a script that will check the user has permission based on their purchase history. If they pass the script will look-up the file and allow the user to download it, which can be done using the MIME 'Content-disposition' header. Search Google for something like "php force file download". After I would add a restriction to the Apache configuration to prevent direct access, meaning all requests will need to go through the interface: <Directory "/path/to/songs/directory"> Deny from all </Directory>
  5. Ideally you don't want to be running irrelevant queries on your home page, or any other page, that isn't actually needed to display it. You should set-up a cron job or a Windows task to periodically run maintenance like this, preferably in the middle of the night or whenever you're on-line user count is at its lowest.
  6. It's already in the array variable $_SERVER, but if you wish to add it to a separate variable you can use: $ip = $_SERVER['REMOTE_ADDR'];
  7. Adam

    exit popup

    You just need to attach a confirm() call to the "onunload" event.
  8. Adam

    Adding

    Can you show the mark-up you're working with? There's a number of ways to do it.
  9. You uninstalled WAMP because you got an error telling you the username and/or password was incorrect?
  10. This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=346043.0
  11. Using an object as requinix suggested would reduce the duplicated code within your switch and keep it easy to maintain.
  12. You're overwriting the contents with each call to html(), you need to use append().
  13. The never-ending loading is Firefox-specific. The main problem here is that you're writing to the document after it's finished loading (using jQuery's document ready event), which is effectively starting a new document stream and you're loosing the previous content. Firefox continues to load because technically this document hasn't been closed, other browsers just close it automatically. If you added document.close() after your loop you will see it stops. As I said though, you're going to always overwrite your previous content here, you need to either write in-line (within the body without the ready event) or just append the contents to an element (recommended).
  14. "Access Denied!!!"
  15. Do you have a test username / password?
  16. You need to be a bit more specific than "I canĀ“t press "Result"".
  17. You can use the <tbody> tag to wrap the rows within a parent element inside the table. In this case only the document is assigned an event, that is called once the page has loaded. So at the point of execution the elements will exist within the DOM.
  18. It wouldn't be considered black-hat, but it won't have the magical impact you're expecting. Google for example doesn't actually give much weight to a page based on keywords within the URL, it's more of a superficial benefit for your users. You will gain slight improvements given the keywords used in your links actually within the page, but you would be better focussing on other improvements really.
  19. Although you could use DB management software over the top if you would find that easier..? Don't know any to suggest to you, but Google found plenty.
  20. A quick search on Google found a similar website - although their concept of result-only access was developed by an idiot.
  21. Adam

    help

    "Reply fast" - perhaps a bit of courtesy, Venice? We're not here to fall over ourselves trying to answer your very basic and well documented PHP questions.
  22. I just read your post, and it is far too long to even remember, but I will say I do websites / web software for people beyond work, and I generally set them up with a cheap shared host- simply because it fits the need. You can get them cheap, and in these kind of situations you don't generally need much more from it beyond the basic PHP/MySQL set-up. If you have a highly demanded service, or one that requires any kind of server configuration, then really that's the point you move to a virtual / dedicated server. To cut to the chase, shared hosts aren't for websites with any substantial requirements. That's why hosting companies get away with unlimited/unmetered claims, because no one with such a demanded service will ever use a shared host.
  23. http://buyvm.net/
  24. http://www.phpfreaks.com/forums/index.php?board=8.0
  25. Can you show the code in context? There doesn't appear to be anything wrong with the statements you've shown, so it's likely something else around them. Also you quote the error, is that the exact error? If it was "msg_data_array is undefined", then it's because that index doesn't exist.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.