Search results

  1. M

    Python

    Don't threadjack and learn to search. Yes it is.
  2. M

    Help with javascript photoalbum

    Anytime you get an error like "Foo is not defined" or "Can't find foo" or "Foo is not a function", it's the exact same problem: Foo isn't defined yet. Either the file defining Foo isn't loaded yet, or the file doesn't exist. Go through the same steps as I did earlier: find where Foo is defined...
  3. M

    Why doesnt this code work? ( PHP )

    You don't give a clear description of the erroneous behavior. Is the entire page blank? Is just the response section empty? Is there a table with no rows? Do you get rows containing only player names and IDs? What's the URL for a live page, so that we may see for ourselves? Your script is...
  4. M

    (ask) Compressing embeded flash file

    I believe the servers already use mod_gzip to compress content for browsers that support compression, but I expect flash files won't compress very much using this technique as they use compression internally. When you author a flash file, there are various steps you can take to reduce the size...
  5. M

    Help with javascript photoalbum

    Take a look at the error console in your browser. At page load in Firefox, you see: When you click an image, you get: Looking at the source for lightbox.js around line 129, you see that this is where Element.setSrc is defined, only it isn't because the call to Object.extend fails. Now we...
  6. M

    c++ programs error

    When posting code, please post just the code, which means leave out the character graphics. Are you using the old Borland C++ IDE? Also, use [code] tags rather than
  7. M

    Positioning and Arrangement using CSS

    auto-clearing There's another neat little trick to make a parent contain floats: setting 'overflow' on the parent. No non-semantic elements needed. Setting overflow can have other affects; your mileage may vary. There's also auto-clearing, which is pure CSS but more verbose and requires...
  8. M

    Positioning and Arrangement using CSS

    Start from scratch. It's usually less work and produces better results. Remember, HTML is supposed to define the structure of a document; if you rewrite a document containing presentational HTML, chances are it will be reflected in the rewritten page's structure. Once you've structured the...
  9. M

    MySQL errors

    You should only use "or die()" for debugging. For production code, you'll need a different approach to error handling. Since that's the whole raison d'etre of exceptions, they're the natural choice. Furthermore, if you're going to do something other than "or die()" for production code, you might...
  10. M

    PHP script help!!!!!

    This doesn't answer xav's question. JS would be a more efficient choice, as it would reduce a round-trip. You'd still want the PHP handler, for those browsers that have JS disabled or don't support JS. <form ...> <select name="Room" onchange="roomChange(this);"> ...
  11. M

    archive file in image

    Are you talking about steganography detection? Check out stegdetect or StegAlyzerSS.
  12. M

    Fatal error: Class 'ZipArchive' not found

    What host are you on? The samples work on Lotus. Sometimes some extensions accidentally get left out when PHP is built. The best course is to open a support ticket.
  13. M

    Warning: Unexpected character in input

    Try a coloring editor, or use the tags rather than the [code] tags and you'll see the problem: [php]}else if ($_POST) { if ((!$_POST["topic_id"]) || (!$_POST["post_text']) || (!$_POST["post_owner"])) { header("Location: topiclist.php"); exit; }
  14. M

    Fatal error: Class 'ZipArchive' not found

    What language are you using? PHP? The zip PHP extension is installed. What's a minimal test case that gives you the error? Is there any more to the error message? Creating a ZipArchive works fine for me. $z = new ZipArchive(); You can also use the zlib extension to compress data.
  15. M

    ftp on the windows commandline

    Either passive or active mode might be involved, combined with a firewall or NAT on the client's side. Port 21 is only used for control messages. Port 20 on the server is used for data (such as directory listings) under active mode. Port 52775 might be on the client side under active mode or...
  16. M

    change mysql wait_timeout?

    The set statement will change the session variable. You don't have appropriate permissions to change the global variable. When the session ends, the value is lost, which is why I said to set it each time you open a connection as a workaround. Since another user on Stoli
  17. M

    Wierd index problem

    Test the local copy of the flash movie. If it works correctly, you know the server copy hasn't been updated. If the local copy directs you to the old site, use a debugger to check why. Perhaps there's a resource that still needs to be updated. Edit: I'm not seeing any sign of the URL in the...
  18. M

    ip block country

    You should be able to find free IP locator services that convert an IP address into a latitude and longitude, and free reverse geocoding services to convert geographic coordinates to an address.
  19. M

    Passing + in a php variable

    There are two relevant docs describing the behavior: the CGI primer (in the QUERY_STRING section) and URI Recommendations section of the Universal Resource Identifiers memo (specifically, the "Query strings" section).
  20. M

    HELP how to: Pass value from a form to iframe

    What code have been you been able to write? Please give a minimal sample, leaving out styling and extraneous elements. What parts aren't working as you want them to? Are you dealing with an error? Second Ichwar's opinion that the assignment is somewhat bogus in requiring both a result page and...
Top