Jump to content

Welcome to Pure Warfare - The #1 Community for Pures

Welcome to Pure Warfare - The #1 Community for Pures, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Pure Warfare - The #1 Community for Pures by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Tyler

Member
  • Posts

    1662
  • Joined

  • Last visited

Everything posted by Tyler

  1. Tyler

    New PHP script

    I only had one echo before, but it wouldn't do the calculations =\
  2. Tyler

    New PHP script

    Can you make it shorter? If so show me so that I can learn
  3. Tyler

    New PHP script

    echo round("$wanted - $current" / $maple); Change the "round" in the lines that like like the on above to "ceil", it is the round up function. Thanks Jay.
  4. Tyler

    New PHP script

    I spent forever on this from trial and error. I know the form stuff from my HTML knowledge, but getting to to go to the .php thing took me forever. Screenies below the scripts. <html><head><title>Experience</title> </head><body><form method="post" action="table.php"> Current Exp: <input name="current" type="text" /><br /> Wanted Exp: <input name="wanted" type="text" /><br /> <input type="submit" /></form></body></html> <?php $current = $_REQUEST['current']; $wanted = $_REQUEST['wanted']; $maple = 45; $yew = 60; $magic = 75;echo '<table border="1" cellpadding="5">';echo '<th>Log Type</th><th>Experience Per Log</th><th>Logs Needed</th>';echo "<tr><td>Maple</td><td>$maple</td><td>";echo round("$wanted - $current" / $maple);echo "</td></tr>";echo "<tr><td>Yew</td><td>$yew</td><td>";echo round("$wanted - $current" / $yew);echo "</td></tr>";echo "<tr><td>Magic</td><td>$magic</td><td>";echo round("$wanted - $current" / $magic);echo "</td></tr>";echo "</table>";echo "<br />";echo "Thank you for using our Firemaking Calculator";echo "<br />";echo "I suggest buying 1 log above the given number for my lack of not knowing a round up fucntion;)"?> It took me forever to get the table to get the variables to work in the table, and ended up having to do it the way it is making it look like a long script though it shouldn't be. I love learning through trial and error though :P When you enter the numbers in the current exp and the wanted exp and hit submit query it sends you to the .php file with the log numbers calculated out :P http://img143.imageshack.us/img143/9638/forme.png <- Form page http://img225.imageshack.us/img225/1954/tableq.png <- Table results
  5. With all your no replies, it seems to me that you know what you're looking for, lazy or do you just want people to want an extra 3 opts?
  6. If you want a clan invite, i'll invite you. I have the oldest clan, I started it yesterday.
  7. No, I'm pretty sure you pussied out ;)
  8. Well Ryan was supposed to do this as I did lol :lol: Here are some of the scripts I have wrote. Starting from first to last. <html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body></html> <?php echo 4 + 5; $daysayear = 365; $daysaweek = 7; $hours = 24; $minutes = 60; $seconds = 60; $age = 15; echo $daysayear * $hours * $minutes * $seconds; echo " seconds per year"; echo "<br />"; echo $daysaweek * $hours * $minutes; echo " minutes per week"; echo "<br />"; echo $daysayear * $hours * $minutes * $seconds * $age; echo " how many seconds old I am";?> <?php echo 'this is a simple string'; echo 'Arnold once said "I\'ll be back"'; echo 'You deleted c:\\*.*?'; echo 'You deleted c:\*.*?'; echo 'th\'*\' \'%$@\'+_\\\><\'';?> <?php $var = 'Tyler'; $Var = 'Is Sexy'; echo "$var $Var";?> <?php echo strtoupper('abcdefghijklmnopqrstuvwxyz'); echo "<br />"; echo ucwords('batman is hungry'); echo "<br />"; echo round(7.4); echo "<br />"; echo sqrt(9); echo "<br />"; echo strrev('Hello World!'); echo "<br />"; echo strtolower('ABCDEFGHIJKLMNOPQRSTUVWXYZ'); echo "<br />"; $text = '<p>Title of Paragraph<p><!-- Comment --> <a href="#fragment">Other Text</a>'; echo strip_tags($text); echo "\n"; // Allow <p> and <a> echo strip_tags($text, '<p><a>');?> <?php var_dump('5'>7); var_dump(84 < 90); var_dump('basketball' != 'basketball'); var_dump('19' !== '19'); var_dump('halo wars' == 'halo wars'); var_dump('28' === 28); var_dump(20 >= 10); var_dump(56 <= 56); echo "<br />"; $age = 21; $drunk = false; $wearing_shoes = true; $owner = false; $wife = true; $angry = true; $celebrity = true; $dealer = true; if ($age>= 21 && ! $drunk && $wearing_shoes && ! $dealer || $owner || $wife && ! $angry || $celebrity ) { echo "Welcome to the club!"; } { echo "You're not welcome"; }?> There really is no point to any of these scripts besides learning and understand some PHP :lol:
  9. The most beautiful girl in the world ;)
  10. I think you're #20 because the first IPB forums were illegal or something, so he switched to phpBB and got rid of it until he could afford a legal IPB forum, which is where I swooped in and got #5 :)
  11. Voted for the batman signature, although it was a hard choice between that and Sonic..
  12. I thought you weren't allowed to play RuneScape?
  13. Tyler

    Air alter.

    Ohh.. Ryan you got me :lol:
  14. Tyler

    just

    Dis **** is epic y0
  15. Sounds great.. if what I saw in the staff channel on IRC is true, gonna be hella fun :)
  16. Tyler

    Air alter.

    *cough* alec *cough*
  17. Ceejay, you sir have failed. Main clan idiot. :lol:
  18. I'm gonna go out on a limb here and just basically make the best list. 1) FOE/MM/FI - It's a never ending circle, it just keeps going and going. 2) "" 3) "" 5) EOP/E & TLP/DV - Some good competition with each other EOP and E in f2p and TLP and DV in p2p 6) "" 7) "" 8) "" 9) IR/A/M/DP/CY/CP - Seems that when one is up, the rest are down or aren't close. 10) "" 11) "" 12) "" 13) "" 14) ""
  19. What the rest of them said, PK til it degrades.
  20. Tyler

    Air alter.

    c[_] Haven't seen that damn cup in a while. Just kidding, good thing someone posted this cause I'm need to get 50 RC... again...
×
  • Create New...