Search results

  1. M

    Website Home Page Error

    Guys, this is an ASP.Net problem, not a problem with public_html or a missing index.html (ASP.Net uses Default.aspx as the default directory index file).
  2. M

    Help setting up redirect for "not found" pages

    But why did you need to change them? In this case, you should redirect the old URLs to the new ones so they can be found, rather than redirecting them all to the home page. You can use the rewrite engine or RedirectMatch, which is tailored for redirects.
  3. M

    Joomla and php 5.3

    To answer your question, X10 currently uses PHP 5.2.11, not PHP 5.3. If you want to check what PHP version a server is running, use phpversion. If you want help with the specific problems you're experiencing, describe them, not your guesses. Be sure to include minimal test code, links to live...
  4. M

    Help setting up redirect for "not found" pages

    What, exactly, did the source(s) say the problem was? A 404 means no resource exists at the given URL. If the URL used to be valid but isn't any longer, a 301 is appropriate (but ask yourself: why did the URL change? As the W3C says, "Cool URIs don't change"). If a URL doesn't name something on...
  5. M

    Problems with IE 7

    Display order induced by document order is the "flow". The whole point of floating, absolute positioning and fixed positioning is to position elements outside of the flow--to use something other than document order for positioning. Placing elements in the document in the order you want them...
  6. M

    Problems with IE 7

    Floated elements are generally positioned to the side of elements that follow them in document order. Place #bottom_right immediately after #bottom_left, before the other content in #bottom. An alternative that doesn't depend on document order is to use absolute positioning. Create PNGs with...
  7. M

    Help setting up redirect for "not found" pages

    You could also set a script as the error handler using ErrorDocument, and have that script redirect. You could even set the index page as the error document. However, I recommend against redirecting without some sort of not-found notice. It breaks people's expectations and doesn't play well...
  8. M

    JS Show a pic when site is loading.

    Wow, that's ancient. NS 4 and IE 4 are long dead. The script doesn't strictly speaking use browser sniffing, but close to it. "init" is a rather generic name; it can easily conflict with functions defined in external scripts. The code can be reduced to: <body onload="hideLoading"> ... <script...
  9. M

    PHP and leading zeroes mindtrick

    For reference, this is documented on the PHP Integers manual page.
  10. M

    Can I run Catalyst (Perl) applicaiton here?

    As far as I know, Catalyst isn't installed on the free servers, but you could try installing it yourself.
  11. M

    SQL injection?

    Safe but neither efficient nor readable nor scalable. You can make use of associative arrays to address these issues. Wrap the sanitization in a function so you can reuse it: function sanitize(&$input, $whitelist, $defaults) { foreach ($defaults as $key => $dflt) { if (...
  12. M

    404 error

    Is your site http://pritz01.x10hosting.com/? If so, I get no 404. Clear your cache and try again. Also, it's helpful to mention the URL for your site, along with any other pertinent information.
  13. M

    php include - above root directory

    If you want to make things really simple, put an init.php in ~/public_html and include it with a include_once($_SERVER['DOCUMENT_ROOT'] . '/init.php'). Within init.php, add top-level include paths: // add ~/include/php and doc root to include path set_include_path(get_include_path() ...
  14. M

    SQL injection?

    Better yet, use a DB driver (such as PDO) that supports prepared statements, which aren't vulnerable to SQL injection. You still have to consider other types of injection attacks, such as XSS.
  15. M

    Unclickable Links

    #OtherAnnouncements is behind #Announcement. Give #Announcement a non-white background color, then turn its positioning on and off in Firebug to see this. From the CSS 2.1 standard on Layered presentation (§ 9.9): Since both elements are positioned, they are in the same stacking context (CSS...
  16. M

    Javascript/DHTML help

    You can also use a closure, which avoids polluting the global namespace. var SigbarGen; (function (currColourElt, currStyleElt) { SigbarGen = { createColour: function (colour){ document.getElementById('previewcolour').src = 'original/'+colour+'.jpg'; }...
  17. M

    Javascript/DHTML help

    See my other, updated reply for other problems. Note that you don't need to use getElementsByClassName: var bold = (function () { var currElt = {style: {}}; return function(boldColour) { currElt.style.fontWeight = ''; currElt = document.getElementById(boldColour)...
  18. M

    Javascript/DHTML help

    Check your error console. "-" isn't a valid character in identifiers. The "-" in bold() is a subtraction operator. Style property names in JS are formed by removing the "-" from the CSS name and capitalizing the following letter (that is, they use CamelCase). Use "fontWeight", not "font-weight"...
  19. M

    javascript redirect to main page if subpage called directly

    Out of curiosity, how are you integrating the subpage content into top-level pages? include?
  20. M

    Problem with menubar when viewed in IE

    Double-check; make sure you clear your browser cache before viewing the page. When I disabled the "background: #FFF;" rule using the IE developer toolbar, the background image showed through. Also, that line is explicitly telling the browser to set the background of the menubar items to white...
Top