Search results

  1. M

    Anyone help plz: database problem

    If you know what hash algorithm was used, you can set the password using an UPDATE statement: UPDATE admins SET aPassword='...' WHERE aId=1 Never post sensitive information, even if it's hashed. Fortunately, you're going to change your password, so it doesn't matter in this case.
  2. M

    Redirect www.mydomain.com to mydomain.com

    All over? Are you sure? This is covered in Apache's "URL Rewriting Guide".
  3. M

    PHP: Running code from string.

    Just be certain your system is secure. There's a huge potential for injection vulnerabilities.
  4. M

    "URL File-Access is disabled."

    To make include-ing from arbitrary directories easier, use set_include_path. Read "RE: php include - above root directory" for details.
  5. M

    PHP: Running code from string.

    I take it you're processing the file before you want PHP to evaluate it, and thus can't use include. You could try prepending '?>' to the string you pass to eval.
  6. M

    subject to login

    Do you have a question or a request?
  7. M

    Triggering additional events off a form submit button click.

    You could use AJAX to submit to the email handler. However, the standard way of handling this situation is to come back to your site after the payment through PayPal has been authorized for a final form processor. This is what sites like eBay, Amazon and NewEgg do. Otherwise, the email will be...
  8. M

    Framework

    This is why there are sites like Wikipedia: Software Framework, Web content management system. Read also "Re: About Adobe Flex and Air".
  9. M

    Can't access forums or account panel from home.

    Browsing to forums.x10hosting.com, www.x10hosting.com or x10hosting.com from home results in a timeout. It works from anywhere else, including using neighbors' connections. The names resolve fine, but I can't ping the servers, an a traceroute stops at po4.bdr2.core1.dllstx2.dallas-idc.com...
  10. M

    [MySQL] Getting 1st element of list

    I assume "nitem" and "nitms" are misspellings of "nitems", and you're trying to get a specific range of rows à la the head/tail strategy. As it turns out, neither subselects nor joins are needed. MySQL supports an extended LIMIT clause, where you can specify an offset before the row count...
  11. M

    Skeleton folder in cpanel

    You don't have user account creation privileges, so access to the skel folder doesn't matter. Also, web users shouldn't be getting system accounts. You'd better create your own account system for the site, which means you can implement your own user system and account templates. Since you'll...
  12. M

    Php Tutorial

    -over 9,000 for W3Schools. W3Schools may be popular, but it's terribly dated. For another, SQL Injection isn't even mentioned. Tizag is a little better, but it sticks SQL Injection in the "advanced" tutorials. For recomendations, read the threads "Want to learn to program....", "sql database"...
  13. M

    [MySQL] Getting 1st element of list

    What's your current query? Sub-selects can often be rewritten as joins.
  14. M

    virsu problem

    To add to Adam's request: make sure you surround the code with tags. If you switch to advanced mode, you can use the button to insert the tags. [HTML]<html> <head> <title>A Page</title> </head> <body> <h1>A Page</h1> <p>Lorem ipsum dolor sit amet, consectetuer...
  15. M

    Website Home Page Error

    @ouedlaou: read "Over Helping" and don't do it.
  16. M

    error message

    I believe you were suspended due to inactivity. As per the Terms of Service (which you should have read when you signed up), you must sign in to the forum at least once per month; posting isn't necessary. You can unsuspend yourself. However, there might be something else wrong with your server...
  17. M

    About gzip, mod_deflat...

    If you merely wish to drop the "php" extension from URLs, you can also turn on content negotiation with "Options +MultiViews" in .htaccess. This also lets you drop extensions for all file types. You can even have files named "foo.html.php" and refer to them simply as "foo". Read "Extentionless...
  18. M

    javascript: detect window resize

    In JS hosted by a browser, global variables (other than window) are resolved as properties of window (as if all code blocks were surrounded by an implicit "with (window)"). document is thus window.document. A reference to body, by itself, is undefined. In a global context, try: var foo='bar'...
  19. M

    row_number SQL Help

    MySQL doesn't have a ROW_NUMBER function. Generally speaking, the concept of a row number doesn't apply in relational databases. You can keep a count of rows as you access them in PHP, if you wish. Better yet, display the list as an <ol> and the browser will number the items for you. A bit of...
  20. M

    Flash database connection through sockets

    A quick search of the forums will tell you: free accounts don't allow external connections to the MySQL servers.
Top