Search results

  1. M

    Please bring back "forums.x10hosting.com" as the canonical name.

    Fortunately, the change in name hasn't affected Google's indexing, so the forums are fully searchable. They're never useful. Oftentimes I'll turn to Google because the forum search fails me, such as when I need to search for a term of three or fewer letters. Note that it's still possible...
  2. M

    Help with draggable layers javascript

    It costs less than you think, since browsers will cache the script. Even without caching, 56 KiB won't notably reduce response time on anything other than a dial-up connection, and how many of your users have one of those? At the same time, I understand the desire to avoid waste. In the end...
  3. M

    Script

    What, exactly, is the problem? Since we're not psychics, you should tell us the behavior you expect and the behavior you get, including any error messages. If you're having problems completing the code, tell us in detail what functionality you have and what you still need to achieve. Aways...
  4. M

    open_basedir restriction in effect. help?

    For links (URL paths), all you need as a base is "/". The URL "http://www.name.exofire.com/../bb/" is the same as "http://www.name.exofire.com/bb/", as per RFC 3986 § 6.2.2.3 Path Segment Normalization and 5.2.4 Remove Dot Segments.
  5. M

    open_basedir restriction in effect. help?

    No. Each directory has a ".." entry, which refers to the parent of that directory, except in the root directory where it refers to the root directory. If a path begins with "..", such as in "../Config", it's the parent of the current directory. In "/home/werezwol/public_html/bb/../Config", ".."...
  6. M

    How to sort a html table

    You aren't adding the sort parameter to the query string. Click a column heading and take a look at the URL; you won't see the sort parameter there. You need to do something like: function recall(tri) { var query = "?sort="+tri, loc=window.location; window.location =...
  7. M

    Ajax Form Validation

    This has some massive injection attacks. The $$key = $value allows a user to overwrite any variable. If you've started a session and use it to hold user data, they could authenticate themselves or escalate their privileges. The SQL statement is wide open to SQL injection via multiple inputs...
  8. M

    Ajax Form Validation

    If you're using JS for validation without refresh, doing it server-side seems unnecessary. Why not use inline validation client-side? Two problems with your use of MooTools. The first is that Element.send doesn't take an options object; it only takes a URL. To set options for an element, you...
  9. M

    open_basedir restriction in effect. help?

    The leading slash means the MAINDIR path is absolute. The root directory is its own parent, so '/..' is equivalent to '/', which means Config_DIR is '/Config', BB_DIR is '/BB' &c. All of these are outside the '/home' and '/tmp' branches (not to mention non-existent) and thus blocked by the...
  10. M

    PHP Time and day display

    You can also use arrays for custom messages or switch statements as xgreenberetx suggests. $dayMessages = array( 'Monday' => 'Born', 'Tuesday' => 'Christened', 'Wednesday' => 'Married', 'Thursday' => 'Took ill', 'Friday' => 'Grew worse', 'Saturday' => 'Died'...
  11. M

    PHP Time and day display

    Why not simply: echo strftime('Today is %A, %B %e, %Y, %l:%M %p'); or: echo 'Today is ', date('l, F j, Y, g:i a');
  12. M

    Javascript and radio buttons help

    Note that you can also get inputs via the form element, which is helpful if you have more than two radio buttons in a group. <form name="colorForm"> <input type="radio" name="color" value="red" id="color_red"/><label for="color_red">Red</label> <input type="radio" name="color" value="green"...
  13. M

    Ajax Form Validation

    Both problems should be relatively simple to solve. To update the captcha, have the form handler return the info for a new captcha in the failure response to the AJAX call. The AJAX failure handler can then update the captcha widget. For success, have the form handler return the new URL in the...
  14. M

    mod_rewrite help

    The rest of the story: the essential difference is the lack of a leading slash in the pattern. What's happening is that the rewrite engine has to handle per-directory rewrites (those set in .htaccess) differently than global rewrites (those in the conf files): it has to strip the directory...
  15. M

    PHP resource error #6

    A single query will be faster than multiple queries. Note also that while the query is more complex, overall the code for a single query is simpler. Prepared statements will be faster than interpolating the value into the query string. If you interpolate a value into the query string, you must...
  16. M

    MySQLi connection

    "mysql" is the oldest MySQL driver. It was replaced with mysqli, which supports an OO interface, prepared statements (via mysqli::prepare) and many other improvements. Note that the old mysql driver has its own quoting function (mysql_real_escape_string), but prepared statements are the more...
  17. M

    Please bring back "forums.x10hosting.com" as the canonical name.

    When the vBulletin search fails me, I often used to turn to Google, performing a site search on "forums.x10hosting.com". Since that domain now redirects to "x10hosting.com/forums", using Google is still possible but is much more verbose and seems to be less successful. Could we have the old...
  18. M

    No database selected

    lrn2srch What do you mean by "make a consult"?
  19. M

    PHP resource error #6

    The PHP manual has most of the answers you seek. In both cases, $msg is defined as an array; this doesn't change. All that's happening is different indices in $msg are being assigned to. The colon in the indices is used because PDO prepared statements use the colon for named parameters; it has...
  20. M

    Simple Ruby Question?

    IDLE is an Integrated Development Environment (IDE). In fact, IDLE stands for "Integrated DeveLopment Environment". A google search for "Ruby IDE" turns up "The Great Ruby IDE Smackdown of '09", along with many other pages.
Top