Week #22: PHP

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

31 Replies - 15891 Views - Last Post: 01 July 2010 - 06:46 AM

#16 josh06  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 14
  • View blog
  • Posts: 139
  • Joined: 27-October 06

Re: Week #22: PHP

Posted 07 June 2010 - 11:57 PM

- deleted.

This post has been edited by josh06: 08 June 2010 - 09:36 AM

Was This Post Helpful? 0
  • +
  • -

#17 aniri  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 54
  • View blog
  • Posts: 657
  • Joined: 24-November 09

Re: Week #22: PHP

Posted 08 June 2010 - 01:02 AM

-- also deleted

This post has been edited by aniri: 08 June 2010 - 11:11 AM

Was This Post Helpful? 0
  • +
  • -

#18 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: Week #22: PHP

Posted 08 June 2010 - 01:45 PM

Was there a problem leading to the deleted posts?
Was This Post Helpful? 0
  • +
  • -

#19 josh06  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 14
  • View blog
  • Posts: 139
  • Joined: 27-October 06

Re: Week #22: PHP

Posted 08 June 2010 - 11:13 PM

View PostNickDMax, on 08 June 2010 - 12:45 PM, said:

Was there a problem leading to the deleted posts?

No (:
We decided to delete them
because they were irrelevant now
Was This Post Helpful? 0
  • +
  • -

#20 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2236
  • View blog
  • Posts: 9,407
  • Joined: 29-May 08

Re: Week #22: PHP

Posted 08 June 2010 - 11:25 PM

Why were they irrelevant now?
Was This Post Helpful? 0
  • +
  • -

#21 aniri  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 54
  • View blog
  • Posts: 657
  • Joined: 24-November 09

Re: Week #22: PHP

Posted 08 June 2010 - 11:34 PM

Josh thought there was something wring with my project, but there's nothing wrong :)
Was This Post Helpful? 0
  • +
  • -

#22 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: Week #22: PHP

Posted 09 June 2010 - 07:33 PM

View Postjosh06, on 05 June 2010 - 01:51 PM, said:

Here we go - it's quite simple.
It uses MySQL, PHP and jQuery.

A simple little guestbook - logs IP addresses in case of abusive behaviour.
Guestbook

Please please add some messages and tell me what you think.
Only took about 40 minutes to make.

Ahhh. I love PHP..


Lol I was testing it against SQL injection, my named turned up kinda funny :P

Yours,
Shane~
Was This Post Helpful? 0
  • +
  • -

#23 TMKCodes  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 48
  • View blog
  • Posts: 440
  • Joined: 21-March 09

Re: Week #22: PHP

Posted 11 June 2010 - 10:41 AM

Here's my entry. I wrote this quite fast and did not test at all as too bored to make MySQL database. But it should work at least in my mind. :)

http://crimasi.com/ComicReader.zip
Was This Post Helpful? 0
  • +
  • -

#24 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: Week #22: PHP

Posted 11 June 2010 - 05:15 PM

Here is mine: Do not press this button.


<?
if (!$_REQUEST["hit"])
{
    $_REQUEST["hit"] = 1;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Blackbox</title>
    <style type="text/css">
    html {
    font: normal 80.5%/1 Tahoma,sans-serif;
    background: #000000;
    color: #EEEEEE;
    }
    a {
    color: #999999;
    }
    </style>
</head>
<body>
    <form action="button.php" method="post" target="_self">
    <input name="hit" type="hidden" <? echo 'value="'.($_REQUEST["hit"]+1).'"'; ?> />
    <? switch ($_REQUEST["hit"]) { case 1: ?>
        <input name="button" type="submit" value="Do not push this button"/>
    <? break; case 2: ?>
        <input name="button" type="submit" value="I told you not to push this button" />
    <? break; case 3: ?>
        <input name="button" type="submit" value="I'm serious, you could get into a lot of trouble" />
    <? break; case 4: ?>
        <input name="button" type="submit" value="Okay, now you are in trouble" />
    <? break; case 5: ?>
        <input name="button" type="submit" value="Doing it again is only going to get you into more trouble" />
    <? break; case 6: ?>
        <input name="button" type="submit" value="Okay, no more button pushing for you" />
    <? break; case 7: ?>
        <input style="position: absolute; top: 2048px; left: 8745px;" name="button" type="submit" value="I don't see how anyone can find me here..." />
        <p style="position: absolute; top: 4785px; left: 9574px;">:P/></p>
    <? break; case 8: ?>
        <input name="button" type="submit" value="How did you find me?" />
    <? break; case 9: ?>
        <input name="button" type="submit" value="Ok, if you like pushing butttons so much..." />
    <? break; case 10: ?>
        <?
        for ($row = 0; $row < 20; $row++)
        {
            for ($col = 0; $col < 20; $col++)
            {
                if ($row == 15 && $col == 3)
                {
                    echo '<input name="button" type="submit" value="" />';
                }
                else
                {
                    echo '<input name="button" type="button" value="" />';
                }
            }
            echo "<br />";
        }
        ?>
    <? break; case 11: ?>
        <input name="button" type="submit" value="How did you find me in there with all those normal buttons?" />
    <? break; case 12: ?>
        <input name="button" type="submit" value="Why are you so set on pushing this button?" />
    <? break; case 13: ?>
        <input name="button" type="submit" value="Stop clicking this button right now" />
    <? break; case 14: ?>
        <input name="button" type="submit" value="I said stop it!" />
    <? break; case 15: ?>
        <input name="button" type="submit" value="If you click this button one more time, your car will explode" />
    <? break; case 16: ?>
        <input name="button" type="submit" value="Great going, now your car exploded!" />
    <? break; case 17: case 18: case 19: case 20: case 21: ?>
        <input name="button" type="submit" value="I am just going to ignore you now" />
    <? break; case 22: ?>
        <input name="button" type="submit" value="Why don't you just go away?" />
    <? break; case 23: ?>
        <input name="button" type="submit" value="Don't you have things to do?" />
    <? break; case 24: ?>
        <input name="button" type="submit" value="Or people to see?" />
    <? break; case 25: ?>
        <input name="button" type="submit" value="Fine, be that way" />
    <? break; case 26: ?>
        <input id="dat" style="position: absolute;" name="button" type="submit" value="Try to catch me now" />
        <script type="text/javascript">
        var t
        function move()
        {
            var x = document.getElementById("dat");
            if (t % 5 == 0){x.style.top = '113px';}
            if (t % 7 == 0){x.style.left = '58px';}
            if (t % 9 == 0){x.style.top = '256px';}
            if (t % 11 == 0){x.style.left = '185px';}
            if (t % 23 == 0){x.style.left = '12px';}
            if (t % 29 == 0){x.style.left = '414px';}
            if (t % 27 == 0){x.style.top = '359px';}
            if (t % 34 == 0){x.style.left = '259px';}
            t = setTimeout("move()",100);
        }
        t = setTimeout("move()",100);
        </script>
        <noscript><br /><br /><br />Your a dirty cheater you, with your Javascript disabled.</noscript>
    <? break; case 27: ?>
        <input name="button" type="submit" value="Do you have any idea how many times you've pushed this button?" />
    <? break; case 28: ?>
        <input name="button" type="submit" value="You've pushed this button 28 times" />
    <? break; case 29: ?>
        <input name="button" type="submit" value="Don't you think you've had enough?" />
    <? break; case 30: ?>
        <input name="button" type="submit" value="You are really starting to annoy me" />
    <? break; case 31: ?>
        <input style="width: 1px; height: 1px;" name="button" type="submit" value="" />
    <? break; case 32: ?>
        <input name="button" type="submit" value="You have a good eye" />
    <? break; case 33: ?>
        <input name="button" type="submit" value="And that was not a complement" />
    <? break; case 34: ?>
        <input name="button" type="submit" value="Really, I do not like you at all" />
    <? break; case 35: ?>
        <input name="button" type="submit" value="What would you do if I dissapeared?" />
    <? break; case 36: ?>
        <input name="button" type="submit" value="I suppose you would cry..." />
    <? break; case 37: ?>
        <input name="button" type="submit" value="Okay, goodbye!" />
    <? break; case 38: ?>
        <input style="color: #000000; background: #000000; border-width: 0px;" name="button" type="submit" value="I'm still here" />
    <? break; case 39: ?>
        <input name="button" type="submit" value="I was just kidding" />
    <? break; case 40: ?>
        <input name="button" type="submit" value="Could you please stop pushing this button?" />
    <? break; case 41: ?>
        <input name="button" type="submit" value="Please?" />
    <? break; case 42: ?>
        <input name="button" type="submit" value="Pretty please?" />
    <? break; case 43: ?>
        <input name="button" type="submit" value="With a cherry on top?" />
    <? break; case 44: ?>
        <input name="button" type="submit" value="Fine" />
    <? break; case 45: ?>
        <input name="button" type="submit" value="Now I'm running out of things to say" />
    <? break; case 46: ?>
        <input name="button" type="submit" value="This is getting boring" />
    <? break; case 47: ?>
        <pre>< <input style="background: #000000; color: #FFFFFF;" name="button" type="submit" value="Do not push this button" /> >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||</pre>
    <? break; case 48: ?>
        <input name="button" type="submit" value="You don't listen to cows?" />
    <? break; case 49: ?>
        <input name="button" type="submit" value="You should listen to cows" />
    <? break; case 50: ?>
        <input name="button" type="submit" value="They are very knowledgeable" />
    <? break; default: ?>
        <input name="button" type="submit" value="To be continued..." />
    <? } ?>
    </form>
</body>
</html>


Was This Post Helpful? 0
  • +
  • -

#25 josh06  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 14
  • View blog
  • Posts: 139
  • Joined: 27-October 06

Re: Week #22: PHP

Posted 13 June 2010 - 11:36 PM

View PostShaneK, on 09 June 2010 - 06:33 PM, said:

View Postjosh06, on 05 June 2010 - 01:51 PM, said:

Here we go - it's quite simple.
It uses MySQL, PHP and jQuery.

A simple little guestbook - logs IP addresses in case of abusive behaviour.
Guestbook

Please please add some messages and tell me what you think.
Only took about 40 minutes to make.

Ahhh. I love PHP..


Lol I was testing it against SQL injection, my named turned up kinda funny :P

Yours,
Shane~


Aha that's what you get for trying it out ;)
Was This Post Helpful? 0
  • +
  • -

#26 numberwhun  Icon User is offline

  • D.I.C Head

Reputation: 23
  • View blog
  • Posts: 87
  • Joined: 28-March 08

Re: Week #22: PHP

Posted 14 June 2010 - 09:35 AM

@josh06 Will you be posting the code for the guest book or keeping it to yourself? Just curious.

Regards,

Jeff
Was This Post Helpful? 0
  • +
  • -

#27 Paradox9925  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-June 10

Re: Week #22: PHP

Posted 14 June 2010 - 11:58 AM

Nice Code Week thought :b

I have a MMORPG Text-Based Game that I've made recently.

Southland.

It's made in PHP and MySQL and HTML.

(:
Was This Post Helpful? 0
  • +
  • -

#28 Guest_Shane T*


Reputation:

Re: Week #22: PHP

Posted 14 June 2010 - 05:49 PM

Basically this is a website I developed in php and mysql. Completely supported by a backend which updates every frontend page. The most difficult part was getting the photogallery to work (had to utilize linux bash scripting) and to make sure every major browser supports the site.

<a href src="http://www.milliestavern.com/">Link here</a>
Was This Post Helpful? 0

#29 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 5910
  • View blog
  • Posts: 10,324
  • Joined: 28-September 07

Re: Week #22: PHP

Posted 21 June 2010 - 10:02 AM

PHP is kind of what I do. For a living.
Was This Post Helpful? 0
  • +
  • -

#30 Chalie9809  Icon User is offline

  • D.I.C Head

Reputation: 8
  • View blog
  • Posts: 51
  • Joined: 29-January 09

Re: Week #22: PHP

Posted 22 June 2010 - 06:20 AM

If i knew Week 22 was PHP I would have spent some time writing!

Anyway, a script for delivery systems: makes use of php, html, javascript. Id like to say that the check boxex are generated in a php loop. and the javascript auto checkers, check the relative boxes in a loop too.

Week 22 PHP Code

Cheers
Chalrie
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3