Search results

  1. M

    restrict access to a page unless from...

    garrettroyce's answer best matches what you asked (the Referer header tells you what page a visitor is coming from), but it may not be what you need. Very important question to answer: why do you want to restrict access based on where a visitor is coming from? It's best to always post the...
  2. M

    Python script simply won't run!

    Python scripts in cgi-bin run for me on Absolut. Which host is your site on?
  3. M

    HELP: how to fill co.cc zone records & URL forwarding

    You probably don't need to worry about either of those. Zone records let you define additional DNS Resource Records (RRs) so you can declare the name of a mail server for your domain (MX RR), alias one name to another (CNAME RR), declare the name server (NS RR) and declare the network addresses...
  4. M

    Perl version on free host?

    It works for me on Absolut (where it reports v5.8.8). Anything interesting in your error log? Edit: 1st script had a rounding error. Here's a fixed version: #!/usr/bin/env perl use CGI ':standard'; print header('text/plain'); printf "\$^V: v%vd\n",$^V; print '$]...
  5. M

    Perl version on free host?

    You can also use $] or $PERL_VERSION/$^V. #!/usr/bin/env perl use CGI ':standard'; print header('text/plain'); printf "\$^V: v%vd\n",$^V; print '$]: ',int($]),'.',int(($]-int($]))*1000),'.', int(($]*1000 - int($]*1000))*1000), "\n";
  6. M

    How can I open my site without having to append a /"foldername" to the URL

    It sounds better now, so no real harm done. You probably learned a few things by breaking them. As Isaac Asimov (probably) said, "the most exciting phrase to hear in science, the one that heralds the new discoveries, is not 'Eureka!' (I found it) but 'That's funny...'"
  7. M

    MYSQL Database Access Issue: please help me!

    Out of curiosity, I also wrote an ASP.Net app that successfully connects between two development servers (I haven't yet tested it on an X10Hosting server). It uses MySQL Connector/Net as a data provider. Here it is, more or less. Default.aspx: <%@ Page Language="C#"...
  8. M

    How can I open my site without having to append a /"foldername" to the URL

    I was wondering why you had your entry page in /main/ rather than /. Site organization mostly involves what URLs access which pages (and thus where files are stored on disc), what content is on which page and how the pages link to each other; it was the first category I was referring to when I...
  9. M

    JavaScript replaceChild

    Nice solution, actually. Unlike innerHTML, Using appendChild would mean a script generated ad would never be replaced, but I'd only use that approach if the extra content really bugged you or messed up your design.
  10. M

    css and w3c

    Not to be rude, but you thought wrong. Another part of asking a question about code (as alluded to in the document I linked to in the previous post) is always post a minimal test case. That's much clearer (you never mentioned opacity in your original post) and has an appropriate amount of...
  11. M

    Screen resolution of visitors

    Remember, Google is your friend. First result has what you're looking for. I would caution against targeting particular resolutions, assuming that's what you want the data for. Better to use an elastic layout that will degrade gracefully.
  12. M

    ajax problem

    The page is redirecting because, by default, browsers redirect when a form is submitted. To prevent this, try at least one of: use a push button rather than a submit button add 'onsubmit="return false"' attribute to form element. add an event listener (via addEventListener/attachEvent) that...
  13. M

    css and w3c

    Read "How To Ask Questions The Smart Way", in particular "When asking about code"
  14. M

    How can I open my site without having to append a /"foldername" to the URL

    I'd be very surprised if leafypiggy's approach worked. By setting DirectoryIndex in .htaccess for DOCUMENT_ROOT, anytime a user requested a URL that resolved to a directory, Apache would serve up DOCUMENT_ROOT/main/. If a user requested "/foo/bar/" zhe'd get "/main/". Moreover, Apache would...
  15. M

    JavaScript replaceChild

    Out of curiosity (and for those reading this thread looking for help), what route did you take?
  16. M

    MYSQL Database Access Issue: please help me!

    Sorry, but I don't use ASP.Net with MySQL on Unix platforms. If you want to make sure your connection string is properly formed, check Connection Strings for your data source provider (MySQL Connector/Net?). Also, test that MySQL is properly configured. You can use the following: <?php...
  17. M

    MYSQL Database Access Issue: please help me!

    One of the posts in the discussion of this bug suggests setting the connection timeout. Google may turn up other solutions.
  18. M

    JavaScript replaceChild

    True, but innerHTML isn't as future proof. On the other hand, it's usually more efficient, though the difference in efficiency won't be noticeable in the example. This isn't to say the OP shouldn't use innerHTML, zhe should just be sure to understand the consequences, good and bad...
  19. M

    Simple Batch Question...

    timeout works just fine for me in Vista. It doesn't exist under XP, but the poster doesn't need it for XP. If he did, he could get sleep from the Win23K resource kit tools and use that.
  20. M

    E-mail - cannot connect to outgoing server

    I just spoke with the mail server in the screenshots and got the response: 554 5.7.1 Your message failed several antispam checks (SCORING) and it was rejected or collected on joshforde.com spambox. Please be sure your mailserver is configured correctly (spf , HELO, PTR) or try using an...
Top