Search found 31 matches
- Sat Apr 21, 2007 12:52 pm
- Forum: Miscellaneous
- Topic: Copying Integers to Character Array (In C)
- Replies: 1
- Views: 1466
Copying Integers to Character Array (In C)
Hi. I have an integer (4 bytes, no more, no less) which I need to copy into an unsigned character array. There has to be some simple way to do it, and if you know it, please reply. The way I'm doing it at the moment is sprintf'ing the integer to a string as a hexadecimal number, converting every two...
- Sun Dec 03, 2006 7:45 am
- Forum: Javascript
- Topic: Auto-incrementing number...
- Replies: 4
- Views: 1220
Okay, see that makes a huge difference: you can't possibly do that with a server side language. You could do it with Javascript. Check out this Javascript code for displaying a continuously updating clock (every second) on your screen. All you need to do is adapt it to manipulate the date-of-birth ...
- Sat Dec 02, 2006 6:50 pm
- Forum: Javascript
- Topic: Auto-incrementing number...
- Replies: 4
- Views: 1220
Alright, the script just calculates my age to the nearest second. Here's the script I've got: <?php # # On the fly age calculation # $dob = 689425200; $now = time(); $dif = $now-$dob; $yr = 60*60*24*365; $yrs = $dif/$yr; $inc_sec = (($now+1-$dob)-1)/$dif; // how much to add per second echo $yrs; ?> ...
- Sat Dec 02, 2006 6:13 pm
- Forum: Javascript
- Topic: Auto-incrementing number...
- Replies: 4
- Views: 1220
Auto-incrementing number...
Could someone lend me a hand? I have zero JS experience, but hopefully this is simple enough for someone to help me with it :P Say I output a number via PHP and want a specific number (also outputted by PHP) to be added every second. Would anyone be so kind to write a quick snippet to do this? ^^ Ch...
- Mon Nov 13, 2006 12:43 pm
- Forum: PHP - Code
- Topic: PHP-GTK Progress Bar
- Replies: 1
- Views: 601
PHP-GTK Progress Bar
I'm pretty experienced with PHP, but I've just started trying out the GTK extentsion. I just want to make a small app that utilizes the progress bar, but there are no examples on how to use it! If anyone knows how, please post an explanation on how to use the progress bar widget.
Cheers
Cheers
- Sat Sep 30, 2006 5:10 am
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
- Sat Sep 30, 2006 5:00 am
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
- Sat Sep 30, 2006 4:41 am
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
- Fri Sep 29, 2006 7:22 pm
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
- Fri Sep 29, 2006 7:19 pm
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
- Fri Sep 29, 2006 6:51 pm
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
- Fri Sep 29, 2006 6:37 pm
- Forum: PHP - Code
- Topic: Brute-forcing...?
- Replies: 22
- Views: 4045
Brute-forcing...?
Hello. I've been looking for a bit of code that will brute-force an MD5 hash. I try to make my own, and it only makes my head hurt, and I can't find anything on Google, which makes my head hurt even more! ^_^' So I'd appreciate it if someone could give me a small piece of code that will brute force ...
- Sun Aug 06, 2006 6:44 pm
- Forum: PHP - Code
- Topic: Command line: Request input?
- Replies: 2
- Views: 453
- Sun Aug 06, 2006 6:15 pm
- Forum: PHP - Code
- Topic: Command line: Request input?
- Replies: 2
- Views: 453
Command line: Request input?
Is there a way for a PHP script running from the command line to request user input via keyboard?
Ex. Please enter your age: [cursor]
Thanks.
Ex. Please enter your age: [cursor]
Thanks.
- Sat Jul 08, 2006 8:20 am
- Forum: PHP - Security
- Topic: Image Hosting Security
- Replies: 5
- Views: 2538