Search results

  1. marshian

    Rounded Corners

    You kinda need 4 images called "nw.png", "sw.png", "se.png" and "ne.png"... Edit: I made some example images, unzip the attached folder in the same directory as your html file is.
  2. marshian

    Change X10 Sub-Domain to Your Owned Domain

    You could also do this: - set your domain to point to x10 nameservers - go to your cpanel - click parked domains - fill in your domain in the box - click add a new domain
  3. marshian

    Rounded Corners

    How about you put 4 images on your page, all with fixed positioning? eg <img src="nw.png" style="position: fixed; top: 0px; left: 0px;" /> <img src="ne.png" style="position: fixed; top: 0px; right: 0px;" /> <img src="sw.png" style="position: fixed; bottom: 0px; left: 0px;" /> <img src="se.png"...
  4. marshian

    PHP Syntax Question

    It's not really safe what you're doing there, you should check wether it's the right input, because somebody could abuse this code... #1 is right, #2 is wrong $link = mysql_connect("localhost", $_POST["SQLname"], $_POST["SQLpass"]); This would be right too: double quotes instead of single...
  5. marshian

    StarWars or Lord or the Rings

    Lord of the Rings is the best! I just love the books and the movie is based perfectly on the books (unless it wasn't possible). I think hermitobserver wants to say that LOTR is based on a world that has already existed (middle ages), while Star Wars is based on a world that doesn't actually...
  6. marshian

    [PHP Tut] Make your own CAPTCHA

    IMO, sessions aren't safe enough this way... http://www.webmasterworld.com/php/3371366.htm A malicious user could solve the CAPTCHA once, and then log in under that session, so he'ld just have to give in the same string every time...
  7. marshian

    how can i change this?

    I get a 404 for the /index.php and an x10 message for / that says domain available...
  8. marshian

    which is better? firefox or IE?

    There'll be IE8 soon, maybe you should wait with the next discussion till it comes out. And for all FF lovers, is there any hard evidence FF is better then IE?
  9. marshian

    Rounded Corners

    There's always a box, unless you're going to restyle the browser itself... How about you put your page inside an element with height and width 100% (maybe overflow set) and give that element rounded corners?
  10. marshian

    [PHP Tut] Make your own CAPTCHA

    If you're making a CAPTCHA, remember you have to know what the user has to enter! It's nice to have a good CAPTCHA, but if you can't verify the user's input, it's kinda useless ^^ So remember you should store $str somewhere, preferably somewhere where the user can't access it. (No cookies or...
  11. marshian

    Dynamic images with PHP

    To verbsite: thanks! You saved my image =] To kkenny: yes, it's possible to do it, the user's OS is stored somewhere in $_SERVER[HTTP_USER_AGENT], and you can get a lot of stats from game hiscores or character lookup or something like that, so it's possible to do it for most games. If you...
  12. marshian

    Rounding Corners in HTML

    You're not the first one to ask this :p http://www.cssjuice.com/25-rounded-corners-techniques-with-css/
  13. marshian

    Dynamic images with PHP

    Of course it's possible to use the php image capabilities to edit that image for you, but I'ld recommend using an external font to do it, instead of imagestring(), as it wouldn't look too professional. If you need help, you know where to find me =p
  14. marshian

    Best way to get clients local time.

    They could use javascript to get the clients time and pass it to the server, perhaps something like this: when the page loads, there's 2 possibilities: - there's a cookie with the user's timezone offset - there's no cookie if there's a cookie: use it to calculate the right time if there's...
  15. marshian

    Dynamic images with PHP

    OMG I can't beleive i'm that stupid! o_O I forgot that part! =.= IT HAS TO BE return imagepng($image); instead of return $image; Edit: I can't change the contents of the first post any more, but it has to be that!
  16. marshian

    Best way to get clients local time.

    Most forums ask you to tell them what your timezone is (remember joining x10?) Making sure the users see the right time isn't a problem, just store the time in your database, together with the posts etc. And when the user views the page, you should determine what the time difference between the...
  17. marshian

    Dynamic images with PHP

    It's not hard at all, I've got the file "data-latin.ttf" in the same directory, so I can use this command: imagettftext($image, 10, 0, 168, 27, 0, "data-latin.ttf", $text[0]); which does almost the same as imagestring(), but it uses a truetype font instead of the normal one.
  18. marshian

    Dynamic images with PHP

    It's a nice idea, but NOT THAT SCRIPT plox :o It uses a 'small' list... http://www.ci-pro.com/misc/phptest/loc/ip.csv That thing is around 6 meg! It stores a huge list of ip's and their countries... Maybe if I find something less... huge... Edit: I'm going to change something about my image...
  19. marshian

    Random numbers in PHP

    I don't think this is really a good tutorial to be honest... mt_rand() is just a function like rand(), you need 30 seconds to look it up at php.net... And about the second srand() and rand() thing... http://be.php.net/manual/en/function.srand.php "Note: As of PHP 4.2.0, there is no need to...
  20. marshian

    Dynamic images with PHP

    The LocationScript-thing is actually just a joke ;-)
Top