Jump to content

ict_ashley

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by ict_ashley

  1. An even easier way to do this: <script type="text/javascript"> setTimeout("window.location='logout.php'", 100*60*15); </script>
  2. Sorry, went a bit crazy with the old [bold] tag there Try the single quotes ... it really does work... <a href="anywhere.php" onclick="show_confirm('<?php print $message;?>');">here</a>
  3. Indeed it doesn't ... it's effectively calling show_confirm(village name) which javascript won't understand. Try changing the line to onClick="show_confirm('".$message."')" and you should be OK.
  4. Shouldn't be a problem, just calculate what height the "scaled down" version will be when width=100. If it's smaller than 66 then you need to scale the image to height=66 and then crop it using something like: <?php $src = imagecreatefromjpg('gallery_image.jpg'); $size = getimagesize('gallery_image.jpg'); $dest = imagecreatetruecolor(100, 66); imagecopy($dest, $src, 0, 0, 100, 66, $size[0], $size[1]); ?>
  5. I've been asked to write a PHP script that will take software licence information from a C++ program, register it in a db, AES 256 encrpyt it and pass it back. I started off downloading the PHP implementation from www.movable-type.co.uk ... but the output from that wasn't recognised by the C++ script. Then I installed PHP's mcrypt library ... but the output from that wasn't recognised either. Then I followed a link to a PHP implementation on sourceforge from the AES Wikipedia page ... but that wasn't recognised either. So basically, I have three implementations of AES 256, all of which can decrypt their own encrpytions, but none of which can understand each other. Is that normal? I'm no expert on encrpytion, but surely there can't be "interpretations" of AES? ???
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.