Jump to content

four4swords

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

four4swords's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ah I get it. I never knew php could use the command line too. Thanks for the help!
  2. Hi, I was looking around the web for a image resizer script and I came across this one. http://www.scriptol.com/scripts/thumbnail-maker.php The weird thing is, it says to use this syntax to get it to work php resizer.php -j myimage.png Well.. I don't seem to understand how that makes it work, Normally I would run a php script by looking for it's main function and running it like: mainfunction(); Maybe I'm interpreting it wrong, but how is this script suppose to run?
  3. Thanks! lol I ended up with something like that.. but i didn't put in the arrow.. lol It's working fine now! Thanks!
  4. hey, How do i use a function inside a class? Normally i would just use "functionhere()" and that'll work.. but i guess you'll need a bit for if your referring to them in classes.. How do i use functions in classes? thanks
  5. Ahh! I see! lol THANKS!! ;D It works now! Thanks a lot!
  6. ok.. well.. it just talks about the installation of PEAR.. I've got Xampp on my computer.. and i assume that it comes with PEAR already installed on it.. .. or at least that's what the Xampp site says lol so.. Do i need to put my xtea.php file in a certain place? or since it's just calling to PEAR.php.. i can put it anywhere as it might be a univerally known file my php? lol
  7. ok thanks! I'll look into it! ... Err.. lol .. Ok.. right.. I'm suppose to put this Xtea.php file in the same file as the PEAR.php so the "require_once 'PEAR.php';" line of code would work .. right? If so.. where do i put this file? thanks
  8. Is this easy to do? Or is it already done? .. Or.. (deep breath).. do i have to do it? lol
  9. hi, Can i decrypt TEA or Rijndael without Mcrypt? Thanks!
  10. *Bump* Can i decrypt TEA or Rijndael without Mycrypt?
  11. Ok.. so i need to install it onto my server first.. I'm not so sure on the steps involved to do that.. But anyway.. Is there a way to do it without an install? Cause i don't think my host has that installed which would render my mycrypt codes useless if they don't have the installed libraries.. Is there like an external class which i can just import into my php file to make TEA decryption work? Without installing anything? Thanks
  12. hi, I've got a Flash file running which sends an encrypted string of text(encrypted with TEA) to my php file.. which takes this and.. what i want it to do is to decrypt that string to get the message out of it.. I used this.. http://sourceforge.net/projects/actioncrypt/ To get my string encrypted into TEA.. So.. now.. how do i get php to decode my message? Thanks!
  13. lol there are other formats? I'll try to use other formats to try and solve this problem.. [edit] Yes! I got it working! Thanks!
  14. here is my bit of code.. $time = $row['TIME']; echo "time=$time&"; $timeneeded = mktime('0', '20', '0', '0', '0', '0'); $now = mktime(); if($now >($timeneeded+$time)){ echo 'yes!! Time is up!'; }else{ echo 'no!! Still gotta wait a bit!'; } I'm trying to make a statement that.. will check to see if the required amount of waiting time has passed or now.. So.. First.. I've written a MySql query that has written the time they first started.. Then.. later when they run this php.. it should tell them if the required amount of waiting time has passed yet or not.. $timeneeded = mktime('0', '20', '0', '0', '0', '0'); This line of code is the time they need to wait.. so.. it's 20minutes here.. if($now >($timeneeded+$time)){ This bit here.. is saying... if the time now.. is greater than the "time you logged in plus the waiting time" then it should echo YES! However! This isn't working! The MySql writes the time in this format.. "2008-03-11 18:21:49" While php writes in this format! .. "1205215154" Which is really confusing! lol Basically.. I just need a bit of code that will check if the waiting time has expired yet or not.. Anyone know how to write it?
×
×
  • 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.