Search results

  1. M

    MySQL ACCES DENIED ERROR

    You're not creating a connection properly. Did you write the script, or are you using a 3rd party script? If the former, this should have been posted in the Programming Help forum; if the latter, Scripts & 3rd Party Apps/.
  2. M

    A ton of php errors.

    From the end of the OP's post: He was able to resolve the problem with variables not holding script names on his own.
  3. M

    getting started with programming

    W3Schools is outdated, incorrect and incomplete (and it's not just my opinion). Besides, OP already tried and rejected W3Schools. As for security, there are definitely good sources out there, but there are also quite a few resources that barely cover the subject, if they don't ignore it...
  4. M

    MS SQL Server databases

    Read "ASP.Net for Beginners" and the many other threads on the topic. Next time, search first. If you're still having problems after going through existing information, post and we can help with your specific problems.
  5. M

    SQL Injection?

    If there's anything in the access log, you could look for repeated IPs. However, the log is apparently disabled on free hosts. Also, if you were attacked by a botnet, there won't be a repeated IP. You might still be able to identify suspicious IPs by using a GeoIP service or using whois. If you...
  6. M

    getting started with programming

    See the threads "What should I learn?", "Want to learn to program...." and "sql database". My personal favorite programming textbook is the Structure and Interpretation of Computer Programs. It's not easy, but it's an introductory text and will prepare you like no other.
  7. M

    JQuery sliding menu - Remember which link was clicked

    Use whichever portion of the URL identifies the link. However, even if you have a single entry point to your site, this shouldn't be reflected in the public URI. Use rewrites to present a readable external URI so your single entry point only appears in internal URIs. Since JS is client side, it...
  8. M

    VPS Java/red5 help

    The root cause of the exceptions is that a server is already bound to port 1935 (the "Address already in use" message). Stop any previous instances of Red5 before starting a new one. Generally speaking, rebuilding and re-installing an application will overwrite old installs that are the same...
  9. M

    GZip enabled on starka?

    You could write a script that does nothing but output another file. For example, <?php ob_start('ob_gzhandler'); // init.php does useful things like set the include path include_once($_SERVER['DOCUMENT_ROOT'] . '/init.php'); // You'll need to write the sanitize function so that users can't...
  10. M

    JQuery sliding menu - Remember which link was clicked

    You can get the preceding .menuItemHeader using $.prev() on the link's ancestor. $('.menu a[href$=' . escape(whichLink) . ']').parent(".menuSection").prev() However, that looks to be of little use, since you want .menuSection. Note that by switching from <div>s to the more semantic <ul>...
  11. M

    JQuery sliding menu - Remember which link was clicked

    That looks right. However, links will need to be absolute paths. If you don't want that and the final path element is unique among the menu links, you can extract the final path element and use the attribute-ends-with selector ([href$=...]). For example, // if links never include a trailing...
  12. M

    JQuery sliding menu - Remember which link was clicked

    That selector won't work, but you should be able to use a [href=...] attribute selector to find the child, then expand its ancestors up to the top menu.
  13. M

    SQL Injection?

    Don't use mysql_real_escape_string to prepare data for an email; it's only to be used with the old mysql driver (which is very outdated, so you shouldn't be using it) to prepare data for insertion into a database. The code you posted involves no SQL queries, so it can't be vulnerable to SQL...
  14. M

    RE: error AE3E7FCC

    Did you get the error just once, or each time you try to add a domain? How are you adding the domain?
  15. M

    PHP cron-job

    View the page in a browser. If it doesn't work then, you'll know there's a problem with the script.
  16. M

    JQuery sliding menu - Remember which link was clicked

    If the links go to the same page (as they do in the posted & linked samples), use different fragments to differentiate the menus. <ul class="menu"> <li>Menu 1 <ul> <li><a href="#menu1_item1">Child 1</li> <li><a href="#menu1_item2">Child 2</li> ... </ul> </li>...
  17. M

    img src preg_match_all regex problem

    Be sure you follow the advice in my sig. Specifically, In particular, the sample resolveURL() functions don't handle query strings properly. An implementation that's closer to RFC 3986's algorithm is: function sortBy(array $toSort, array $order) { $order = array_intersect_key($order...
  18. M

    e-mail form through php script

    What's the URL for the page? You should always include a link to a live page. If you're seeing the PHP code in the page source, then PHP isn't processing the page. You've got an injection vulnerability via the "email" form input. An attacker can inject arbitrary headers into the message, using...
  19. M

    Activestate Perl/Tk for Windows XP, installing CPAN modules

    You can use PPM to install additional packages, including Tk and packages from CPAN. ActivePerl also includes a CPAN shell to install any packages not available through PPM.
Top