Search results

  1. M

    Custom 404 Error Page?

    @cybrgms: Just want to make sure you're getting what you wanted. Are server side includes going to cut it? Are you going to use PHP with a config line like the following? ErrorDocument 404 /errordoc/404.php
  2. M

    CSS Nesting Dividers

    Is the error you're talking about ID collision? The OP's source code didn't suffer from this problem (4 ID-ed elements: #holder, #navigation, #button1 and #button2). What am I missing?
  3. M

    Perl version on free host?

    That's understandable. Perl is fun and hella expressive but parts are tricky to learn and it takes a while to master all of it. (3 ways of calling methods? Really? Yay, I can mess with symbol tables at runtime! Boo, I might need to mess with symbol tables at runtime!) It's nice to see a...
  4. M

    404-Not Found error

    What does it say in the error logs? Sign in to cPanel, then open the Error Log panel in the Logs section.
  5. M

    smtp settings

    No; because of type juggling, PHP will generally convert between numeric and string data as needed. More details would be helpful. How are you sending mail? Most importantly, how is it failing? Were there any error messages from the original setup? If you're using PHP's mail function, a...
  6. M

    CSS Nesting Dividers

    What doesn't work? Always state what you expect to happen and what actually happens. Otherwise, we can only guess what the intended effect is. Nice minimal test case, though. It does make guessing easy. Is the problem that the 2 button divs display on different lines? The answer to that...
  7. M

    How to choose a colour scheme?

    There are some color scheme design webapps you can use: Color Scheme Designer v3 Color Scheme Designer v2 Color Wizard 25 color scheme generators They're based on color theory so won't give you a solely red/blue color scheme (red and blue don't have the right relationship to each...
  8. M

    css and w3c

    If you are concerned about serving valid CSS, you can use conditional comments to target IE for IE only properties. On the other hand, it's relatively harmless to server such properties, for browsers must ignore unknown properties. Some people consider leaving properties exposed to browsers...
  9. M

    500 Internal Server??

    There are plenty of ideas, unless you mean about your problem. Since you didn't post your current .htaccess, we have no way of knowing what could be wrong with it. Always give appropriate background information and post a minimal test case. Producing a minimal test case both reduces what we...
  10. M

    404-Not Found error

    Is the file named "Index.html" or "index.html"? URIs) are case sensitive, as is the filesystem used on the x10 servers.
  11. M

    CGI don't work.

    On both scgi-bin and the script? That means place scripts in the scgi-bin directory and scripts placed there will run with your userid (rather than the webserver's userid). There's nothing there you need to set. Access the cgi script again & check the error log (CPanel, Logs, Error Log)...
  12. M

    Can a cron job kick off another cron job?

    Is the day these updates need to run dependent on an external condition or is it a predetermined (albeit semiperiodic) time? What's the condition for stopping the scheduled jobs? If you need to run a few of the 10 minute updates, at might be the simplest way to go. If you know ahead of...
  13. M

    how to achieve a cross browser compatible webdesign ?

    Expanding on what everyone else has said: Once you've designed & built your page according to the standards and following best practices (such as writing semantic HTML), it's time to test. You can use Browsershots to view your website in browsers you may not have installed. Using your own...
  14. M

    Copying HTML tags into PHP script, problem with quotes and //

    I think I just noticed what's going on. When the double quotes in the <a href="..."> cause the string to end prematurely, the '//' are no longer in a string and are thus interpreted as T_COMMENT. Once you escape the '"', the '//' won't be interpreted as a comment. This simplifies the...
  15. M

    Smart Froms

    Yes, that's it exactly. Adding hidden inputs to the form that picks the team name will fix this bug. Note also that if you use GET rather than POST as the form submission method for request.php (and use $_REQUEST rather than $_POST), the old values carry over because the URL will be preserved...
  16. M

    Can a cron job kick off another cron job?

    If you want a job to run sporadically, you can use at (the exact syntax of at may depend on the OS flavor, so here's another manpage). If you want it to run periodically, use one of the above solutions.
  17. M

    css and w3c

    And I would have hoped you weren't too lazy to make others do your work. A psychic may have known from your post what wasn't working as you expected (i.e. whether your code wasn't working or wasn't validating), but the rest of us shouldn't have to figure out what you want your code to do along...
  18. M

    Copying HTML tags into PHP script, problem with quotes and //

    To expand on xav0989's comment, you can use sed from the command line to perform the replace: echo "`grep \"href\" file1`" | sed -e 's/"/\\"/g' -e 's/\/\//\\\/\\\//g' >> file.php You could also use awk or perl if you're more comfortable with those. I picked sed because it's fairly simple to...
  19. M

    Smart Froms

    Note also that by default, the result of mysql_fetch_array has both associative and numbered indices. The OP already used associative indices along with mysql_fetch_array.
Top